Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SashForm
SashForm [message #454995] Wed, 04 May 2005 14:34 Go to next message
hortiz Mising name is currently offline hortiz Mising nameFriend
Messages: 96
Registered: July 2009
Member
Hi,

I'm using a SashForm containing in its upper part a TabFolder.

I have added a MouseListener on this TabFolder to minimize / maximize
associated child of the parent SashForm :

Initially, the TabFolder weight depends on the amount of its content, and
must not exceed 50% of the SashForm height.

If the user double clickes on a TabItem from this TabFolder, it is
minimized so that only the TabItem text is visible.

Now, if the user double clickes again on the TabItem, its original height
is restored.

My problem is that the Label instances within the TabItem are not properly
refreshed, for some of them nothing is visible, for some of them only a
part of them are displayed (i.e. "Na" instead of "Name :").

However, I do not have this problem if I resize my SashForm with the
associated sash.

I've tried to call computeSize() and layout() methods of the SashForm but
the problem remains.

My application runs on both Linux and Mac os.

Thanks for your help,
Helene
Re: SashForm [message #455000 is a reply to message #454995] Wed, 04 May 2005 20:44 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Would it be possible to demonstrate the problem with a simple SWT example?

"hortiz" <hortiz@xxxxx.com> wrote in message
news:2fa2bc0004dbe82459dd92563478044b$1@www.eclipse.org...
> Hi,
>
> I'm using a SashForm containing in its upper part a TabFolder.
>
> I have added a MouseListener on this TabFolder to minimize / maximize
> associated child of the parent SashForm :
>
> Initially, the TabFolder weight depends on the amount of its content, and
> must not exceed 50% of the SashForm height.
>
> If the user double clickes on a TabItem from this TabFolder, it is
> minimized so that only the TabItem text is visible.
>
> Now, if the user double clickes again on the TabItem, its original height
> is restored.
>
> My problem is that the Label instances within the TabItem are not properly
> refreshed, for some of them nothing is visible, for some of them only a
> part of them are displayed (i.e. "Na" instead of "Name :").
>
> However, I do not have this problem if I resize my SashForm with the
> associated sash.
>
> I've tried to call computeSize() and layout() methods of the SashForm but
> the problem remains.
>
> My application runs on both Linux and Mac os.
>
> Thanks for your help,
> Helene
>
>
>
Re: SashForm [message #455167 is a reply to message #455000] Mon, 09 May 2005 15:03 Go to previous message
hortiz Mising name is currently offline hortiz Mising nameFriend
Messages: 96
Registered: July 2009
Member
Hi Veronika,

My problem is now solved : as I was coding a simple example as you've
asked me, I've discovered that the TabFolder in the top part of the
SashForm had no Layout and no LayoutData... It seems to be the problem !

Thanks Veronika,
Helene
Previous Topic:Processing in Wizard when Next button pressed
Next Topic:Eclipse on Solaris 10
Goto Forum:
  


Current Time: Fri Apr 26 23:32:55 GMT 2024

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

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

Back to the top