Resizing w/ INI file [message #436409] |
Tue, 18 May 2004 20:28 |
Eclipse User |
|
|
|
Originally posted by: am560571.wcupa.edu
I have a sash form and inside this sash form I have 1 treeview and 1 table
view. I created an ini file so that it can remeber how the user wants the
application to look. The file reads and writes fine but I have a problem
where I lose the silderbar. I tried ussing the pack() methode but that
resests the methods.
I have the following methods being called in this order. The variables
are created when I read in the ini file
getShell().setLocation(lx, ly);
getShell().setSize(shellx, shelly);
treef.setLocation(folx, foly);
tabelf.setLocation(filex, filey);
treef.setSize(y, x);
tablef.setSize(y1, x1);
I tired adding a getShell().pack(). I also tried using the redrawl and
update methods. I also tried the sash_form.layout(true); All didn't
work. So I am wondering what method I need so that I can get the
silderbar in between the tree and the table. I am new to java and only
been ussing SWT for like 1 week so any help in greatly apperiated...I
tried looking on the internet for the resizing widgets and thats why I
tried using some of those methods.
Later,
Whatsgoingon
|
|
|
Re: Resizing w/ INI file [message #436451 is a reply to message #436409] |
Tue, 18 May 2004 20:48 |
Eclipse User |
|
|
|
Originally posted by: am560571.wcupa.edu
OK I think it has something to do with the invalidate method but I think
that is only available with AWT so is there something like this in SWT of
there is I will try it and get back here.
Later,
whatsgoingon
|
|
|
|
Re: Resizing w/ INI file [message #436621 is a reply to message #436470] |
Thu, 20 May 2004 12:16 |
Eclipse User |
|
|
|
Originally posted by: am560571.wcupa.edu
Thanks that worked GREAT!
Aaron
Robert Bacs wrote:
> Hi,
> Try to use methods getWeights() and setWeights() loacted in SashForm class.
> Boby
> "whatsgoingon" <am560571@wcupa.edu> wrote in message
> news:c8dsq0$eds$1@eclipse.org...
> > OK I think it has something to do with the invalidate method but I think
> > that is only available with AWT so is there something like this in SWT of
> > there is I will try it and get back here.
> >
> > Later,
> > whatsgoingon
> >
|
|
|
Powered by
FUDForum. Page generated in 0.01754 seconds