Skinning of OWNERDRAW menus |
Post Reply |
Author | |
RDONNAY
Groupie Joined: 10 February 2009 Location: United States Status: Offline Points: 19 |
Post Options
Thanks(0)
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? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Send us sample code you have for OWNERDRAW menus.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
RDONNAY
Groupie Joined: 10 February 2009 Location: United States Status: Offline Points: 19 |
Post Options
Thanks(0)
|
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Sorry not sure what to suggest then. Only to try our CommandBars instead.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
RDONNAY
Groupie Joined: 10 February 2009 Location: United States Status: Offline Points: 19 |
Post Options
Thanks(0)
|
That is a good suggestion. Thanks.
|
|
RDONNAY
Groupie Joined: 10 February 2009 Location: United States Status: Offline Points: 19 |
Post Options
Thanks(0)
|
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?
|
|
RDONNAY
Groupie Joined: 10 February 2009 Location: United States Status: Offline Points: 19 |
Post Options
Thanks(0)
|
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
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |