Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] issues with text field in eclipse version 4

yes I understand. I have tried all the examples out there on the internet and none of them will work, well the text box displays but the input will not show up. The only reason I sent it to the e4 dev is because I just wanted to make sure it is not a problem with eclipse version 4?

This is my code, it is prob me thats wrong but I just wanted to make sure it is not an issue with e4.

final Text text3 = new Text(p1, SWT.BORDER);
text3.setBounds(600, 500, 50, 50);
p1.getParent().layout();

Regards,
Ann.
On Thu, Aug 11, 2011 at 9:03 PM, Bogdan Gheorghe <gheorghe@xxxxxxxxxx> wrote:
Hi Ann -

If you are just creating a text widget you don't need to do anything special to text to appear (apart from making sure that the widget is sized; either through a layout or by calling setBounds). There are a number of text widget examples on the SWT snippet page: http://eclipse.org/swt/snippets/ .

Does your text widget have focus? If you want, you can send me a snippet of code directly and I can take a look at it.
B


PS. This sounds more like a question that should be asked in the SWT newsgroups.


From:
To:
E4 Project developer mailing list <e4-dev@xxxxxxxxxxx>
Date: 08/11/2011 01:46 PM
Subject: Re: [e4-dev] issues with text field in eclipse version 4
Sent by: e4-dev-bounces@xxxxxxxxxxx





Would I need a listener for my input?

On 8/11/11, Ann Smith <annsmith.smith38@xxxxxxxxx> wrote:
> It is a stand alone application that I can customize using the external css
> files that is new to e4.
> I have a number of Composites and I am using a stack composite to display
> each page.
> So the text box appears within composite p1.
>
> Hope this is easy to understand!
> Ann
>
>
>
> On Thu, Aug 11, 2011 at 1:40 PM, Eric Moffatt <emoffatt@xxxxxxxxxx> wrote:
>
>>
>> Ann, where does this text box appear; in a dialog...a view, an editor.
>> Somewhere else ?
>>
>> Is the code involved in something you are contributing into the Eclipse 4
>> SDK like a view or is this a stand-alone application ?
>>
>> Just trying to get the gist of what you are trying to do...
>>
>> Eric
>>
>>
>>
>>
>>   From:
>> Ann Smith <annsmith.smith38@xxxxxxxxx>
>>  To: E4 Project developer mailing list <e4-dev@xxxxxxxxxxx> Date:
>> 08/11/2011
>> 08:15 AM Subject: Re: [e4-dev] issues with text field in eclipse version 4
>> Sent
>> by: e4-dev-bounces@xxxxxxxxxxx
>> ------------------------------
>>
>>
>>
>> Hi Remy,
>>
>> I am trying to add a text box so the user can enter in their name in the
>> text area in swt within eclipse version 4. I can get the box displayed
>> but
>> when I type in input from the keyboard it will not display it in the text
>> box
>> This is my code for it:
>>   final Text text3 = new Text(p1, SWT.BORDER);
>>   text3.setBounds(600, 500, 50, 50);
>>   p1.pack();
>> Thanks in advance, Ann
>>
>> On Thu, Aug 11, 2011 at 12:50 PM, Remy Suen
>> <*remysuen@xxxxxxxxxx*<remysuen@xxxxxxxxxx>>
>> wrote:
>> On Thu, Aug 11, 2011 at 3:33 AM, Ann Smith
>> <*annsmith.smith38@xxxxxxxxx*<annsmith.smith38@xxxxxxxxx>>
>> wrote:
>> > I am just wondering has anyone came accross issues displaying the users
>> > input in a text field in eclipse version 4 as I am having alot of
>> problems
>> > trying to get this to work?
>>
>> Hi Ann, your question is very vague at the moment. Please provide
>> additional context and code/screenshots.
>>
>> Regards,
>> Remy
>>
>> ----------
>> Remy Suen
>> Eclipse Platform/UI Committer
>> IBM Ottawa*
>> **1-613-356-5162* <1-613-356-5162>
>>
>> _______________________________________________
>> e4-dev mailing list*
>> **e4-dev@xxxxxxxxxxx* <e4-dev@xxxxxxxxxxx>*
>> **https://dev.eclipse.org/mailman/listinfo/e4-dev*<
https://dev.eclipse.org/mailman/listinfo/e4-dev>
>>
>> _______________________________________________
>> e4-dev mailing list
>> e4-dev@xxxxxxxxxxx
>>
https://dev.eclipse.org/mailman/listinfo/e4-dev
>>
>>
>>
>> _______________________________________________
>> e4-dev mailing list
>> e4-dev@xxxxxxxxxxx
>>
https://dev.eclipse.org/mailman/listinfo/e4-dev
>>
>>
>
_______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/e4-dev



_______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/e4-dev



Back to the top