>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




Bug Reports

Author Thread: Initialization of Checkboxes in a Tree
Rex.Swain
Initialization of Checkboxes in a Tree
Posted: Monday, February 07, 2005 11:42 AM (EST)

I hav enot used Tree objects much, so maybe I'm missing something obvious here.  But how can I initialize the checkboxes when creating a Tree?  Why don't items B and D have their checkboxes checked in the example below?

 

trbug;k;t
© Tree Bug ?
© Why don't items B and D appear as checked?
© 07 Feb 2005  Rex Swain, Independent Consultant,
www.rexswain.com
Œwself„'fm' Œwi 'Create' 'Form'
   Œwi 'where' 10 20
   Œwi 'size' 20 30
Œwself„'.tr' Œwi 'Create' 'Tree'
   Œwi 'where' 0.5 1 19 28
   Œwi 'style' 32  © 32=checkboxes
   t„0 4½0
   t„t®1 1 'Item A' (1 1 0 2)  © 2=unchecked
   t„t®2 1 'Item B' (1 1 0 3)  © 3=checked
   t„t®3 1 'Item C' (1 1 0 2)
   t„t®4 1 'Item D' (1 1 0 3)
   Œwi 'list' t
k„':' Œwi 'Wait'

 

 


Comments:

Author Thread:
Support
Initialization of Checkboxes in a Tree
Posted: Monday, February 07, 2005 1:38 PM (EST)

The reason the check boxes aren't checked is because the checkstates for the check boxes are reset when the Tree control is first opened.  You can workaround this problem with setting the list property or the SetInfo method with the 'checkstate' argument in the onWait event handler.

APL2000 Support

     



APL2000 Official Web Site

May the smile on your face Come straight from your heart
--- Anonymous

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |