Jump to content

Recommended Posts

Posted

#include <GUIConstants.au3>
    GUICreate("My Draw", 300, 200)

GuiCtrlCreateGraphic(20, 20, 100,20)
GUICtrlSetBkColor(-1,0x0000ff)
GUICtrlSetColor(-1,0)

GuiCtrlCreateLabel("123456789012345678901234567890", 20, 24, 300,20)
GUICtrlSetColor(-1,0xff0000)
GUICtrlSetBkColor(-1,$GUI_BKCOLOR_TRANSPARENT)

; ***

GuiCtrlCreateGraphic(20, 50, 100,20)
GUICtrlSetBkColor(-1,0x00ff00)
GUICtrlSetColor(-1,0)

GuiCtrlCreateLabel("123456789012345678901234567890", 20, 54, 300,20)
GUICtrlSetColor(-1,0x000000)
GUICtrlSetBkColor(-1,$GUI_BKCOLOR_TRANSPARENT)

GuiSetState()

Do
    $msg = GUIGetMsg()
Until $msg=$GUI_EVENT_CLOSE

Also look at GUICtrlCreateProgress()

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