Skip to main content


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 22:32 Go to next message
Eclipse UserFriend
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 07:33 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
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 21:57 Go to previous message
Eclipse UserFriend
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] DateTime
Next Topic:Table Editing with Pojo Databinding Eclipse 3.5
Goto Forum:
  


Current Time: Fri Apr 26 09:47:13 GMT 2024

Powered by FUDForum. Page generated in 0.04915 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top