i386 Posted February 22, 2007 Posted February 22, 2007 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
Moderators big_daddy Posted February 22, 2007 Moderators Posted February 22, 2007 The first thing I see is that your not closing your groups. GUICtrlCreateGroup ("",-99,-99,1,1) ;close group
i386 Posted February 22, 2007 Author Posted February 22, 2007 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
Moderators big_daddy Posted February 22, 2007 Moderators Posted February 22, 2007 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.
Shevilie Posted February 22, 2007 Posted February 22, 2007 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
PantZ4 Posted February 22, 2007 Posted February 22, 2007 (edited) Try set the group into a variable and see what happends... EDIT: My bad. Not rigth... Edited February 22, 2007 by Mr. Zero
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now