Two problems with tree-view
Hi,
I am having two problems with tree-views that appear to be bugs. I
am using LispWorks 4.4.6 on OS X 10.4.7.
* Horizontal-scrolling does not seem to work. If an item is longer
than the pane width, it is cropped at word boundaries rather than
enabling the horizontal scroll bar. This is problematic since
cropping at word boundaries makes it appear that the entire text is
displayed.
* Popup menus do not seem to work at all. Right clicking on an item
causes /something/ to happen, as the next click on the pane is
ignored. But no context menu is displayed. If the same code is used
on a pinboard-layout instead of a tree-view, then it works fine.
Both problems are illustrated in the sample code below. Try resizing
the pane and right clicking on it.
-Chris
;; Sample code illustrating problems with tree-views on OS X 10.4.7
(defun context-menu (pane data x y)
(make-instance 'capi:menu :items
(list "Item-1" "Item-2" "Item-3")))
(capi:contain
(make-instance 'capi:tree-view
:pane-menu 'context-menu
:roots '("This is a long title and
should require a horizontal scroll bar"
"1" "2" "3" "4" "5" "6")
:horizontal-scroll t
:vertical-scroll t
))
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________