Jump to content

how do i create a button that looks like this?


Recommended Posts

Is it possible to put $SS_SUNKEN in the button style?

Yes.
Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt
Link to comment
Share on other sites

i put the style on the button and still does not look like my image.

Hmm... I just tried it out and it appears I was wrong. $SS_SUNKEN doesn't seem to work. I've never created a sunken button, I'll see if I can figure it out.
Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt
Link to comment
Share on other sites

Hmm... I just tried it out and it appears I was wrong. $SS_SUNKEN doesn't seem to work. I've never created a sunken button, I'll see if I can figure it out.

I just wrote a little test using a label as a button and it seems to work fine. This way, you can use the $SS_SUNKEN style.

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>

GUICreate("Test",400,60)
$button = GUICtrlCreateLabel("Test Button",10,10,380,40,$SS_SUNKEN + $SS_CENTER + $SS_CENTERIMAGE)

GUISetState()
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $button
            MsgBox(0,"","Button Pressed.")
    EndSelect
    Sleep(10)
WEnd
Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...