Page 1 of 1
Posted: Tue Sep 17, 2002 5:27 pm
by BackupUser
Restored from previous forum. Originally posted by Justin.
I'm trying to have a toggle button with the default button appearence when is not pushed, combining flags does not work, is this normal?
if so is there any workaround?
Posted: Tue Sep 17, 2002 9:04 pm
by BackupUser
Restored from previous forum. Originally posted by fred.
ButtonGadget(0,50,50,100,25,"Click me...", #PB_Button_Toggle)
works here.. Anyone can confirm ?
Fred - AlphaSND
Posted: Tue Sep 17, 2002 9:17 pm
by BackupUser
Restored from previous forum. Originally posted by PB.
> ButtonGadget(0,50,50,100,25,"Click me...", #PB_Button_Toggle)
> works here.. Anyone can confirm ?
Yep, works fine. I didn't even know this flag existed... I should read
the docs a bit more carefully after every update.
PB - Registered PureBasic Coder
Posted: Tue Sep 17, 2002 9:22 pm
by BackupUser
Restored from previous forum. Originally posted by Justin.
Sorry if i did not explain well, i need a toggle button that when is not pushed has the appearence of a default button(heavy black border).
I guess the flags are not compatible, because this does not work:
ButtonGadget(0,50,50,100,25,"Click me...", #PB_Button_Toggle|#PB_Button_Default)
any solution?
Posted: Tue Sep 17, 2002 11:36 pm
by BackupUser
Restored from previous forum. Originally posted by PB.
> i need a toggle button that when is not pushed has the appearence
> of a default button(heavy black border).
You mean like this?
ButtonGadget(0,50,50,100,25,"Button",#BS_DEFPUSHBUTTON)
PB - Registered PureBasic Coder