extraloob Posted December 6, 2008 Share Posted December 6, 2008 I want to Create Square Button . And if push, it is down ; nonpush , it is up. ?? Link to comment Share on other sites More sharing options...
FireFox Posted December 6, 2008 Share Posted December 6, 2008 I want to Create Square Button .And if push, it is down ; nonpush , it is up.??Hi,Look at :-button style with help file-GuiCtrlCreatePic and then you put it on event-_GuiCtrlCreate with picture on button Link to comment Share on other sites More sharing options...
rasim Posted December 6, 2008 Share Posted December 6, 2008 I want to Create Square Button . And if push, it is down ; nonpush , it is up. ??This? #include <GuiConstantsEx.au3> #include <ButtonConstants.au3> $hGUI = GUICreate("Test", 200, 100) $ctlButton = GUICtrlCreateCheckbox("Push", 60, 12, 75, 75, $BS_PUSHLIKE) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE Link to comment Share on other sites More sharing options...
FireFox Posted December 6, 2008 Share Posted December 6, 2008 This? #include <GuiConstantsEx.au3> #include <ButtonConstants.au3> $hGUI = GUICreate("Test", 200, 100) $ctlButton = GUICtrlCreateCheckbox("Push", 60, 12, 75, 75, $BS_PUSHLIKE) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE if it's that i'm crazy Link to comment Share on other sites More sharing options...
extraloob Posted December 6, 2008 Author Share Posted December 6, 2008 yea rasim.. I try it . Good one but How do add to ; If i push it , button is low if other push it , button is high.. Link to comment Share on other sites More sharing options...
FireFox Posted December 6, 2008 Share Posted December 6, 2008 (edited) yea rasim..I try it . Good one butHow do add to ;If i push it , button is lowif other push it , button is high.. I name it checkbox not button... Edited December 6, 2008 by FireFox Link to comment Share on other sites More sharing options...
DeeRiee Posted December 6, 2008 Share Posted December 6, 2008 #include <GuiConstantsEx.au3>#include <ButtonConstants.au3>$hGUI = GUICreate("Test", 200, 100)$ctlButton = GUICtrlCreateCheckbox("Push", 60, 12, 75, 75, $BS_PUSHLIKE)GUISetState()DoUntil GUIGetMsg() = $GUI_EVENT_CLOSEextraloob want square button, but is it possible to make it triangle or circle without guictrlcreatepic just wondering Link to comment Share on other sites More sharing options...
FireFox Posted December 6, 2008 Share Posted December 6, 2008 extraloob want square button, but is it possible to make it triangle or circle without guictrlcreatepic just wondering Yes I just gave him some solutions for trying because I didn't really understand what he wanted... Link to comment Share on other sites More sharing options...
rasim Posted December 6, 2008 Share Posted December 6, 2008 yea rasim..I try it . Good one butHow do add to ;If i push it , button is lowif other push it , button is high..What you mean? Moving the button? Link to comment Share on other sites More sharing options...
Developers Jos Posted December 6, 2008 Developers Share Posted December 6, 2008 I read that he requires a toggle: First click changes the button to down state, next click changed the button back to upstate. Only way I know is to set the Botton image yourself one each click. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
extraloob Posted December 6, 2008 Author Share Posted December 6, 2008 I read that he requires a toggle: First click changes the button to down state, next click changed the button back to upstate.Only way I know is to set the Botton image yourself one each click.Joshuhh I try say that Link to comment Share on other sites More sharing options...
extraloob Posted December 7, 2008 Author Share Posted December 7, 2008 up Link to comment Share on other sites More sharing options...
Pain Posted December 7, 2008 Share Posted December 7, 2008 (edited) You are looking for something like this? #include <GuiToolBar.au3> #include <GuiConstantsEx.au3> Global $idNew $hGUI = GUICreate("Test GUI") $hToolbar = _GUICtrlToolbar_Create($hGUI) GUISetState() _GUICtrlToolbar_AddBitmap($hToolbar, 1, -1, $IDB_STD_LARGE_COLOR) _GUICtrlToolbar_AddButton($hToolbar, $idNew, $STD_FILENEW, "", $BTNS_CHECK) Do Until GUIGetMsg() = $GUI_EVENT_CLOSE Edited December 7, 2008 by Pain Link to comment Share on other sites More sharing options...
spudw2k Posted December 8, 2008 Share Posted December 8, 2008 (edited) Like a push button? edit: nm. Rasim got it. Edited December 8, 2008 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF 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