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?
Toggle and default button styles
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

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

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

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm