Lisp HUG Maillist Archive

Is this supposed to work in LWM 4.3?

The selection-callback seems to be ignored.  The example is from the 
manual


(defun mclp-header-callback (interface item)
   (declare (ignorable interface))
   (capi:display-message "Clicked on ~a" item))

(capi:contain
  (make-instance
   'capi:multi-column-list-panel
   :visible-min-width 300
   :visible-min-height :text-height
   :columns '((:adjust :right
               :width (character 15))
              (:adjust :left
               :visible-min-width (character 30)))
   :header-args '(:items ( "Fruits" "Vegetables")
                  :selection-callback
                  mclp-header-callback
                  :alignments (:left :right))
   :items '(("Apple" "Artichoke")
            ("Pomegranate" "Pumkpin"))))

--
Marco Antoniotti					http://bioinformatics.nyu.edu/~marcoxa
NYU Courant Bioinformatics Group		tel. +1 - 212 - 998 3488
715 Broadway 10th FL				fax. +1 - 212 - 998 3484
New York, NY, 10003, U.S.A.


Re: Is this supposed to work in LWM 4.3?


On Jan 2, 2006, at 4:56 PM, Marco Antoniotti wrote:

> The selection-callback seems to be ignored.  The example is from  
> the manual

Yes, this was a bug in 4.3 which should be fixed in later versions.



John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL






	Subject: 	Re: (Lisp Support Call #30329)  multi-column-list-panel  
header :selection-callback
	Date: 	July 16, 2004 2:22:33 PM EDT
	Cc: 	  lisp-support@xanalys.com
	Reply-To: 	  lisp-support@xanalys.com


>>>>> On Mon, 5 Jul 2004 20:40:02 -0400, John DeSoi said:
>>>>>

   John> DESCRIPTION: The :selection-callback provided in :header- 
args does not
   John> appear to be called on OS X. Tested with the LispWorks capi  
example in
   John> examples/capi/choice/multi-column-list-panels.lisp. No  
sorting occurs
   John> when clicking on a header.

Thanks for the report.  I've implemented the callback now, though  
currently it
doesn't indicate which column is sorted.


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