Jump to content

Square Button


Recommended Posts

#include <GuiConstantsEx.au3>

#include <ButtonConstants.au3>

$hGUI = GUICreate("Test", 200, 100)

$ctlButton = GUICtrlCreateCheckbox("Push", 60, 12, 75, 75, $BS_PUSHLIKE)

GUISetState()

Do

Until GUIGetMsg() = $GUI_EVENT_CLOSE

extraloob want square button, but is it possible to make it triangle or circle without guictrlcreatepic :)

just wondering :)

Link to comment
Share on other sites

extraloob want square button, but is it possible to make it triangle or circle without guictrlcreatepic :)

just wondering :)

Yes I just gave him some solutions for trying because I didn't really understand what he wanted...
Link to comment
Share on other sites

  • Developers

I read that he requires a toggle: First click changes the button to down state, next click changed the button back to upstate.

Only way I know is to set the Botton image yourself one each click.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

You are looking for something like this?

#include <GuiToolBar.au3>
#include <GuiConstantsEx.au3>

Global $idNew

$hGUI = GUICreate("Test GUI")

$hToolbar = _GUICtrlToolbar_Create($hGUI)

GUISetState()

_GUICtrlToolbar_AddBitmap($hToolbar, 1, -1, $IDB_STD_LARGE_COLOR)
_GUICtrlToolbar_AddButton($hToolbar, $idNew, $STD_FILENEW, "", $BTNS_CHECK)

Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
Edited by Pain
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...