Hello Roger,
here is a ready to compile example.
DCTREEROOT
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: DCTREEROOT
- Attachments
-
- test_treeview.zip
- (116.68 KiB) Downloaded 690 times
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
Re: DCTREEROOT
I'm confused about what is your problem.
The tree expands fine and the first item in the tree is selected.
The tree expands fine and the first item in the tree is selected.
The eXpress train is coming - and it has more cars.
Re: DCTREEROOT
YES ... but not visible !rdonnay wrote:The tree expands fine and the first item in the tree is selected.
@Wolfgang : try this
Code: Select all
EVAL {|o| DC_ExpandTree(oTree),;
oTree:setData(oTree:rootItem:getChildItems()[1]),;
PostAppEvent(xbeP_Keyboard,xbeK_DOWN,,oTree),;
PostAppEvent(xbeP_Keyboard,xbeK_UP ,,oTree) }
it seems to work with XbpDialog() and "pure" Xbase++
greetings by OHR
Jimmy
Jimmy
Re: DCTREEROOT
What does that mean? Not visible!YES ... but not visible !
It is visible to me.
The eXpress train is coming - and it has more cars.
Re: DCTREEROOT
@Wolfgang : What Version are we talking about ?
this is what i see with origin Code from Wolfgang with v1.9.355 this is my modification note Position of Scrollbar ... i have not touch anything after start.
this is what i see with origin Code from Wolfgang with v1.9.355 this is my modification note Position of Scrollbar ... i have not touch anything after start.
greetings by OHR
Jimmy
Jimmy
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: DCTREEROOT
The addition of Jimmy are the solution. Now the first item is visible. Thanks.
The following is not necessary:
Code: Select all
PostAppEvent(xbeP_Keyboard,xbeK_DOWN,,oTree), ;
PostAppEvent(xbeP_Keyboard,xbeK_UP ,,oTree), ;
Code: Select all
oTree:setData(oTree:rootItem:getChildItems()[1])
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang