Jump to content

Recommended Posts

Posted

I want to Create Square Button .

And if push, it is down ; nonpush , it is up.

??

Hi,

Look at :

-button style with help file

-GuiCtrlCreatePic and then you put it on event

-_GuiCtrlCreate with picture on button

Posted (edited)

yea rasim..

I try it . Good one but

How do add to ;

If i push it , button is low

if other push it , button is high..

:) I name it checkbox not button... :) Edited by FireFox
Posted

#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 :)

Posted

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...
Posted

yea rasim..

I try it . Good one but

How do add to ;

If i push it , button is low

if other push it , button is high..

What you mean? Moving the button? :)
  • Developers
Posted

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.
  :)

Posted

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

huhh :)

I try say that

Posted (edited)

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

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
  • Recently Browsing   0 members

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