IonicWind Software

IWBasic => General Questions => Topic started by: Brian on November 04, 2014, 12:27:17 PM

Title: SYSBUTTON question
Post by: Brian on November 04, 2014, 12:27:17 PM
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
Title: Re: SYSBUTTON question
Post by: LarryMc on November 04, 2014, 12:30:02 PM
Use the @CTLBTNDEFAULT flag on the one you want to be the default button.
Title: Re: SYSBUTTON question
Post by: Brian on November 04, 2014, 12:38:45 PM
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
Title: Re: SYSBUTTON question
Post by: LarryMc on November 04, 2014, 01:05:40 PM
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.
Title: Re: SYSBUTTON question
Post by: Brian on November 04, 2014, 03:16:56 PM
Great! Plumb forgot about that command...

Thanks, Larry