mettli / guichan

Automatically exported from code.google.com/p/guichan
Other
0 stars 0 forks source link

REQUEST: Visibility events #112

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
While this could bloat visibility calls a bit, I think that it'd be
particularly useful if we could have visibility events in GUIChan, so that
we could, for instance, reset a widget when it's made visible. A good
example of where this could be useful is when we're bringing up a progress
bar, or even firing off draw() events on making a widget visible (although
this probably wouldn't be the only place to fire off draw() events,
depending). 

Original issue reported on code.google.com by irar...@gmail.com on 16 May 2009 at 6:01

GoogleCodeExporter commented 9 years ago
WidgetListener has widgetShown() and widgetHidden() methods. I think these do 
what
you want, right?

Original comment by b.lindeijer on 17 May 2009 at 9:50

GoogleCodeExporter commented 9 years ago
Yeah, didn't realize that. Thanks.

Mainly mentioned it because I thought the only way to do visibility events at 
the
moment was to poll for them.

Original comment by irar...@gmail.com on 18 May 2009 at 4:47

GoogleCodeExporter commented 9 years ago

Original comment by b.lindeijer on 18 May 2009 at 6:40