Popup Plugin

From LaneWiki

Jump to: navigation, search

The popup plugin allows a single “trigger” product to popup an additional menu page with other items. For example, a “drinks” button could open a menu of specific drink types. This plugin saves space on the tab menu pages by allowing an additional page of items to be hidden behind a single button.

Contents

Requirements

User Interface Tk, tabpanel/notebook

Hardware Touch Screen

Product Settings

To enable this plugin for a product, add popup# to Product.extended, where # is the integer id of the popup menu definition string.

String Settings

The Menu Definition

The menu definition, specified in with the String.id net/L-ane/Register/Plugins/Popup/#, is in the same format as the tab menu, but with a single Page section. The name of the Page will become the title of the window.

Font

net/L-ane/Register/Plugins/Popup/#/Font specifies the font. For example:

{Helvetica} 12

The default font is the font used on the notebook/tabpanel.

Number of Columns

net/L-ane/Register/Plugins/Popup/#/Width specifies the number of columns of buttons. The default is six (6) columns.

Auto-close/Only One

net/L-ane/Register/Plugins/Popup/#/Only One will cause the popup to automatically close when the first item is selected.

SysString Settings

This plugin requires its code to be added to SysString:register-initMachine-default in the extended product code section.

Code/Download

The code for this plugin is available in the task manager as bug 112 (directly).

Personal tools