I have a problem with TreeView. First of all, this is not new. it was the same in fwh 1204.
This problem occurs treeview in folderx. The sample is below. this sample expands all items. if you change vertical scrollbar, treeview items mixed.
Any comments?
Thanks.
- Code: Select all Expand view
- // Using a TreeView with checkboxes and checking their status
#include "FiveWin.ch"
function Main()
local oDlg, oTree
DEFINE DIALOG oDlg SIZE 400, 300
@ 2, 3 FOLDERex oFld OF oDlg PIXEL ;
PROMPTS "&Folder1", "F&older2","Fo&lder3";
ROUND 10
@ 0,0 TREEVIEW oTree OF oFld:aDialogs[1] SIZE 195, 130 PIXEL
ACTIVATE DIALOG oDlg CENTERED ON INIT BuildTree( oTree )
return nil
function BuildTree( oTree )
local oItem
oItem := oTree:Add( "Main.Item1" )
oItem:Add( "Detail.Item1..." )
oItem:Add( "Detail.Item2..." )
oItem:Add( "Detail.Item3..." )
oItem:Add( "Detail.Item4..." )
oItem:Add( "Detail.Item5..." )
oItem:Add( "Detail.Item6..." )
oItem:= oTree:Add( "Main.Item2" )
oItem:Add( "Detail.Item1..." )
oItem:Add( "Detail.Item2..." )
oItem:Add( "Detail.Item3..." )
oItem:Add( "Detail.Item4..." )
oItem:Add( "Detail.Item5..." )
oItem:Add( "Detail.Item6..." )
oItem := oTree:Add( "Main.Item3" )
oItem1 := oItem:Add( "Detail.Item1..." )
oItem1:Add( "Detailmmm.Item1..." )
oItem1:Add( "Detailmmm.Item2..." )
oItem1 := oItem:Add( "Detail.Item2..." )
oItem1:Add( "Detailmmm.Item3..." )
oItem1:Add( "Detailmmm.Item4..." )
oItem1 := oItem:Add( "Detail.Item3..." )
oItem1:Add( "Detailmmm.Item5..." )
oItem1:Add( "Detailmmm.Item6..." )
oItem1 := oItem:Add( "Detail.Item4..." )
oItem1:Add( "Detailmmm.Item7..." )
oItem1:Add( "Detailmmm.Item8..." )
oItem1 := oItem:Add( "Detail.Item5..." )
oItem1:Add( "Detailmmm.Item9..." )
oItem1:Add( "Detailmmm.Item10..." )
oItem1 := oItem:Add( "Detail.Item6..." )
oItem1:Add( "Detailmmm.Item11..." )
oItem1:Add( "Detailmmm.Item12..." )
oItem1 := oItem:Add( "Detail.Item7..." )
oItem1:Add( "Detailmmm.Item13..." )
oItem1:Add( "Detailmmm.Item14..." )
oItem1 := oItem:Add( "Detail.Item8..." )
oItem1:Add( "Detailmmm.Item15..." )
oItem1:Add( "Detailmmm.Item16..." )
oItem1 := oItem:Add( "Detail.Item9..." )
oItem1:Add( "Detailmmm.Item17..." )
oItem1:Add( "Detailmmm.Item18..." )
oItem1 := oItem:Add( "Detail.Item10..." )
oItem1:Add( "Detailmmm.Item19..." )
oItem1:Add( "Detailmmm.Item20..." )
oItem1 := oItem:Add( "Detail.Item11..." )
oItem1:Add( "Detailmmm.Item21..." )
oItem1:Add( "Detailmmm.Item1..." )
oItem1 := oItem:Add( "Detail.Item12..." )
oItem1:Add( "Detailmmm.Item22..." )
oItem1:Add( "Detailmmm.Item23..." )
oItem1 := oItem:Add( "Detail.Item13..." )
oItem1:Add( "Detailmmm.Item24..." )
oItem1:Add( "Detailmmm.Item25..." )
oTree:ExpandAll()
return nil