Set focus when open new dialog or wizard [message #1810575] |
Tue, 13 August 2019 11:43  |
Eclipse User |
|
|
|
Hello,
I have a very specific question concerning the "Open Dialog" or "Open Wizard" functionality in sirius.
I know how to model those things (add groups, pages etc.) and the dialog/wizard also behaves as expected. Now, I want to automatically set the "focus" of the dialog/wizard to a specific element, when opening it.
For instance, assume I have a text field in my dialog/wizard that specfies the name of an object. I want to configure my dialog/wizard in such a way that the cursor is directly in the text field. So the user does not have to first select the text field to edit it.
Is there a way to do that in sirius?
Best regards,
Nico
|
|
|
|
|
Re: Set focus when open new dialog or wizard [message #1810665 is a reply to message #1810660] |
Thu, 15 August 2019 10:00  |
Eclipse User |
|
|
|
Hello community,
for all that are also interested in this topic, I found a kind of workaround that was at least suitable for me. In a wizard, by default, the first element is always "selected". Unfortunately, this first element is always the "toggle button" of the tree. So if you define a corresponding group style that disables this (Toggle Style = NONE) then the first element is actually the first element of the group (the text field in my case). So with this configuration, the focus is set correctly.
Maybe this helps others with similar problems.
Best regards,
Nico
|
|
|
Powered by
FUDForum. Page generated in 0.30088 seconds