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 call class1 member after closing class2
Re: How to call class1 member after closing class2 [message #9962 is a reply to message #9959] Mon, 11 June 2007 16:32 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Yes. The X triggers the WhenClose callback, which normally triggers Ctrl::Close. Calling Ctrl::Close yourself doesn't trigger the callback.

This is how I get around it:
button <<= callback(&WhenClose, &Callback::Execute)

This assigns a callback to a button that calls the WhenClose callback (instead of close). Even if you change WhenClose it will still work correctly.

James
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to handle child windows
Next Topic: Can't get rid of minimize button on Linux, okay on Win32
Goto Forum:
  


Current Time: Sun Apr 27 02:54:41 CEST 2025

Total time taken to generate the page: 0.00551 seconds