IonicWind Software

IWBasic => GUI Central => Topic started by: zaphod on December 10, 2009, 10:29:26 AM

Title: Pushbutton
Post by: zaphod on December 10, 2009, 10:29:26 AM
Hello,

How can i make a push button ?
I use the flags Bs_pushbutton or bs_defpushbutton but that dont work ????
Title: Re: Pushbutton
Post by: Ficko on December 10, 2009, 11:43:40 AM

CONTROL win,@button,"QUIT",4,100,50,20,@CTLBTNDEFAULT,23


@CTLBTNDEFAULT = 1 = bs_defpushbutton

Bs_pushbutton = 0

Title: Re: Pushbutton
Post by: zaphod on December 10, 2009, 12:33:35 PM
Thanx Ficko, but that was not what i search.
I have found that :


setid "BS_PUSHLIKE",4096
CONTROL d1,@CHECKBOX,"button push (on/off)",10,50,100,20,@bs_pushlike,23
Title: Re: Pushbutton
Post by: REDEBOLT on December 10, 2009, 01:59:32 PM
Here are the types of controls:

@BUTTON
@CHECKBOX
@RADIOBUTTON
@EDIT
@LISTBOX
@COMBOBOX
@STATIC
@SCROLLBAR
@GROUPBOX
@RICHEDIT
@LISTVIEW
@STATUS
@SYSBUTTON
@RGNBUTTON
@TREEVIEW

Ficko is correct.

Read the "Creating a Control" in the help file.
Title: Re: Pushbutton
Post by: LarryMc on December 10, 2009, 03:17:43 PM
If you happen to need a group of pushbuttons that are interactive then look at my pushbutton custom control at

http://www.ionicwind.com/forums/index.php/topic,2270.msg19738.html#msg19738

Larry