Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TopWindow&PopUp, TrayIcon » How to do something when window is shown
Re: How to do something when window is shown [message #17224 is a reply to message #17174] Sun, 03 August 2008 14:09 Go to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
cbpporter wrote on Fri, 01 August 2008 04:49

I need it because I have a dialog that need to update itself on a show operation from a cache. I could do something like first update, and then call Show, but since the dialog gets shown from a lot of different places and it's content is determined by the cash, I considered it would be better for the dialog to be the one who "owns" the method of updating. This way all the clients of the dialog don't have to care if it is updated or not, the just show it. It is a better design IMO.

Do you have a better solution for this? In my previous experience with GUI toolkits, OnShow and OnActivate were quite important and events. In U++, this is the first time I need an OnShow event.


I would just add some sort of "ShowMe" method which updates from the cache. If you are afraid of calling "normal" Show accidentally, you can always make it private.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Wrong LeftUp Message send
Next Topic: Maximize Promblem with Ubuntu6.10 on amd64
Goto Forum:
  


Current Time: Sat Aug 16 17:27:20 CEST 2025

Total time taken to generate the page: 0.05268 seconds