Slaiochi Posted June 8, 2007 Share Posted June 8, 2007 How would I do this? I made an icon set that would look very nice, But I don't know how I would use them after looking through the AutoIt commands =/ The buttons I'm most concerned with are the 3 at the top right of most any GUI (Close, [Maximize, Restore], Minimize) Any help is much appreciated! Slai~ Link to comment Share on other sites More sharing options...
billthecreator Posted June 8, 2007 Share Posted June 8, 2007 i dont understand that question but i think i know what you mean... in stead of this: GuiCreate("MyGUI", 392, 323,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))oÝ÷ Úf¤z+ZºÚ"µÍÝZPÜX]J ][ÝÓ^QÕRI][ÝËÎLÌËLKLJ just get rid of the bitOR i think thats what your asking [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
Slaiochi Posted June 9, 2007 Author Share Posted June 9, 2007 Not exactly, I want to change the buttons for closing, minimizing, and maximizing a gui. I made custom ones, I just don't know how to change them =( Link to comment Share on other sites More sharing options...
BrettF Posted June 9, 2007 Share Posted June 9, 2007 Not exactly, I want to change the buttons for closing, minimizing, and maximizing a gui. I made custom ones, I just don't know how to change them =(Search for XSkin? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Slaiochi Posted June 9, 2007 Author Share Posted June 9, 2007 That's what I was looking for! Thanks Bert! Link to comment Share on other sites More sharing options...
BrettF Posted June 9, 2007 Share Posted June 9, 2007 That's what I was looking for! Thanks Bert! np Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Slaiochi Posted June 9, 2007 Author Share Posted June 9, 2007 Ok, got them changed, new question When I change the buttons I get these nasty looking borders (because they are made from buttons), I will link a picture to help explain better.So my question is, how do you remove them (if you can)? Link to comment Share on other sites More sharing options...
Helge Posted June 9, 2007 Share Posted June 9, 2007 Use labels? Link to comment Share on other sites More sharing options...
Slaiochi Posted June 9, 2007 Author Share Posted June 9, 2007 How would you set it up to detect label clicks? Link to comment Share on other sites More sharing options...
Valuater Posted June 9, 2007 Share Posted June 9, 2007 (edited) This seemed to work.. see next post ???? Going to "share" your skin ???? 8) Edited June 10, 2007 by Valuater Link to comment Share on other sites More sharing options...
Slaiochi Posted June 9, 2007 Author Share Posted June 9, 2007 (edited) it's not my skin, it's Noir, forgot who made it. I cleaned it up so the filesize is smaller though. EDIT: Didn't work Edited June 9, 2007 by Slaiochi Link to comment Share on other sites More sharing options...
Valuater Posted June 9, 2007 Share Posted June 9, 2007 (edited) It Definitely Works.....heres the code that did it...#include <XSkin.au3> $Skin_Folder = @ScriptDir & "\Skins\Universal" $Icon_Folder = @ScriptDir & "\Skins\Default" $XSkinGui = XSkinGUICreate( "My GUI", 300, 120, $Skin_Folder) $XIcon = XSkinIcon($XSkinGui, 2) $Button = GUICtrlCreateButton("Take Focus", 20, 40, 100, 30) GUICtrlSetState( $Button, $GUI_FOCUS) ;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< This line GUISetState() While 1 $msg = GUIGetMsg() If $msg = $XIcon[1] Then Exit If $msg = $XIcon[2] Then GUISetState(@SW_MINIMIZE) WEnd8) Edited June 9, 2007 by Valuater Link to comment Share on other sites More sharing options...
Slaiochi Posted June 9, 2007 Author Share Posted June 9, 2007 (edited) I mean to do it with the XSkinIcon command. I got the labels to recognize clicks, but can't get the image to display on it =/ For $XS_b = 1 To UBound($XS_winB) - 1 $XS_winB[$XS_b] = GUICtrlCreateLabel("", ($XSIPos[2] - $XadjLt) - $XS_IPos1, $XadjDn, $XS_Isize, $XS_Isize, BitOR($SS_BITMAP, $SS_NOTIFY)) Local $iret = GUICtrlSetImage($XS_winB[$XS_b], $Icon_Folder & $XS_Istyle & $XS_b & ".bmp") If $XS_b = 3 And Not FileExists($Icon_Folder & $XS_Istyle & $XS_b & ".bmp") Then GUICtrlSetImage($XS_winB[$XS_b], $Icon_Folder & "Standard3.bmp") $XS_IPos1 += $XS_Isize + 2 Next That's what I have, images won't display. Edited June 9, 2007 by Slaiochi Link to comment Share on other sites More sharing options...
Valuater Posted June 10, 2007 Share Posted June 10, 2007 I mean to do it with the XSkinIcon command. I got the labels to recognize clicks, but can't get the image to display on it =/ For $XS_b = 1 To UBound($XS_winB) - 1 $XS_winB[$XS_b] = GUICtrlCreateLabel("", ($XSIPos[2] - $XadjLt) - $XS_IPos1, $XadjDn, $XS_Isize, $XS_Isize, BitOR($SS_BITMAP, $SS_NOTIFY)) Local $iret = GUICtrlSetImage($XS_winB[$XS_b], $Icon_Folder & $XS_Istyle & $XS_b & ".bmp") If $XS_b = 3 And Not FileExists($Icon_Folder & $XS_Istyle & $XS_b & ".bmp") Then GUICtrlSetImage($XS_winB[$XS_b], $Icon_Folder & "Standard3.bmp") $XS_IPos1 += $XS_Isize + 2 Next That's what I have, images won't display. Labels are not meant to work like that...try GuiCtrlCreatePic() 8) Link to comment Share on other sites More sharing options...
Slaiochi Posted June 10, 2007 Author Share Posted June 10, 2007 I just did it with labels, works fine. Link to comment Share on other sites More sharing options...
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