FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour expandir tree em xbrowse
Posts: 226
Joined: Sun May 13, 2012 07:52 AM
expandir tree em xbrowse
Posted: Thu Nov 29, 2018 07:52 PM

com nKey nao consigo expandir o Tree? alguém sabe pq?

oBrw:bKeyDown := {|nKey| BrwKeyAtUs(nkey, oBrw) }
..
Static Function BrwKeyAtUs(nKey, oBrw)

If !oBrw:oTreeItem:lOpened .and. oBrw:oTreeItem:nLevel == 1
If nKey == VK_RETURN
oBrw:oTreeItem:Open()
oBrw:Refresh()
Endif
ElseIf oBrw:oTreeItem:lOpened .and. oBrw:oTreeItem:nLevel == 1
If nKey == VK_RETURN
oBrw:oTreeItem:Close()
oBrw:Refresh()
Endif
ElseIf oBrw:oTreeItem:nLevel == 2
If nKey == VK_RETURN
fToggle(oBrw)
Endif
Endif

Return nil

FWH2008 | xHarbour | BCC74 | SQLRDD
Posts: 226
Joined: Sun May 13, 2012 07:52 AM
Re: expandir tree em xbrowse
Posted: Thu Nov 29, 2018 10:41 PM

resolvido
alterei por espaço VK_SPACE e funcionou

FWH2008 | xHarbour | BCC74 | SQLRDD

Continue the discussion