WireLess Studio Widgets Developer's Guide |
Call this method to clone a widget created with CreateWidget.
VARIANT_BOOL CloneObjectByName(LPCTSTR sObjectName, LPCTSTR sObjectCloneName);
VARIANT_BOOL CloneObjectById(SHORT usObjectId, SHORT usObjectCloneId);
On success, CloneObject returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
Only visible widgets can be cloned. Invisible widgets, such as the Function Keys controller, can't be cloned.
using WirelessStudioOleWidgets; WStFactory oFactory = new WStFactory(); oFactory.CreateWidgetBy((short)WSTFactoryConstants.WS_LINE, 33, "MyLine", 15, 15, 30, 30, ""); oFactory.CloneObjectById(33,44);
CreateWidget | WStForm::AddObject | CreateForm
WStWiget class reference | WStForm class reference | WStFactory class reference | WStError class reference
WireLess Studio by SofToGo S.A. | Visit our site www.softogo.com | Contact us help@softogo.com |