Maintenance Form Toolstrip & Shortcut Keys


Author
Message
Chris Crabtree
Chris Crabtree
StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)
Group: Forum Members
Posts: 57, Visits: 107
First, I have a suggestion for a themed point release sometime in SF's future. Have one point release dedicated to finding all the opportunities for shortcut keys in all the designers. SF is a wonderfully fast development tool--and it would be faster still if I didn't have to take my hand off the keyboard to mouse around so much during design.

But that's not what I'm asking about here. Smile

In the Maintenance Form Toolstrip, I understand why you wouldn't necessarily set default shortcut keys for Edit, Save, Undo, etc. You don't want to conflict with other logic a developer may implement on a form.

However, it would be valuable to have a way to set the shortcut keys for toolstrip items. I tried editing the Items collection and changing the Text of the Edit button from 'Edit' to '&Edit'. To no avail. The designer resets all the default properties of all the built-in toolstrip buttons, it appears (as an aside, is that intentional?).

Now, I can add a new item and shortcut it just fine: I added another Edit item with the Text '&Edit' and it behaves as expected. So I could workaround the issue I guess, but I'd rather not have to wire up a bunch of fake toolstrip items to get this fairly standard behavior going.

Suggestions?

Thanks!

Replies
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Yes, subclassing is certainly the best way to do it Smile  Promotes the best reuse.

Thanks for posting the code for others.

Randy Jean
Randy Jean
StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)
Group: StrataFrame Users
Posts: 105, Visits: 641
Yeah, I definitely can use this. Thanks! One of the requirements of the app I'm working on is that the users be able to navigate without the use of the mouse, if they so choose. (they are coming straight from the DOS world) Even though it may be a training issue on the Alt+ combinations at least we can say they don't have to use the mouse.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search