How would I go about creating a selection screen like the image below?
MarcoBoschi wrote:Jeff this is a tree selection for anatomical regions
All regions are in a dbf table
If you want I can send you source code
#include "FiveWin.ch"
//----------------------------------------------------------------------------//
Function Main()
Local oWnd
Local oTree
Define Window oWnd
@ 0, 0 Treeview oTree Of oWnd SIZE oWnd : nWidth, oWnd : nHeight CHECKBOXES
Activate Window oWnd Centered On Init BuildTree( oTree )
MsgInfo( oTree : aItems[ 1 ] : GetCheck() )
Return Nil
//----------------------------------------------------------------------------//
Function BuildTree( oTree )
Local oMenu := Array( 2 )
Local oSubMenu := Array( 10 )
oMenu[ 1 ] := oTree : Add( "Principal" )
oSubMenu[ 1 ] := oMenu[ 1 ] : Add( "Imprimir..." )
oSubMenu[ 1 ] : SetCheck( .t. )
oMenu[ 2 ] := oTree : Add( "Proyectos" )
oSubMenu[ 2 ] := oMenu[ 2 ] : Add( "Definir Proyectos" )
oSubmenu[ 3 ] := oMenu[ 2 ] : Add( "Actualización datos" )
oSubmenu[ 4 ] := oMenu[ 2 ] : Add( "Actualización datos" )
oSubmenu[ 5 ] := oMenu[ 2 ] : Add( "Actualización datos" )
oSubmenu[ 6 ] := oMenu[ 2 ] : Add( "Actualización datos" )
oSubmenu[ 7 ] := oMenu[ 2 ] : Add( "Actualización datos" )
oTree : Expand()
return nil
#ifdef __FLAT__
1 24 "WinXP\WindowsXP.Manifest"
#endif
#ifdef __64__
1 24 "WinXP\WindowsXP.Manifest64"
#endif
MarcoBoschi wrote:Jeff this is a tree selection for anatomical regions
All regions are in a dbf table
If you want I can send you source code
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 112 guests