Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Buttons stay when window is maximized
Buttons stay when window is maximized [message #466883] Wed, 18 January 2006 22:14 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:FormLayout aligning to biggest label?
Next Topic:Hiding controls
Goto Forum:
  


Current Time: Tue Sep 24 08:59:20 GMT 2019

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

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

Back to the top