Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Other hexagora products
 Programs (Programmi)
 ctlUTF8Menu cannot set color of top level menu
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

catweazle
Novice

9 Posts

Posted - 10 Jul 2012 :  17:36:26  Show Profile  Visit catweazle's Homepage  Reply with Quote
I use the ctlUTF8Menu together with the ctlUNIStyler. By code I set the MenuBackColor for the menu, which works - except for the top level menu items.
I tried to set the backcolor additionally by using the API DrawMenuBar. The color of the empty space in the menu bar changed! but not the backcolor of the top level items.
Then I eliminated the ctlUTF8Menu and !surprise! the API changed the backcolor of the complete menu bar.
Also any code in the ctlUTF8Menu_OnOwnerDraw event did not take effect.
The SelectorBackColor instead works on all menu levels!


Is there a bug in ctlUTF8Menu and a known work-around
Thanx for any help! A VB6-programmer

s.dav
Site Admin

Italy
3364 Posts

Posted - 11 Jul 2012 :  08:54:29  Show Profile  Visit s.dav's Homepage  Reply with Quote
cat,

the ctlUTF8Menu uses the Windows system colors for the top level items and I don't know if it is a good operation to change the top item menu color using an API
Maybe you can send me a sample and I'll make some tests.

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000