Jump to content

Recommended Posts

Posted

Alright, alright, I am pretty proficient with scripting in AU3.

But, I hit a spot where I can't seem to do what I need to do.

My code for the main GUI (or form) is this:

#include <GUIConstants.au3>

$s_Title = 'Web Installer'
$s_Company = 'Liquid C4'
$s_Ver = '1.0'

GUICreate ($s_Company & "'s " & $s_Title, 470, 325, 85, 61)

GUICtrlCreateGroup('', 0, 0, 471, 40, BitOR($SS_ETCHEDHORZ, $SS_ETCHEDVERT))
    GUICtrlSetBkColor(-1, 0xff0000)

GUICtrlCreateLabel('Version ' & $s_Ver, 190, 70, 245, 35)
    GUICtrlSetFont(-1, 20, 600)

GUICtrlCreateLabel('This will install ' & $s_Company & "'s " & $s_Title & _
    ' version ' & $s_Ver & ' on your system.' & @CRLF & @CRLF & _
    'This will be a new installation.' & @CRLF & @CRLF & _
    'Press "&Next >>> to continue.', 190, 115, 240, 130)

GUICtrlCreateGroup('Navigation', 5, 276, 461, 47)
    GUIStartGroup()
    GUICtrlCreateButton('<<< &Back', 71, 288, 90, 30, $BS_FLAT)
        GUICtrlSetState(-1, $GUI_HIDE)
    GUICtrlCreateButton('&Help...', 161, 288, 90, 30,$BS_FLAT)
    GUICtrlCreateButton('&Next >>>', 251, 288, 90, 30, BitOr($BS_DEFPUSHBUTTON, $BS_FLAT))
    GUICtrlCreateButton('&Cancel', 361, 288, 90, 30, $BS_FLAT)

GUISetState(@SW_SHOW)

While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then
        Exit
    EndIf
WEnd

Now, my problem is with the GUICtrlSetBkColor(-1, 0xff0000) for the GUICtrlCreateGroup(). When I run the script, it doesn't color the group box.

Any suggestions or hints?

  Reveal hidden contents

style7,AutoIt.png

 

 

Posted

Never understood why that closes a group.

I have never had that in my scripts before and never ran into a problem with it before.

Could you further explain?

  Reveal hidden contents

style7,AutoIt.png

 

 

  • Moderators
Posted

  terrabyte said:

Never understood why that closes a group.

I have never had that in my scripts before and never ran into a problem with it before.

Could you further explain?

I'm not a GUI Expert so I really can't provide anymore info on this. I just know that is how the help file does it.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...