Page 1 of 1
RemoveChild
Posted: Sat Apr 27, 2024 11: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 12:39 pm
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