as subject.
Thanks,
#include "FiveWin.ch"
function Main()
聽 聽local oDlg, oTree
聽 聽DEFINE DIALOG oDlg
聽 聽@ 0, 0 TREEVIEW oTree OF oDlg SIZE 200, 200 聽
聽聽 聽
聽 聽 oTree:bLDblClick := { |nRow, nCol, nKeyFlags, oItem| MsgInfo(oItem:GetSelText())}
聽 聽
聽 聽 oTree:bKeyDown = { | nKey, nFlags | KeyDown(nKey, nFlags, oTree)}
聽 聽ACTIVATE DIALOG oDlg CENTERED ON INIT DefineTree( oTree )
return nil
function DefineTree(oTree)
聽 聽local oMenu 聽 聽:= array(3), ;
聽 聽 聽 聽 聽oSubMenu := array(10)
聽 聽oMenu[1]:= oTree:Add( "Principal" )
聽 聽 聽 oSubMenu[1]:= oMenu[1]:Add( "Imprimir..." )
聽 聽oMenu[2]:= oTree:Add( "Proyectos" )
聽 聽 聽 oSubMenu[6]:= oMenu[2]:Add( "Definir Proyectos" )
聽 聽 聽 oSubmenu[7]:= oMenu[2]:Add( "Actualizaci贸n datos" )
聽 聽oTree:expand()
return nil
function KeyDown(nKey, nFlags, oItem)
聽 聽 ? nKey, "I am here"
聽 聽
聽 聽 IF nKey=VK_RETURN
聽 聽
聽 聽 聽 聽 MsgInfo(oItem:GetSelText())
聽 聽
聽 聽 ENDIF
RETURNHakan ONEMLI
Harbour & MSVC 2022 & FWH 23.06


