Jump to content
Sign in to follow this  
extraloob

Square Button

Recommended Posts

extraloob

I want to Create Square Button .

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

??

Share this post


Link to post
Share on other sites
FireFox

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


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
FireFox

This?

#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
:) if it's that i'm crazy

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
extraloob

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

Share this post


Link to post
Share on other sites
FireFox

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

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
DeeRiee

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


Sorry 4 Bad English, I'm Indonesian...I'm really need 'Translator' for helping me posting in this forum (http://deeriee.wordpress.com)

Share this post


Link to post
Share on other sites
FireFox

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

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
rasim

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

Share this post


Link to post
Share on other sites
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
extraloob

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

Share this post


Link to post
Share on other sites
extraloob

up :)

Share this post


Link to post
Share on other sites
Pain

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

Share this post


Link to post
Share on other sites
spudw2k

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  

×