Home » U++ TheIDE » U++ TheIDE: Layout (Forms)  Designer » can't use SetLabel and Tip for Option (only one or the other) 
	| 
		
 |  
	
		
		
			| Re: can't use SetLabel and Tip for Option (only one or the other) [message #9705 is a reply to message #9703] | 
			Fri, 25 May 2007 21:32    | 
		 
		
			
				
				
				
					
						  
						obijohn
						 Messages: 11 Registered: May 2007 
						
					 | 
					Promising Member  | 
					 | 
		 
		 
	 | 
 
	
		I've looked at the .lay file, and for my test case (attached above) this is what it looks like: 
LAYOUT(testLayout, 232, 148)
	ITEM(Option, optCheck, Tip(t_("Remove this tip from the layout to compile")).SetLabel(t_("Check Me")).LeftPosZ(72, 84).TopPosZ(64, 20))
END_LAYOUT
 
 
Now, if I swap the order of Tip and SetLable to this: 
LAYOUT(testLayout, 232, 148)
	ITEM(Option, optCheck, SetLabel(t_("Check Me")).Tip(t_("Remove this tip from the layout to compile")).LeftPosZ(72, 84).TopPosZ(64, 20))
END_LAYOUT
 
 
it compiles without error and works as expected. I have no experience with the upp source, so I'm not even sure where to begin looking to fix this.
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
	| 
		
 |  
	| 
		
 |  
	
		
		
			| Re: can't use SetLabel and Tip for Option (only one or the other) [message #9990 is a reply to message #9985] | 
			Tue, 12 June 2007 22:18   | 
		 
		
			
				
				
				
					
						  
						obijohn
						 Messages: 11 Registered: May 2007 
						
					 | 
					Promising Member  | 
					 | 
		 
		 
	 | 
 
	
		Thanks, that did the trick. It took me a while to locate this in the source, so I'll mention it here in case anyone else needs to find it. It's located in the uppsrc/CtrlLib/CtrlLib.usc file, starting at about line 328. 
 
Since this is an ESC macro, the upp (and ide) source doesn't need to be recompiled after making the change. 
		
		
		
 |  
	| 
		
	 | 
 
 
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 02:56:01 CET 2025 
 Total time taken to generate the page: 0.04444 seconds 
 |