Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Why Text- component is resizing in a dummy way?
Why Text- component is resizing in a dummy way? [message #248334] Wed, 02 June 2004 07:41 Go to next message
Eclipse UserFriend
Originally posted by: purjo76.luukku.com

Hi!

I have a dialog with lots of Text- components for user to input some
values. This same dialog is used also for editing previously set data,
i.e. same dialog is opened, and then Text.setText() is called for all
components.

When this dialog is opened for adding a new object, all Text components
are already in pretty good size (= default size?). The problem is that
when IŽm using this dialog for editing previously set data, all Text
components are automagically resized to have exactly the width of the text
that was set with setText() method! This is really annoying, because if I
previously inserted just one character in to a Text component, now this
componentŽs width is just one character. Naturally, when typing new text
to this field, only one character can be seen at a time!

How could I prevent the Text component from resizing in this stupid
manner???
Re: Why Text- component is resizing in a dummy way? [message #248450 is a reply to message #248334] Wed, 02 June 2004 14:10 Go to previous message
Eclipse UserFriend
Originally posted by: pdrolet.mac.com

Purjo wrote:
> Hi!
>
> I have a dialog with lots of Text- components for user to input some
> values. This same dialog is used also for editing previously set data,
> i.e. same dialog is opened, and then Text.setText() is called for all
> components.
>
> When this dialog is opened for adding a new object, all Text components
> are already in pretty good size (= default size?). The problem is that
> when IŽm using this dialog for editing previously set data, all Text
> components are automagically resized to have exactly the width of the text
> that was set with setText() method! This is really annoying, because if I
> previously inserted just one character in to a Text component, now this
> componentŽs width is just one character. Naturally, when typing new text
> to this field, only one character can be seen at a time!
>
> How could I prevent the Text component from resizing in this stupid
> manner???
>
>
>
Hi,

This depends on the layout used. I use mostly FormLayout now and this
one behaves in the correct manner - on all platforms.

Patrice
Previous Topic:Re: Re: CVS perspective - how to set up "Repository location"
Next Topic:RC1 behaves differently from M9!?
Goto Forum:
  


Current Time: Sun Jun 08 21:46:00 EDT 2025

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

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

Back to the top