Tagor Posted April 2, 2005 Share 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) Link to comment Share on other sites More sharing options...
GaryFrost Posted April 2, 2005 Share 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. Link to comment Share on other sites More sharing options...
Tagor Posted April 2, 2005 Author Share 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 Link to comment Share on other sites More sharing options...
Holger Posted April 3, 2005 Share 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 Link to comment Share on other sites More sharing options...
Tagor Posted April 3, 2005 Author Share Posted April 3, 2005 Here is a screenshot . So the button should look like the tabs. Link to comment Share on other sites More sharing options...
Tagor Posted April 4, 2005 Author Share Posted April 4, 2005 Anybody? Link to comment Share on other sites More sharing options...
Helge Posted April 4, 2005 Share Posted April 4, 2005 I think you want to use GUICtrlCreateCheckbox with the style $BS_PUSHLIKE.. Link to comment Share on other sites More sharing options...
Tagor Posted April 4, 2005 Author Share Posted April 4, 2005 That just shows a checkbox for me. Link to comment Share on other sites More sharing options...
Helge Posted April 4, 2005 Share 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 Link to comment Share on other sites More sharing options...
Tagor Posted April 4, 2005 Author Share Posted April 4, 2005 Compare the first image with this image Link to comment Share on other sites More sharing options...
Tagor Posted April 4, 2005 Author Share Posted April 4, 2005 It should look like the TAB not the button Link to comment Share on other sites More sharing options...
CyberSlug Posted April 4, 2005 Share 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! Link to comment Share on other sites More sharing options...
Tagor Posted April 5, 2005 Author Share Posted April 5, 2005 Strange that it looks different for me. Link to comment Share on other sites More sharing options...
MHz Posted April 5, 2005 Share 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 Link to comment Share on other sites More sharing options...
Tagor Posted April 5, 2005 Author Share Posted April 5, 2005 Mine also has rounded corners. But I took the screenshot on a blue background. 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