power2anger Posted June 7, 2012 Share Posted June 7, 2012 (edited) Hi.I Have got two questions. 1. How can i change GUI style to this? (Border)2. And how can i change Button style to this?Unclicked Button:Clicked Button:Please help me.P.S. Sorry for my little english, but i am from poland Edited June 7, 2012 by power2anger Link to comment Share on other sites More sharing options...
PlayHD Posted June 7, 2012 Share Posted June 7, 2012 About button have a look at and power2anger 1 My UDF : _WinShake, _WinSplitMy Apps : Google Guitar Bot, PuzzleGameDesign Gui : Interesting Tabs Design, RBox Project (abandoned), Animated Gui on Exit Link to comment Share on other sites More sharing options...
power2anger Posted June 7, 2012 Author Share Posted June 7, 2012 Thanks, but this not solved my problem. Can you give me example with a simple GUI? And i want button style which i showed. Link to comment Share on other sites More sharing options...
JScript Posted June 7, 2012 Share Posted June 7, 2012 (edited) @power2angerUse this exStyle:$WS_EX_TOOLWINDOWCreates a tool window; that is, a window intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window does not appear in the taskbar or in the dialog box that appears when the user presses ALT+TAB. If a tool window has a system menu, its icon is not displayed on the title bar. However, you can display the system menu by typing ALT+SPACE.Disable Win Theme in button...DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", $hButton, "wstr", 0, "wstr", 0)Example:#include <guiconstantsex.au3> #include <windowsconstants.au3> _Example() ; example Func _Example() Local $iMsg, $iButton1 GUICreate("My GUI", 120, 80, -1, -1, -1, $WS_EX_TOOLWINDOW) ; will create a dialog box that when displayed is centered $iButton1 = GUICtrlCreateButton("Start", 10, 40, 100) ; Disable Win Theme in button... DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($iButton1), "wstr", 0, "wstr", 0) GUISetState(@SW_SHOW) ; will display an empty dialog box ; Run the GUI until the dialog is closed While 1 $iMsg = GUIGetMsg() If $iMsg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete() EndFunc ;==>_ExampleRegards,João Carlos. Edited June 7, 2012 by JScript power2anger 1 http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
power2anger Posted June 7, 2012 Author Share Posted June 7, 2012 (edited) Thanks!This solved my problem with GUIBut the button does not look like that i want.That is Windows 98 style, not this style:Look at this buttons:http://www5.zippyshare.com/d/85911353/8020893/AutoLogin.exe Edited June 7, 2012 by power2anger Link to comment Share on other sites More sharing options...
JScript Posted June 7, 2012 Share Posted June 7, 2012 Try this:$iButton1 = GUICtrlCreateButton("Start", 10, 40, 100, -1, $BS_FLAT)$BS_FLAT = Specifies that the button is two-dimensional; it does not use the default shading to create a 3-D image.Regards,João Carlos. power2anger 1 http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
power2anger Posted June 7, 2012 Author Share Posted June 7, 2012 When i run script i have error: Link to comment Share on other sites More sharing options...
JScript Posted June 7, 2012 Share Posted June 7, 2012 (edited) When you add a style, you must add the appropriate file variables, in this case is:#include <buttonconstants.au3> See:#include <guiconstantsex.au3> #include <windowsconstants.au3> #include <buttonconstants.au3> _Example() ; example Func _Example() Local $iMsg, $iButton1 GUICreate("My GUI", 120, 80, -1, -1, -1, $WS_EX_TOOLWINDOW) ; will create a dialog box that when displayed is centered $iButton1 = GUICtrlCreateButton("Start", 10, 40, 100, -1, $BS_FLAT) ; Disable Win Theme in button... DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($iButton1), "wstr", 0, "wstr", 0) GUISetState(@SW_SHOW) ; will display an empty dialog box ; Run the GUI until the dialog is closed While 1 $iMsg = GUIGetMsg() If $iMsg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete() EndFunc ;==>_Example Regards, João Carlos. Edited June 7, 2012 by JScript power2anger 1 http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
power2anger Posted June 7, 2012 Author Share Posted June 7, 2012 Thank you very much! This solved all my problems! Link to comment Share on other sites More sharing options...
JScript Posted June 7, 2012 Share Posted June 7, 2012 (edited) Thanks for your return, I'm very happy to have helped you!Put in your topic title the prefix or suffix [solved]Regards,João Carlos. Edited June 7, 2012 by JScript power2anger 1 http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 7, 2012 Moderators Share Posted June 7, 2012 power2anger,Next time please use a less controversial title for the GUI. I suggest you read the Forum Rules before you post again - particularly the bit which states: "Any discussion of using AutoIt to launch or interact with a game or game server violates our rules"M23 JScript 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
power2anger Posted June 7, 2012 Author Share Posted June 7, 2012 OK. 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