Print Page | Close Window

Skinning of OWNERDRAW menus

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=13614
Printed Date: 28 March 2024 at 7:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Skinning of OWNERDRAW menus
Posted By: RDONNAY
Subject: Skinning of OWNERDRAW menus
Date Posted: 08 March 2009 at 11:51pm
I want to use SkinFramework but don't want to give up my OWNERDRAW menus.

If I set the xtpSkinApplyMenus flag off when I ApplyOptions, I would expect that it would not affect my menus, but they always disappear.

The only way I can get OWNERDRAW menus to work is if I set the xtpSkinApplyFrame flag off, but then I don't get the nice skinned frame that I want.

Is this a bug?





Replies:
Posted By: Oleg
Date Posted: 09 March 2009 at 2:57am
Hi,
 
Send us sample code you have for OWNERDRAW menus.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: RDONNAY
Date Posted: 09 March 2009 at 10:04am

I work in the language Xbase++, which is not one of your supported languages.

You probably wouldn't be able to figure out anything from the source.
 
I had hopes that this was a problem across all languages and that maybe it is a bug that can be fixed.
 


Posted By: Oleg
Date Posted: 10 March 2009 at 2:22am
Hi,
 
Sorry not sure what to suggest then. Only to try our CommandBars instead.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Aaron
Date Posted: 10 March 2009 at 9:11am
Originally posted by RDONNAY RDONNAY wrote:

I want to use SkinFramework but don't want to give up my OWNERDRAW menus. 

[.....]


 
Hi,
 
I don't know Xbase either... Is OwnerDrawMenu a control or somekind or is it just code to create an ownerdrawmenu? Maybe you can use RemoveWindow, ExcludeModule or RemoveWindowClass methods of SkinFrameWork to exclude skinning for you own menu. If this isn't working you can always use CJ Commandbars instead of your own menu. It isn't difficult to implement and you will have all kinds of (visual) options which you can use
 
Look in forum, you are not the only XBase user and maybe they can tell you how they did and if it was worth it...
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: RDONNAY
Date Posted: 10 March 2009 at 11:07am
That is a good suggestion.  Thanks.


Posted By: RDONNAY
Date Posted: 10 March 2009 at 5:54pm
Do you have any samples that show how to create a simple Menu Bar?
 
The docs are very confusing on how to do this.
 
After I create a MenuBar with the AddMenuBar() method, how to I add Items to the menu bar?
 


Posted By: RDONNAY
Date Posted: 10 March 2009 at 7:17pm
Nevermind.  I figured it out from your sample.
 
This is Xbase++ code:
 
STATIC FUNCTION BuildMenu(oCommandBars)
Local oFileMenu, oUtilMenu, oControl
oFileMenu := oCommandBars:ActiveMenuBar:Controls:Add(xtpControlPopup, 0, "&File")
oFileMenu:CommandBar:Controls:Add(xtpControlButton, 1, "&New")
oFileMenu:CommandBar:Controls:Add(xtpControlButton, 2, "&Close")
oFileMenu:CommandBar:Controls:Add(xtpControlButton, 3, "&Save")
oControl := oFileMenu:CommandBar:Controls:Add(xtpControlButton, 4, "&Print")
oControl:BeginGroup := .t.
oControl := oFileMenu:CommandBar:Controls:Add(xtpControlButton, 4, "Print Set&up...")
oControl:BeginGroup := .t.
oUtilMenu := oCommandBars:ActiveMenuBar:Controls:Add(xtpControlPopup, 0, "&Util")
oUtilMenu:CommandBar:Controls:Add(xtpControlButton, 10, "&Dot-Prompt")
oUtilMenu:CommandBar:Controls:Add(xtpControlButton, 11, "&SQL Query")
RETURN nil
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net