Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to receive notification that the widget is created
How to receive notification that the widget is created [message #894690] Tue, 10 July 2012 03:22 Go to next message
Janusz Dalecki is currently offline Janusz Dalecki
Messages: 50
Registered: January 2010
Location: Sydney
Member
Hi,
I was wondering how can I receive notification that the widget (Canvas) is created first time. I just want to be notified only once when the widget is visually created.
Is there a way to do that?
Regards,
Janusz
Re: How to receive notification that the widget is created [message #894948 is a reply to message #894690] Wed, 11 July 2012 04:40 Go to previous messageGo to next message
Jan Krakora is currently offline Jan Krakora
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Hi,

what about SWT.Activate event?

[Updated on: Wed, 11 July 2012 04:44]

Report message to a moderator

Re: How to receive notification that the widget is created [message #894974 is a reply to message #894690] Wed, 11 July 2012 06:03 Go to previous messageGo to next message
Lakshmi Shanmugam
Messages: 274
Registered: July 2009
Location: India
Senior Member
Hi,
You can try the SWT.Paint event and remove the listener after the first notification.


Lakshmi P Shanmugam
Re: How to receive notification that the widget is created [message #895197 is a reply to message #894974] Wed, 11 July 2012 22:01 Go to previous message
Janusz Dalecki is currently offline Janusz Dalecki
Messages: 50
Registered: January 2010
Location: Sydney
Member
Thanks Guys, I will give it a go.
Janusz
Previous Topic:CTRL+Backspace and CTRL+Delete not working in aText Editor
Next Topic:SWT_AWT frame problem
Goto Forum:
  


Current Time: Sun Apr 20 12:19:30 EDT 2014

Powered by FUDForum. Page generated in 0.02181 seconds