HierarchicalListView.st
changeset 2645 b3d3e7c3ee40
parent 2644 78ca3bd5eef1
child 2659 3af857eb52fb
equal deleted inserted replaced
2644:78ca3bd5eef1 2645:b3d3e7c3ee40
  1403 !
  1403 !
  1404 
  1404 
  1405 widthOfWidestLineBetween:firstLine and:lastLine
  1405 widthOfWidestLineBetween:firstLine and:lastLine
  1406     "returns the width of the longest line in pixels in a range
  1406     "returns the width of the longest line in pixels in a range
  1407     "
  1407     "
  1408     |parent item
  1408     |parent item textX level width widthOfLabel|
  1409      textX        "{ Class: SmallInteger }"
  1409 
  1410      level        "{ Class: SmallInteger }"
       
  1411      width        "{ Class: SmallInteger }"
       
  1412      widthOfLabel "{ Class: SmallInteger }"
       
  1413     |
       
  1414     width := renderer widthOfWidestLineBetween:firstLine and:lastLine.
  1410     width := renderer widthOfWidestLineBetween:firstLine and:lastLine.
  1415     width notNil ifTrue:[^ width].
  1411     width notNil ifTrue:[^ width].
  1416 
  1412 
  1417     width := 20.
  1413     width := 20.
  1418 
  1414 
  1603 ! !
  1599 ! !
  1604 
  1600 
  1605 !HierarchicalListView class methodsFor:'documentation'!
  1601 !HierarchicalListView class methodsFor:'documentation'!
  1606 
  1602 
  1607 version
  1603 version
  1608     ^ '$Header: /cvs/stx/stx/libwidg2/HierarchicalListView.st,v 1.89 2004-02-20 11:30:59 ca Exp $'
  1604     ^ '$Header: /cvs/stx/stx/libwidg2/HierarchicalListView.st,v 1.90 2004-02-20 11:36:40 ca Exp $'
  1609 ! !
  1605 ! !