PDA

View Full Version : Dialog controls and Enter-key


VVaari
10-21-2009, 09:13 AM
Is it possible to press focused button using Enter-key in dialog? I thought this was going to be something so simple that you just use setFocus() on button and press Enter, but that doesn't seem to work.

denisT
10-21-2009, 03:59 PM
Is it possible to press focused button using Enter-key in dialog? I thought this was going to be something so simple that you just use setFocus() on button and press Enter, but that doesn't seem to work.

it's easy. Check Interface: UIAccessor in MXS Help.
UIAccessor.PressDefaultButton()
UIAccessor.PressButton <HWND>hwnd

VVaari
10-21-2009, 05:27 PM
Thanks a lot denisT :)

CGTalk Moderation
10-21-2009, 05:27 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.