GMGridButton:
Filter:
GraphicalModule/Classes (extension) | GUI > Graphical Module

GMGridButton
ExtensionExtension

A simple multi states button for creating graphical interfaces

Description

GMGridButton is an easy to use customisable multi states button. It will automatically arrange its buttons according to a grid.

It does not discriminate button identifiers.

A note about this documentation

This class is an extension of GMMultiButton. The only difference between those two classes is their drawFunc. See GMMultiButton documentation for methods documentation.

Class Methods

.new

Creates a new instance of GMGridButton.

Its graphical properties are defined by its associated GMStyle.

Returns:

a GMGridButton instance.

Instance Methods

GMMultiButton methods

See the GMMultiButton class documentation for those methods.

.action

.mouseDownAction

.mouseMoveAction

.states

.state

.allowRetrigger

.allowMouseMove

.free

.orientation

.desindex

.direction

.drawSelected

.fontRatio

.unselectedRatio

.setColorAll

.setFontColorAll

.displayAltValue

.svgRatio

Internal Methods

.draw

The function associated to the View's drawFunc. Shouldn't be modified

.prResizeSVGs

.prGetGridOrga

Examples

Used as a rudimentary keyboard :