Lithl
June 14th, 2009, 08:03
Is there any way to remove a text widget which was added with addTextWidget()?
Foen
June 14th, 2009, 08:46
If you save a reference to the widget when you create it, you can delete it later with the destroy() method:
local mywidget = nil;
function addWidget()
mywidget = addTextWidget("some text");
end
function dropWidget()
if mywidget then
mywidget.destroy();
mywidget = nil;
end
end
The above code demonstrates the calls, but doesn't really do anything useful!
Foen
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.