RemoveChild

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
MehdiZangenehBar
Posts: 50
Joined: Wed Feb 07, 2024 7:17 pm
Contact:

RemoveChild

Post by MehdiZangenehBar »

LM_LayoutView has AddChild method, but dosn't have RemoveChild method?! how we can remove a widget?
User avatar
hayasidist
Posts: 3557
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: RemoveChild

Post 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
Post Reply