Page 1 of 1
					
				RemoveChild
				Posted: Sat Apr 27, 2024 3:56 am
				by MehdiZangenehBar
				LM_LayoutView has AddChild method, but dosn't have RemoveChild method?! how we can remove a widget?
			 
			
					
				Re: RemoveChild
				Posted: Sat Apr 27, 2024 4:39 am
				by hayasidist
				you can't. But you can enable / disable: e.g. MyButton:Enable(false) to disable.
See: 
https://mohoscripting.com/classes/LM_Button for the button and 
https://mohoscripting.com/methods/304 for the Enable method