DCTREEROOT

This forum is for eXpress++ general support.
Message
Author
Wolfgang Ciriack
Posts: 484
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: DCTREEROOT

#11 Post by Wolfgang Ciriack »

Hello Roger,
here is a ready to compile example.
Attachments
test_treeview.zip
(116.68 KiB) Downloaded 690 times
_______________________
Best Regards
Wolfgang

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCTREEROOT

#12 Post by rdonnay »

I'm confused about what is your problem.

The tree expands fine and the first item in the tree is selected.
The eXpress train is coming - and it has more cars.

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: DCTREEROOT

#13 Post by Auge_Ohr »

rdonnay wrote:The tree expands fine and the first item in the tree is selected.
YES ... but not visible !

@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)  }
as i can say it is not DC_ExpandTree() as i use it in my Sample.
it seems to work with XbpDialog() and "pure" Xbase++
TV1.ZIP
(1.48 KiB) Downloaded 683 times
greetings by OHR
Jimmy

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCTREEROOT

#14 Post by rdonnay »

YES ... but not visible !
What does that mean? Not visible!

It is visible to me.
The eXpress train is coming - and it has more cars.

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: DCTREEROOT

#15 Post by Auge_Ohr »

@Wolfgang : What Version are we talking about ?

this is what i see with origin Code from Wolfgang with v1.9.355
Origin by Wolfgang
Origin by Wolfgang
Tree_No.jpg (125.75 KiB) Viewed 7853 times
this is my modification
modify with xbeP_Keyboard
modify with xbeP_Keyboard
Tree_Top_Yes.jpg (122.67 KiB) Viewed 7853 times
note Position of Scrollbar ... i have not touch anything after start.
greetings by OHR
Jimmy

Wolfgang Ciriack
Posts: 484
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: DCTREEROOT

#16 Post by Wolfgang Ciriack »

The addition of Jimmy are the solution. Now the first item is visible. Thanks.

Code: Select all

   PostAppEvent(xbeP_Keyboard,xbeK_DOWN,,oTree), ;
   PostAppEvent(xbeP_Keyboard,xbeK_UP  ,,oTree), ;
The following is not necessary:

Code: Select all

oTree:setData(oTree:rootItem:getChildItems()[1])
_______________________
Best Regards
Wolfgang

Post Reply