FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Duda TVINSERTITEM
Posts: 458
Joined: Tue Mar 14, 2006 07:26 PM
Duda TVINSERTITEM
Posted: Sun Sep 21, 2014 08:46 AM
Hola,

En la clase TTreeView hay un método para añadir ramas (Items) al árbol.

METHOD Add( cPrompt, nImage, nValue )

No encuentro en ninguna parte que es el 3er parámetro "nValue", incluso he buscado donde se usa y veo que no le manda nada.

¿Qué uso tiene este parámetro?
Un Saludo,

Joaquín Martínez
Posts: 6
Joined: Thu Sep 20, 2007 11:16 AM
Re: Duda TVINSERTITEM
Posted: Sun Jun 04, 2017 04:24 PM

Antonio, please, reply.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Duda TVINSERTITEM
Posted: Mon Jun 05, 2017 05:19 AM
Code (fw): Select all Collapse
METHOD Add( cPrompt, nImage, nValue ) CLASS TTreeView

   local oItem

   oItem := TTVItem():New( TVInsertItem( ::hWnd, cPrompt,, nImage, nValue ), Self )

   oItem:cPrompt := cPrompt
   oItem:nImage  := nImage

   AAdd( ::aItems, oItem )

return oItem


HB_FUNC( TVINSERTITEM ) // ( hWnd, cItemText, hItem, nImage )
...
is.item.iImage = hb_parnl( 4 );
is.item.iSelectedImage = hb_parnl( 4 );

https://msdn.microsoft.com/en-us/library/windows/desktop/bb773456(v=vs.85).aspx

iImage
Index in the tree-view control's image list of the icon image to use when the item is in the nonselected state


iSelectedImage
Type: int
Index in the tree-view control's image list of the icon image to use when the item is in the selected state
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion