StrataFrame Forum

Accelerator keys

http://forum.strataframe.net/Topic6403.aspx

By Ben Kim - 1/29/2007

In Clarion we had the ability to setup accelerator keys or hotkeys that allow the user to hit Alt+<key> combo to select a field, tab, etc. 

For example I have a StrataFrame Maintenance form with a Tab Control.  This control has two pages.  One page is set to "General" the other "Additional Information".  I would like to have the ability to click Alt+G to select page one, and Alt+A to select the Additional Information tab.  This worked with label controls in Clarion too.  Meaning:

Division:   _________

Street:    ______________

...if I hit Alt+S, the entry field next to street would be selected.  How do I do the same in DOT NET?

Thanks!

Ben

By Ivan George Borges - 1/31/2007

Hi Ben.

I've googled after the TabControl hotkeys and found out some solutions to it, mainly creating a user control. Don't think it will work out of the box. A shame, isn't it?

Cheers.

By Greg McGuffey - 1/31/2007

I have no idea about tab controls, but for textboxes, combos, lists, etc. you setup hot keys using the label just before it in tab order. Check out the UseMnemonic property of a label.
By Trent L. Taylor - 1/31/2007

Yeah, tabs are completely different.  Let me know if you have any troubles and I will see if I can figure something out.
By Ben Kim - 3/1/2007

Yes the controls that I have tried so far work with the exception of TAB controls.  Is there a workaround for this since we use accelerator keys on all of our tabs?

Ben