Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » little rendering problems
little rendering problems [message #21256] Wed, 02 May 2007 11:22 Go to next message
Eclipse UserFriend
Originally posted by: manuel.staechele.levante-software.ch

hi,

i have a few little rendering problems

1. combo boxes are simple select boxes?

2. how can i increas the size of label, combo, text boxes etc.?
the method setSitze does not work for me.
Text text = new Text (parent, SWT.NONE);
text.setSize (100, 20);

3. the headlines of my views do not show the full text i have similar to
the demo a left view with the headline "Menu" but can only see "M"...

4. i can not change "RAP Startup Page" in the title (i see the other
mailings about)

are all swt methods implemented?

i use firefox 2.0 with minFontSize 16 pixel. But looks very similiar in
internet explorer 6 too.

so many thanks

greetings

manuel
Re: little rendering problems [message #21290 is a reply to message #21256] Wed, 02 May 2007 12:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Hi Manuel,

please see my comments below.

Cheers,
Rüdiger

Manuel Staechele wrote:
> hi,
>
> i have a few little rendering problems
>
> 1. combo boxes are simple select boxes?

Combo boxes with editable text area are not yet implemented, is it that
what you meant?

>
> 2. how can i increas the size of label, combo, text boxes etc.?
> the method setSitze does not work for me.
> Text text = new Text (parent, SWT.NONE);
> text.setSize (100, 20);

Could you explain why it doesn't work? If you do not use layout
managers, setting the size explicitly as in your snippet should work.

>
> 3. the headlines of my views do not show the full text i have similar to
> the demo a left view with the headline "Menu" but can only see "M"...

Yes, the current calculation for the width of a CTabItem is a bit rough
in some cases.

>
> 4. i can not change "RAP Startup Page" in the title (i see the other
> mailings about)

We plan to make the index.html page, that is used at startup,
customizable. With this in place you can also change the title.

>
> are all swt methods implemented?

An overview of the differences between SWT and RWT and the status of RWT
can be found here: http://wiki.eclipse.org/index.php/RWTOverview
In addition it's worth reading the new and noteworthy pages that can be
found here: http://wiki.eclipse.org/index.php/RAP

>
> i use firefox 2.0 with minFontSize 16 pixel. But looks very similiar in
> internet explorer 6 too.
>
> so many thanks
>
> greetings
>
> manuel
Re: little rendering problems [message #21826 is a reply to message #21290] Thu, 03 May 2007 03:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: manuel.staechele.levante-software.ch

many thanks
please see my answers below.

Rüdiger Herrmann schrieb:
> Hi Manuel,
>
> please see my comments below.
>
> Cheers,
> Rüdiger
>
> Manuel Staechele wrote:
>> hi,
>>
>> i have a few little rendering problems
>>
>> 1. combo boxes are simple select boxes?
>
> Combo boxes with editable text area are not yet implemented, is it that
> what you meant?
yes you right, its not realy importent..


>> 2. how can i increas the size of label, combo, text boxes etc.?
>> the method setSitze does not work for me.
>> Text text = new Text (parent, SWT.NONE);
>> text.setSize (100, 20);
>
> Could you explain why it doesn't work? If you do not use layout
> managers, setting the size explicitly as in your snippet should work.
first i build a group
group = new Group( parent, SWT.NONE );
group.setLayoutData( new RowData( 500, 200) );
group.setLayout( new GridLayout( 2, true ) );

than i add label

Label label1 = new Label(group, SWT.CENTER);
label1.setText("Name: ");
label1.setSize(200, 30);
label1.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER));


than i add text area.

final Text text13 = new Text( group, SWT.BORDER | SWT.SINGLE | SWT.CENTER );
text13.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));

maybe i need a swt tutorial? ;-)
>
>>
>> 3. the headlines of my views do not show the full text i have similar to
>> the demo a left view with the headline "Menu" but can only see "M"...
>
> Yes, the current calculation for the width of a CTabItem is a bit rough
> in some cases.
i choose a smaler image and it work mutch better.

