June 15, 2024, 10:36:09 PM

News:

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


SYSBUTTON question

Started by Brian, November 04, 2014, 12:27:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brian

Hello,

When a SYSBUTTON is the default, it has a blue border round it

How can I set the focus to another SYSBUTTON and apply the blue border to it
so that it is visible to the user that that button is the one to use?

Thanks,

Brian

LarryMc

Use the @CTLBTNDEFAULT flag on the one you want to be the default button.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Brian

Larry,

I am already doing that, but I want a second button to be the default after the first
button has been pressed, and finished its action

Brian

LarryMc

I misunderstood.

OK, use the @CTLBTNDEFAULT on the first button.
Whenever you are ready to switch the default button use the MODIFYSTYLE command to remove the
@CTLBTNDEFAULT style from the first button and use the same command to add the @CTLBTNDEFAULT  style
to the second button.

You will probably need to use the REDRAWFRAME command on both buttons to refresh the display.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Brian

Great! Plumb forgot about that command...

Thanks, Larry