Sign in to follow this  
Followers 0
Tagor

$WS_EX_WINDOWEDGE not working for buttons

15 posts in this topic

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)

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 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.

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Hmm, that doesn't look like the tabs. Any other suggestions?

Edit; both don't look like the tabs.

Edited by Tagor

Share this post


Link to post
Share on other sites

Here is a screenshot :).

So the button should look like the tabs.

Share this post


Link to post
Share on other sites

Anybody?

Share this post


Link to post
Share on other sites

I think you want to use GUICtrlCreateCheckbox with the style $BS_PUSHLIKE..

Share this post


Link to post
Share on other sites

That just shows a checkbox for me.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Compare the first image with this image :)

Share this post


Link to post
Share on other sites

It should look like the TAB not the button :)

Share this post


Link to post
Share on other sites

#12 ·  Posted (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 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!

Share this post


Link to post
Share on other sites

Strange that it looks different for me.

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

Compare the first image with this image :D

<{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 by MHz

Share this post


Link to post
Share on other sites

Mine also has rounded corners. But I took the screenshot on a blue background.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0