Sign in to follow this  
Followers 0
i386

Creating advanced Web Installer GUI...

6 posts in this topic

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?


"...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." -Mozart_ONLINECheck out this free 1 GB FTP website at DriveHQ.com. You can control the users and even publish a website for free!![s]Your-Start.com - A online website that you can customize to hold all you links, news information, and other website info.[/s]

Share this post


Link to post
Share on other sites



The first thing I see is that your not closing your groups.

GUICtrlCreateGroup ("",-99,-99,1,1)  ;close group

Share this post


Link to post
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?


"...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." -Mozart_ONLINECheck out this free 1 GB FTP website at DriveHQ.com. You can control the users and even publish a website for free!![s]Your-Start.com - A online website that you can customize to hold all you links, news information, and other website info.[/s]

Share this post


Link to post
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?

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.

Share this post


Link to post
Share on other sites

Well when you start a new group... you close the previose


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Try set the group into a variable and see what happends...

EDIT: My bad. Not rigth...

Edited by Mr. Zero

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  
Followers 0