Message 1 of 4
DCL - How to make [return] key work?

Not applicable
05-12-2005
05:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
in my custom dcl-driven dialogs, how can I make the [return] key work? I'm using ObjectArx 2005.
More specifically, I've got an edit box, where the user can input something and needs to issue the action by clicking on a button. This is quite uncomfortable, since most people will try to press the [return] key to commence the action. Unfortunately this doesn't work, since the focus is still on the edit box. (It is possible to press [tab] and then [return], but this also isn't very nice...)
Is there a way to "connect" the [return] key to a specific button, when pressed inside an edit box?
This issue is bugging me for a long time, so I would be very glad if someone had any idea on this.
(Yes, I know, don't use dcl dialogs, but well, I like them 😉
Thanks,
Sebastian
in my custom dcl-driven dialogs, how can I make the [return] key work? I'm using ObjectArx 2005.
More specifically, I've got an edit box, where the user can input something and needs to issue the action by clicking on a button. This is quite uncomfortable, since most people will try to press the [return] key to commence the action. Unfortunately this doesn't work, since the focus is still on the edit box. (It is possible to press [tab] and then [return], but this also isn't very nice...)
Is there a way to "connect" the [return] key to a specific button, when pressed inside an edit box?
This issue is bugging me for a long time, so I would be very glad if someone had any idea on this.
(Yes, I know, don't use dcl dialogs, but well, I like them 😉
Thanks,
Sebastian