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 » Community » Newbie corner » Non-modal - Dialog will not stay open (Can not get non-modal dialog to stay open - Just flashes then closes)
Re: Non-modal - Dialog will not stay open [message #48321 is a reply to message #48318] Thu, 22 June 2017 09:57 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
You need to do two things.

1. Make "Address Addr" non local to a method. The Addr variable needs to survive the call of AddressList(). Addr gets destroyed as soon as the method finishes, closing the dialog.
2. Don't call Open or run or other methods that do an event loop, locking up control. Try a simple show.
 
Read Message
Read Message
Read Message
Previous Topic: Save sccatterCtrl to png: resolution
Next Topic: windows console utf-8 output problem
Goto Forum:
  


Current Time: Sun May 05 19:27:04 CEST 2024

Total time taken to generate the page: 0.02094 seconds