Lisp HUG Maillist Archive

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 
______________________________________________________________________


AW: Two problems with tree-view

 

> -----Ursprüngliche Nachricht-----
> Von: owner-lisp-hug@lispworks.com 
> [mailto:owner-lisp-hug@lispworks.com] Im Auftrag von Chris R. Sims
> Gesendet: Montag, 20. November 2006 16:14
> An: lisp-hug@xanalys.com
> Betreff: 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 
> ______________________________________________________________________
> 

Sorry, this doesn't help you: On Windows it works like you expect.

Andreas



Re: Two problems with tree-view

For what it's worth, the popup menu seems to work on LispWorks 5.0 (OS
X 10.4.8), but I am getting the same strange behavior with the tree
view.

On 11/20/06, Chris R. Sims <simsc@rpi.edu> wrote:
>
> 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
> ______________________________________________________________________
>
>


--
Bill Atkins


-- 
Bill Atkins


Updated at: 2020-12-10 08:47 UTC