Next Prev Up Top Contents Index

4.4 Option panes and drop-down list boxes

Option panes, created with the option-pane class, display the current selection from a single-selection list. When you click on the option pane, the list appears and you can make another selection from it. Once the selection is made, it is displayed in the option pane.

On Windows, an option-pane produces a drop-down list box. On Motif, option-pane produces a combo box.

Here is an example option pane, which shows the choice of one of five numbers. The initial selection is controlled with :selected-item .

(contain
 (make-instance  
  'option-pane
  :items '(1 2 3 4 5)
  :selected-item 3
  :title "One of Five:"))

 

Figure 4.7 An option pane


LispWorks CAPI User Guide - 14 Dec 2001

Next Prev Up Top Contents Index