Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » initial focus in wizard page
initial focus in wizard page [message #517754] Mon, 01 March 2010 17:32 Go to next message
Eclipse User
Originally posted by: jann.schneider.googlemail.com

Hello,

I'm currently implementing a wizard with several pages. Now i am
wondering how to set the focus initial to a specific control. I thought
in my createControl(...) method after creating and initializing several
widgets and calling setControl(...) afterwards i could just use e.g.
someWidget.setFocus() But this doesn't work. I just have the focus at
the next button.

Do i miss something here? Or is this the wrong time to do so?
Maybe it's due to the fact i didn't implement canFlipToNextPage() and
such things yet. I first wanted to do the GUI and afterwards the logic
behind ..

Thanks in advance
Regards Jann
Re: initial focus in wizard page [message #517790 is a reply to message #517754] Tue, 02 March 2010 02:33 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.
Messages: 621
Registered: July 2009
Senior Member
On 02/03/10 4:02 AM, Jann S. wrote:
> Hello,
>
> I'm currently implementing a wizard with several pages. Now i am
> wondering how to set the focus initial to a specific control. I thought
> in my createControl(...) method after creating and initializing several
> widgets and calling setControl(...) afterwards i could just use e.g.
> someWidget.setFocus() But this doesn't work. I just have the focus at
> the next button.

override the setVisible() method and set the focus to the widget

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Re: initial focus in wizard page [message #518061 is a reply to message #517790] Tue, 02 March 2010 16:57 Go to previous message
Eclipse User
Originally posted by: jann.schneider.googlemail.com

Am 02.03.2010 08:33, schrieb Prakash G.R.:
> On 02/03/10 4:02 AM, Jann S. wrote:
>> Hello,
>>
>> I'm currently implementing a wizard with several pages. Now i am
>> wondering how to set the focus initial to a specific control. I thought
>> in my createControl(...) method after creating and initializing several
>> widgets and calling setControl(...) afterwards i could just use e.g.
>> someWidget.setFocus() But this doesn't work. I just have the focus at
>> the next button.
>
> override the setVisible() method and set the focus to the widget
>

THX! this works perfectly!

regards Jann!
Previous Topic:[DataBinding] Databinding support for Dialogs
Next Topic:TableCursor for multicolumn tree?
Goto Forum:
  


Current Time: Wed Jul 30 09:24:52 EDT 2014

Powered by FUDForum. Page generated in 0.01826 seconds