RemoveChild
Moderators: Víctor Paredes, Belgarath, slowtiger
- MehdiZangenehBar
- Posts: 114
- Joined: Wed Feb 07, 2024 10:17 am
- Contact:
RemoveChild
LM_LayoutView has AddChild method, but dosn't have RemoveChild method?! how we can remove a widget?
- hayasidist
- Posts: 3875
- Joined: Wed Feb 16, 2011 11:12 am
- 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