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 » Modal vs non-modal window
Re: Modal vs non-modal window [message #12008 is a reply to message #12003] Sun, 07 October 2007 19:37 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
NeonN wrote on Sun, 07 October 2007 12:33


I read it once before somewhere on this forum... is there any other reason to don't use 'new' for dialogs?



Well, the fundamental believe of U++ paradigm is to avoid "delete" whenever possible (more than one delete per 1000 lines of code is just too much Smile. Usually, and especially in this case, it simply leads to more elegant and easier to maintain code.

Quote:


If I use 'new', the window doesn't disappear after it's init class-member function is done and the widgets are cleared after closing the window



Do not quite understand this...

Quote:


But I don't know if it's OK to use Ultimate++ this way Smile...


OTOH, if you insist on more complicated code, there is not fundamental problem with "new"/"delete" and U++ Smile

Mirek
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TopWindow Backup/Restore
Next Topic: Minor bug: TopWindow::GetStdSize()
Goto Forum:
  


Current Time: Mon May 06 12:02:38 CEST 2024

Total time taken to generate the page: 0.02327 seconds