: popup_list


Display a drop-down list.     DCL Active Tile


This active tile displays a drop-down list box. Contrary to its name, the popup_list drops down, not up.

The popup_list tile first appears as a single line, and more of the list appears when the user clicks the down-arrow. If necessary, the dropped down list also includes This tile is useful when dialog box space is limited.

 

NOTE By contrast, a list_box tile displays at least two lines of a list by default, along with vertical scrollbars, if necessary. Also, a list_box can permit multiple selections, which a popup_list does not permit.

 

Creating and Modifying a Pop-up List with LISP Functions

To create and modify the list displayed by the popup_list tile, use these LISP functions:

The start_list function takes three arguments. The key argument identifies the name of the popup_list tile. The int1 argument specifies the action to take:
int1 Meaning
1 Change one item in the list.
2 Add an item to the end of the list.
3 Create a new list; the default.
When start_list is in change mode (int1 = 1), each call to add_list changes the same item. When start_list is in add mode (int1 = 2), each call to add_list adds another item to the end of the list.

 

NOTE There are no LISP functions for inserting an item in the middle of the list nor for deleting an item from the list.

 

Valid Attributes

: popup_list {

          action = "(string)";

          alignment = position;

          edit_width = number;

          fixed_height = flag;

          fixed_width = flag;

          height = number;

          is_enabled = flag;

          is_tab_stop = flag;

          key = "string";

          label = "string";

          list = "string";

          mnemonic = "char";

          tabs = "string";

          value = "string";

          width = number;

}

 

Example     

: popup_list {

          action = "(patternlsp)";

          edit_width = 0;

          key = "PL2";

          value = "Closed\nFilled\nOpen";

          list = "2";

}

 

NOTE

 

Related DCL Tiles

button

edit_box

image_button

list_box

radio_button

slider

toggle

 

Tell me about...

Programming Overview of DCL (Dialog Control Language)

About Predefined Attributes

 


Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. © 2001- Menhirs NV - All rights reserved.