Buttons stay when window is maximized [message #466883] |
Wed, 18 January 2006 22:14 |
Eclipse User |
|
|
|
Originally posted by: psentosa.yahoo.com
Hi...
how can I set the location of buttons, so that they stay in their place even the window is maximized? e.g..I'd like to put some buttons on the lower right part of an editor (RCP)..
Thanks in advance
Best Regards
ps
|
|
|
Re: Buttons stay when window is maximized [message #466952 is a reply to message #466883] |
Thu, 19 January 2006 19:49 |
Eclipse User |
|
|
|
Originally posted by: kwpeck.mersoft.com
Use the FormLayout and make the buttons relative to the bottom of the
editor.
// Code that I just typed and did not try to compile - just gives you
the general idea
FormData fdBtn = new FormData();
fdBtn.bottom = new FormAttachment(100, -btn.height);
btn.setLayoutData(fdBtn);
Paul Sentosa wrote:
> Hi...
>
> how can I set the location of buttons, so that they stay in their place even the window is maximized? e.g..I'd like to put some buttons on the lower right part of an editor (RCP)..
>
> Thanks in advance
>
> Best Regards
> ps
|
|
|
Powered by
FUDForum. Page generated in 0.05308 seconds