RemoveChild
Moderators: Víctor Paredes, Belgarath, slowtiger
- MehdiZangenehBar
- Posts: 114
- Joined: Wed Feb 07, 2024 7:17 pm
- Contact:
RemoveChild
LM_LayoutView has AddChild method, but dosn't have RemoveChild method?! how we can remove a widget?
- hayasidist
- Posts: 3840
- Joined: Wed Feb 16, 2011 8:12 pm
- Location: Kent, England
Re: RemoveChild
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
See: https://mohoscripting.com/classes/LM_Button for the button and https://mohoscripting.com/methods/304 for the Enable method