Tagor Posted April 2, 2005 Posted April 2, 2005 Hi, I am using $WS_EX_WINDOWEDGE for some tabs, however it doesn't work for buttons. Is there a similar function for buttons? I am using the below code: $var= GuiCtrlCreateButton ($test, 18, 168, 110, 20, $WS_EX_WINDOWEDGE)
GaryFrost Posted April 2, 2005 Posted April 2, 2005 (edited) try $var= GuiCtrlCreateButton ($test, 18, 168, 110, 20,-1, $WS_EX_CLIENTEDGE ) or $var= GuiCtrlCreateButton ($test, 18, 168, 110, 20,-1, $WS_EX_STATICEDGE) Edited April 2, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Tagor Posted April 2, 2005 Author Posted April 2, 2005 (edited) Hmm, that doesn't look like the tabs. Any other suggestions? Edit; both don't look like the tabs. Edited April 2, 2005 by Tagor
Holger Posted April 3, 2005 Posted April 3, 2005 @Tagor: what do you mean with tabs? Is there anywhere an example screenshot to see this? Or could you post a small screenshot? Thanks and regards Holger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
Tagor Posted April 3, 2005 Author Posted April 3, 2005 Here is a screenshot . So the button should look like the tabs.
Helge Posted April 4, 2005 Posted April 4, 2005 I think you want to use GUICtrlCreateCheckbox with the style $BS_PUSHLIKE..
Helge Posted April 4, 2005 Posted April 4, 2005 Test this code.... #include <GUIConstants.au3> GUICreate("",300,60) GUICtrlCreateCheckBox("What did you say ? It didn't work...? Hah !",10,10,280,40,$BS_PUSHLIKE) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE
CyberSlug Posted April 4, 2005 Posted April 4, 2005 (edited) Works for me... but I have XP's ugly theme disabled... Edit: Here's the code#include <GUIConstants.au3> GUICreate("",300,60) GUICtrlCreateRadio("Works for me...",10,10,100,40,$BS_PUSHLIKE) GUICtrlCreateRadio("Works for me...",120,10,100,40,$BS_PUSHLIKE) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE Edited April 4, 2005 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
MHz Posted April 5, 2005 Posted April 5, 2005 (edited) Compare the first image with this image <{POST_SNAPBACK}>This is not a standard XP style.You are adding styles to the gui to achieve this look, or you have adjust the setting of your themes on your OS. My windows have rounded corners. Yours are not. Adjusted styles may affect the outcome, of your gui. Edited April 5, 2005 by MHz
Tagor Posted April 5, 2005 Author Posted April 5, 2005 Mine also has rounded corners. But I took the screenshot on a blue background.
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