WireLess Studio Widgets Developer's Guide |
Changes the displayed page on a WS_HTML_CTRL widget.
VARIANT_BOOL SetUrlAddressByName(LPCTSTR sObjectName, LPCTSTR sAddress);
VARIANT_BOOL SetUrlAddressById(SHORT usObjectId, LPCTSTR sAddress);
On success, SetUrlAddress returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
using WirelessStudioOleWidgets; WStWidget oWidget = new WStWidget(); WStFactory oFactory = new WStFactory(); short iHtmlCtrl = 22; oFactory .CreateWidgetById((short)WSTFactoryConstants.WS_HTML_CTRL, iHtmlCtrl, "", 0,0, 50, 50, ""); oWidget.SetUrlAddress(iHtmlCtrl , "http://www.softogo.com");
Public wsWidget As New WStWidget ... Case "urlMenu" If wsWidget.GetSelectedItemByName("urlMenu") <> -1 Then wsWidget.SetUrlAddressByName "myHtmlCtrl", _ wsWidget.GetOptionByName("urlMenu", wsWidget.GetSelectedItemByName("urlMenu")) End If ...
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 |