Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to catch CoolItem resizing
How to catch CoolItem resizing [message #445763] Wed, 10 November 2004 18:33 Go to next message
Vladimir is currently offline VladimirFriend
Messages: 10
Registered: July 2009
Junior Member
Hello,

I am trying to resize a combo box in a coolItem of a CoolBar. I am trying to
catch the coolItem's resize events like so:

myCoolItem.addListener(SWT.Resize, new Listener() {
public void handleEvent(Event event) {
System.out.println("resized");
}
});

but it doesn't catch anything. Anybody sees the problem? Same approach works
on the CoolBar resize. Thanks.

Vladimir
Re: How to catch CoolItem resizing [message #445921 is a reply to message #445763] Thu, 11 November 2004 23:18 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
There is no notification when a CoolItem is resized but you can add
listeners to the control inside the cool item or the cool bar.

"Vladimir" <vladimir@bogus.com> wrote in message
news:cmtmsm$hff$1@eclipse.org...
> Hello,
>
> I am trying to resize a combo box in a coolItem of a CoolBar. I am trying
to
> catch the coolItem's resize events like so:
>
> myCoolItem.addListener(SWT.Resize, new Listener() {
> public void handleEvent(Event event) {
> System.out.println("resized");
> }
> });
>
> but it doesn't catch anything. Anybody sees the problem? Same approach
works
> on the CoolBar resize. Thanks.
>
> Vladimir
>
>
Previous Topic:Workaround For Large Images?
Next Topic:AWT Fonts in SWT
Goto Forum:
  


Current Time: Wed Apr 24 19:08:16 GMT 2024

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

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

Back to the top