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 » Child Form minimized if Main Form is Zoomable
Child Form minimized if Main Form is Zoomable [message #41049] Thu, 24 October 2013 18:39 Go to next message
iST1 is currently offline  iST1
Messages: 107
Registered: August 2013
Experienced Member
class ChildFrm : public WithChild<TopWindow> {
public:
 	ChildFrm() {}
};

class MainFrm : public TopWindow {
public:
	typedef MainFrm CLASSNAME;
	
	Button btn;
	
	MainFrm() {		
		Zoomable().//with Zoomable if you minimize the window, when ChildFrm become mimimize instead maximize
		Maximize();
		
		Add(btn.SetLabel("Open Child").SizePos());
		btn <<= THISBACK(OnBtn);
	}
	
	void OnBtn() {		
		Single<ChildFrm>().Open();
		Single<ChildFrm>().Maximize();
	}
};

GUI_APP_MAIN
{	
	MainFrm().Run();
}

[Updated on: Thu, 24 October 2013 18:39]

Report message to a moderator

Re: Child Form minimized if Main Form is Zoomable [message #41106 is a reply to message #41049] Thu, 31 October 2013 16:16 Go to previous message
iST1 is currently offline  iST1
Messages: 107
Registered: August 2013
Experienced Member
It is bug or feature?
Previous Topic: Timeout on PromptYesNo?
Next Topic: Fullscreen in linux
Goto Forum:
  


Current Time: Tue Apr 16 18:23:30 CEST 2024

Total time taken to generate the page: 0.01094 seconds