Toggle and default button styles

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
Post Reply