NextPrevUpTopContentsIndex

set-pane-focus

Function
Summary

Sets the input focus to a pane.

Package

capi

Signature

set-pane-focus pane

Arguments

pane

An instance of a subclass of simple-pane or choice.

Description

The function set-pane-focus sets the input focus to pane or one of its children.

Example

When the user specifies a different type in this dialog, the focus moves to the text input pane:

(let* ((tp (make-instance 
            'capi:text-input-pane
            :text ""
            :change-callback 
            :redisplay-interface
            :visible-min-width 
            '(:character 30)))
       (rp (make-instance 
            'capi:radio-button-panel
            :items '(number string)
            :selection 1
            :print-function 
            'string-capitalize
            :layout-class 
            'capi:column-layout
            :callback-type :none
            :selection-callback 
            (lambda ()
              (capi:set-pane-focus tp)))))
  (capi:popup-confirmer 
   (make-instance 'capi:row-layout
                  :description 
                  (list tp rp))
   "Specify type and new value for attribute"
   :ok-check 
   (lambda (layout)
     (declare (ignore layout))
     (let ((txt (capi:text-input-pane-text tp)))
       (plusp (length txt))))
   :ok-function 
   (lambda (layout)
     (declare (ignore layout))
     (list (capi:text-input-pane-text tp)
           (capi:choice-selected-item rp)))))
See also

activate-pane
pane-got-focus


LispWorks CAPI Reference Manual - 25 Jul 2006

NextPrevUpTopContentsIndex