Home » U++ TheIDE » U++ TheIDE: Layout (Forms)  Designer » Child window position  
	
		
		
			| Re: Child window position [message #20567 is a reply to message #20565] | 
			Mon, 23 March 2009 15:52   | 
		 
		
			
				
				
				
					
						  
						mrjt
						 Messages: 705 Registered: March 2007  Location: London
						
					 | 
					Contributor   | 
					 | 
		 
		 
	 | 
 
	
		Are you trying to set the window position before calling CtrlLayout? CtrlLayout calls GetRect, so you must make your changes after it: 
 
	CtrlLayoutOKCancel(*this, "Window title");
	// Set only the size of the window
	Rect r = GetRect();
	r.SetSize(100, 100);
	SetRect(r);
	
	// Set size and position
	SetRect(50, 50, 200, 200);
	NoCenter();  
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
  
 
Goto Forum:
 
 Current Time: Tue Nov 04 17:19:53 CET 2025 
 Total time taken to generate the page: 0.05477 seconds 
 |