BBC BASIC for Windows
Programming >> User Interface >> Key accelerators
http://bb4w.conforums.com/index.cgi?board=ui&action=display&num=1389897892

Key accelerators
Post by Malvern on Jan 16th, 2014, 5:44pm

Can you use a different keyboard accelerator on the main window and have a separate one for one or more dialogs?

If so how do you switch between them?
Re: Key accelerators
Post by admin on Jan 16th, 2014, 8:59pm

on Jan 16th, 2014, 5:44pm, Malvern wrote:
Can you use a different keyboard accelerator on the main window and have a separate one for one or more dialogs?

Assuming your dialogs are created by calling FN_newdialogaccel (in WINLIB2B) the accelerators are entirely independent. The accelerator used by the main window is controlled using the @haccel% and @hwacc% system variables and the accelerator used by the dialog(s) is specified as the last parameter of FN_newdialogaccel.

Richard.

Re: Key accelerators
Post by Malvern on Jan 16th, 2014, 11:33pm

Thank you.
I was hoping that you could do that.