Jump to content

Recommended Posts

Posted

$Group1 = GUICtrlCreateGroup("Group Name", 8, 316, 314, 117)
GUICtrlSetBkColor(-1, 0x00ff00)
;bg color changes to green
GUICtrlSetColor(-1, 0x000000)
;text color does not change! why?

What's the proper way of doing color?

Can it color its background ('block')?

Posted

$Group1 = GUICtrlCreateGroup("Group Name", 8, 316, 314, 117)
GUICtrlSetBkColor(-1, 0x00ff00)
;bg color changes to green
GUICtrlSetColor(-1, 0x000000)
;text color does not change! why?

What's the proper way of doing color?

Can it color its background ('block')?

Search for it.
Posted

Hi! This is a trick, but can help you:

#include <GuiConstants.au3>

$hGui = GuiCreate("Colored group", 300, 200)

GUICtrlCreateLabel("", 24, 20, 250, 150)
GUICtrlSetBkColor(-1, 0xDDDDDD)
GUICtrlSetState(-1, $GUI_DISABLE)

$hGroup = GUICtrlCreateGroup("My group", 24, 14, 250, 157, $BS_CENTER)
GUICtrlSetBkColor(-1, 0xDDDDDD)
GUICtrlCreateRadio("Radio1", 40, 40, 54, 18)
GUICtrlSetBkColor(-1, 0xDDDDDD)

GUICtrlCreateRadio("Radio2", 40, 80, 54, 18)
GUICtrlSetBkColor(-1, 0xDDDDDD)

GUICtrlCreateRadio("Radio3", 40, 120, 54, 18)
GUICtrlSetBkColor(-1, 0xDDDDDD)
GUICtrlCreateGroup("", -99, -99, 1, 1)

GUISetState()

Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
:)
Posted

sensalim

(only if I use windows classic style) -- why doesn't it work on xp or tabletpc style?

What? Work for me, i used XP style... :)
Posted

Again, I direct you to the search function. This question has been asked at least 100 times in the past year... Search for "color group" and you'll find your answer.

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...