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 #17174 is a reply to message #17163] Fri, 01 August 2008 10:49 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1427
Registered: September 2007
Ultimate Contributor
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.
 
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: Mon Jun 16 10:33:40 CEST 2025

Total time taken to generate the page: 0.04421 seconds