Home » Community » Newbie corner » [solved] Widget events - any other than WhenAction ? (Trying to find equivalents of OnEnter, OnExit - in an Edit widget)  
	
		
		
			| Re: Widget events - any other than WhenAction ? [message #58793 is a reply to message #52750] | 
			Fri, 02 September 2022 10:21    | 
		 
		
			
				
				
				  | 
					
						  
						peterh
						 Messages: 108 Registered: November 2018  Location: Germany
						
					 | 
					Experienced Member  | 
					 | 
		 
		 
	 | 
 
	
		Oblivion wrote on Sat, 16 November 2019 23:16 
3) MyEditDouble is "not" in the layout editor, because it doesn't have a .usc (visual representation) file at the moment. However, if you right click on the layout editor area, you'll see a menu item called "User Class" in the context menu. IF you select that item it will add a blank box, and let you set the class type (MyEditDouble) and its instance name on the left pane.   
  
 
I found this, more by accident and trial and error and studying the sources: 
 
An *.usc file can inherit from CtrlLib.usc. 
If you add an *.usc file, eg. Ctrllib.usc to your project eg. 
ctrl MyEditDouble {
	>EditDouble;
}
 
 
Then the derived control can be seen and edited in the layout editor, it inherits the usc file from its parent. 
I find this very useful, it should be in the tutorial or/and documentation. 
This makes it much easier for newbies. 
 
		
		
		[Updated on: Fri, 02 September 2022 10:37] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 |  
  
 
Goto Forum:
 
 Current Time: Tue Nov 04 08:29:22 CET 2025 
 Total time taken to generate the page: 0.07983 seconds 
 |