Jump to content
Sign in to follow this  

Controls problem

Recommended Posts


I tried this:

$GUI = GUICreate("TEST",400,400)
$BUTTON1 = GUICtrlCreateButton("TEST",5,5,50,40)
$BUTTON2 = GUICtrlCreateButton("TEST",5,50,50,40)
$EDIT = GUICtrlCreateEdit("TEST",5,100,50,100)
$LABEL = GUICtrlCreateLabel("TEST",200,5,50,40)
$RADIO = GUICtrlCreateRadio("TEST",200,200,50,50)
GUICtrlSetBkColor("Button1",0x0000FF);work fine ControlDisable("TEST","","Button1")

While 1
    $MSG = GUIGetMsg()
    If $MSG = -3 Then Exit

Control ID should be the same for GuiCtrlSetBkColor and for ControlDisable. GuiCtrlSetBkColor work only with ID returns by GuiCtrlCreate functions. Is any way to get this ID from CLASSNN?


Just found _WinAPI_GetDlgCtrlID(), work fine.

Edited by Andreik

When the words fail... music speaks

Share this post

Link to post
Share on other sites

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

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.