Skip to main content



      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 17: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 14: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: Sat Jul 05 01:46:19 EDT 2025

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

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

Back to the top