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 #48325 is a reply to message #48318] Thu, 22 June 2017 18:38 Go to previous message
Zed1 is currently offline  Zed1
Messages: 11
Registered: June 2017
Promising Member
Dohh - Sorry Embarassed

Thank you cbpporter

In my defence I had been reading and playing with U++ all day so was getting tired.

Anyway this what I did to get it working just in case anyone else has issues with non-modal calls.

1. Moved "Address Addr" to the public section of the Hello.h class declaration.
2. Changed the "CtrlLayoutCancel(*this, "Addresses");" to "CtrlLayout(*this, "Addresses");" in the Address constructor in Address.cpp.
3. Added "cancel <<= THISBACK(Cancel);" to Address class constructor in Address.cpp.
4. Added "void Cancel() { Close(); }" to the private section of the of the Address class declaration in Address.h.
5. Altered Hello::AddressList() function to simply "Addr.IsOpen() ? Addr.Close() : Addr.Open(this);" in main.cpp.

I have attached the code to help others get started using Ultimate++

Very Happy
  • Attachment: Hello.zip
    (Size: 3.51KB, Downloaded 177 times)

[Updated on: Thu, 22 June 2017 18:46]

Report message to a moderator

 
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 20:13:01 CEST 2024

Total time taken to generate the page: 0.02813 seconds