May 11, 2024, 06:17:58 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Pushbutton

Started by zaphod, December 10, 2009, 10:29:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zaphod

Hello,

How can i make a push button ?
I use the flags Bs_pushbutton or bs_defpushbutton but that dont work ????

Ficko


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


@CTLBTNDEFAULT = 1 = bs_defpushbutton

Bs_pushbutton = 0


zaphod

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

REDEBOLT

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.
Regards,
Bob

LarryMc

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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library