>> 4. i can not change "RAP Startup Page" in the title (i see the other
>> mailings about)
>
> We plan to make the index.html page, that is used at startup,
> customizable. With this in place you can also change the title.
cool.

at all its a real good project!
>
>>
>> are all swt methods implemented?
>
> An overview of the differences between SWT and RWT and the status of RWT
> can be found here: http://wiki.eclipse.org/index.php/RWTOverview
> In addition it's worth reading the new and noteworthy pages that can be
> found here: http://wiki.eclipse.org/index.php/RAP
>
>>
>> i use firefox 2.0 with minFontSize 16 pixel. But looks very similiar
>> in internet explorer 6 too.
>>
>> so many thanks
>>
>> greetings
>>
>> manuel
Re: little rendering problems [message #21870 is a reply to message #21826] Thu, 03 May 2007 03:49 Go to previous message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

please see my comment below...

Cheers
Rüdiger

Manuel Staechele wrote:
> many thanks
> please see my answers below.
>
> Rüdiger Herrmann schrieb:
>> Hi Manuel,
>>
>> please see my comments below.
>>
>> Cheers,
>> Rüdiger
>>
>> Manuel Staechele wrote:
>>> hi,
>>>
>>> i have a few little rendering problems
>>>
>>> 1. combo boxes are simple select boxes?
>>
>> Combo boxes with editable text area are not yet implemented, is it
>> that what you meant?
> yes you right, its not realy importent..
>
>
>>> 2. how can i increas the size of label, combo, text boxes etc.?
>>> the method setSitze does not work for me.
>>> Text text = new Text (parent, SWT.NONE);
>>> text.setSize (100, 20);
>>
>> Could you explain why it doesn't work? If you do not use layout
>> managers, setting the size explicitly as in your snippet should work.
> first i build a group
> group = new Group( parent, SWT.NONE );
> group.setLayoutData( new RowData( 500, 200) );
> group.setLayout( new GridLayout( 2, true ) );
>
> than i add label
>
> Label label1 = new Label(group, SWT.CENTER);
> label1.setText("Name: ");
> label1.setSize(200, 30);
> label1.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER));
>
>
> than i add text area.
>
> final Text text13 = new Text( group, SWT.BORDER | SWT.SINGLE |
> SWT.CENTER );
> text13.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
>
> maybe i need a swt tutorial? ;-)

An SWT tutorial is always a good idea and also helps programming with
RAP as we build a subset of SWT and try hard to be as close as possible.
To arrange your widget you should either use setSize() or use layout
managers. Mixing both will very likely end in a mess...
In your code snippet, if you *really* wish to set sizes explicitly and
not let the layout manager do that boring work, replace
label1.setSize(200, 30);
label1.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER));
with
label1.setLayoutData(new GridData(200, 30));

>>
>>>
>>> 3. the headlines of my views do not show the full text i have similar to
>>> the demo a left view with the headline "Menu" but can only see "M"...
>>
>> Yes, the current calculation for the width of a CTabItem is a bit
>> rough in some cases.
> i choose a smaler image and it work mutch better.
>
>>> 4. i can not change "RAP Startup Page" in the title (i see the other
>>> mailings about)
>>
>> We plan to make the index.html page, that is used at startup,
>> customizable. With this in place you can also change the title.
> cool.
>
> at all its a real good project!
>>
>>>
>>> are all swt methods implemented?
>>
>> An overview of the differences between SWT and RWT and the status of
>> RWT can be found here: http://wiki.eclipse.org/index.php/RWTOverview
>> In addition it's worth reading the new and noteworthy pages that can
>> be found here: http://wiki.eclipse.org/index.php/RAP
>>
>>>
>>> i use firefox 2.0 with minFontSize 16 pixel. But looks very similiar
>>> in internet explorer 6 too.
>>>
>>> so many thanks
>>>
>>> greetings
>>>
>>> manuel
Previous Topic:Error when deploying rap application in tomcat
Next Topic:RAP Questions
Goto Forum:
  


Current Time: Fri Jul 18 22:32:29 EDT 2025

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

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

Back to the top