Jump to content

Creating advanced Web Installer GUI...


i386
 Share

Recommended Posts

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?

Spoiler

 

"...Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like.My crime is that of outsmarting you, something that you will never forgive me for." --The Mentor

"Mess with the best, die like the rest!!" -Hackers

"This above all to thine own self be true." -William Shakespeare

"Corruption is only as corrupted as the individual makes it out to be." -i386

 

style7,AutoIt.png

 

 

Link to comment
Share on other sites

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?

Spoiler

 

"...Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like.My crime is that of outsmarting you, something that you will never forgive me for." --The Mentor

"Mess with the best, die like the rest!!" -Hackers

"This above all to thine own self be true." -William Shakespeare

"Corruption is only as corrupted as the individual makes it out to be." -i386

 

style7,AutoIt.png

 

 

Link to comment
Share on other sites

  • Moderators

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.
Link to comment
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
 Share

  • Recently Browsing   0 members

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