GrafX2 2.9.3227
The ultimate 256-color painting program
T_Dropdown_button Struct Reference

A window control that behaves like a dropdown button. More...

#include <struct.h>

+ Collaboration diagram for T_Dropdown_button:

Data Fields

short Number
 Unique identifier for all controls. More...
 
word Pos_X
 Coordinate for top of button, relative to the window, before scaling. More...
 
word Pos_Y
 Coordinate for left of button, relative to the window, before scaling. More...
 
word Width
 Width before scaling. More...
 
word Height
 Height before scaling. More...
 
byte Display_choice
 Boolean, true if the engine should print the selected item's label in the dropdown area when the user chooses it. More...
 
byte Display_centered
 Boolean, true to center the labels (otherwise, align left) More...
 
byte Display_arrow
 Boolean, true to display a "down" arrow box in top right. More...
 
byte Bottom_up
 Boolean, true to make the dropdown panel go above its button instead of below it. More...
 
byte Active_button
 Determines which mouse button(s) cause the dropdown panel to open: LEFT_SIDE || RIGHT_SIDE || (LEFT_SIDE|RIGHT_SIDE) More...
 
word Dropdown_width
 Width of the dropdown panel when it's open. Use 0 for "same as the dropdown button". More...
 
T_Dropdown_choiceFirst_item
 Linked list with the choices available for this dropdown. More...
 
struct T_Dropdown_buttonNext
 Pointer to the next dropdown button of current window. More...
 

Detailed Description

A window control that behaves like a dropdown button.

Field Documentation

◆ Number

short T_Dropdown_button::Number

Unique identifier for all controls.

Referenced by Window_dropdown_on_click(), Window_get_clicked_button(), and Window_set_dropdown_button().

◆ Pos_X

◆ Pos_Y

◆ Width

word T_Dropdown_button::Width

◆ Height

◆ Display_choice

byte T_Dropdown_button::Display_choice

Boolean, true if the engine should print the selected item's label in the dropdown area when the user chooses it.

Referenced by Window_dropdown_on_click(), and Window_set_dropdown_button().

◆ Display_centered

byte T_Dropdown_button::Display_centered

Boolean, true to center the labels (otherwise, align left)

Referenced by Window_set_dropdown_button().

◆ Display_arrow

byte T_Dropdown_button::Display_arrow

Boolean, true to display a "down" arrow box in top right.

Referenced by Window_dropdown_on_click(), and Window_set_dropdown_button().

◆ Bottom_up

byte T_Dropdown_button::Bottom_up

Boolean, true to make the dropdown panel go above its button instead of below it.

Referenced by Button_Circle_switch_mode(), Button_Draw_switch_mode(), Button_Magnify_menu(), Button_Palette(), Button_Toggle_toolbar(), Dropdown_activate(), and Window_set_dropdown_button().

◆ Active_button

byte T_Dropdown_button::Active_button

Determines which mouse button(s) cause the dropdown panel to open: LEFT_SIDE || RIGHT_SIDE || (LEFT_SIDE|RIGHT_SIDE)

Referenced by Display_bookmark(), Window_get_clicked_button(), and Window_set_dropdown_button().

◆ Dropdown_width

word T_Dropdown_button::Dropdown_width

Width of the dropdown panel when it's open. Use 0 for "same as the dropdown button".

Referenced by Button_Circle_switch_mode(), Button_Draw_switch_mode(), Button_Magnify_menu(), Button_Palette(), Button_Toggle_toolbar(), Dropdown_activate(), and Window_set_dropdown_button().

◆ First_item

◆ Next

struct T_Dropdown_button* T_Dropdown_button::Next

Pointer to the next dropdown button of current window.

Referenced by Window_get_clicked_button(), and Window_set_dropdown_button().


The documentation for this struct was generated from the following file: