Jump to content

Recommended Posts

Posted

hum right im trying to get the top menu i.e. file edit etc to be the same colour as my gui's back ground but don't seem to be getting any were. but my BIG problem is the fact that i have created several gui's and i want them to link to each other i.e. when i press a button on one it loads the other but also closes the original. iv posted something like this before but didn't really get much joy.

im hoping i don't have to just combine all the gui's into one then make things appear and dissapear as i think they will cause a conflict with each other. im open to any suggestions maby its possible to load it like a web page in frames eek i don't relay know.

can any one offer any advice :whistle:

  • 2 months later...
Posted

Sorry for "reviving" such an old post but it was adressing an issue I have to deal with right now.

It's about changing the background color of a menu.

... tried GUICtrlSetBkColor without success:

$filemenu = GUICtrlCreateMenu ("&File")
    GUICtrlSetBkColor(-1,0xF4F3EE)
$fileitem = GUICtrlCreateMenuitem ("Open",$filemenu)

Nothing changes.

Is there another way to do it?

Thanks,

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Posted (edited)

SetMenuInfo is what you need.

Take a look at GUICtrlGetHandle() example in Help file, it does exactly that.

Auto3Lib also has wrappers for Menu API functions, although you probably won't need that.

Edited by Siao

"be smart, drink your wine"

Posted (edited)

Thanks Siao for help but unfortunately it is not what I've been loking for.

This manages to change Menu color - I'm looking for changing the color of the whole menu bar not for particular menu's.

I'll try to show exactly what I need - if you're looking in the attached image you can see a clolor difference between the menu bar and the rest of the GUI (the menu is a bit "darker" and I would like to change its color).

post-18882-1191540496_thumb.jpg

I've installed Auto3lib and haven't found an appropriate function there :)

Edited by enaiman

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...