WireLess Studio Widgets Developer's Guide |
Sets the icon displayed by a row on a WS_LIST_CTRL widget.
VARIANT_BOOL SetRowIconByName(LPCTSTR sObjectName, SHORT usRowIndex, SHORT usIconId);
VARIANT_BOOL SetRowIconById(SHORT usObjectId, SHORT usRowIndex, SHORT usIconId);
On success, SetRowIcon returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
If the icon id specified is zero, no icon it's displayed on the target row, otherwise the 16 x 16 version of the icon will be loaded.
using WirelessStudioOleWidgets; WStWidget oWidget = new WStWidget(); short sListCtrlId= 4; oFactory.CreateWidgetById((short)WSTFactoryConstants.WS_LIST_CTRL, sListCtrlId, "", 0,0, 50, 50, ""); oFactory.LoadExternalIcon(sIconId, WS_EXIT, @"\IconLib.dll"); oWidget.AddColumById(sListCtrlId, 40, "Product Id"); oWidget.AddRowById(sListCtrlId, 0); oWidget.SetRowIconById(sListCtrlId, 0, 4);
Public wsWidget As New WStWidget ... Case "newRowIconComboBox" 'Changes the icon of a previously selected row iIconId = wsForm.GetLastEventIntValue() If wsWidget.GetSelectedItemByName("myListCtrl") <> -1 Then wsWidget.SetRowIconByName "myListCtrl", wsWidget.GetSelectedItemByName("myListCtrl"), _ iIconId End If ...
SetRowText | DeleteRow | AddRow | ClearRows | AddColumn | ClearColumns | GetSelectedItem | ReadRowsFromFile | SetLoadMode
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 |