MKtlGUI:
Filter:
Modality-toolkit/Classes (extension) | Libraries > Modality | External Control

MKtlGUI
ExtensionExtension

gui class for MKtl objects

Description

MKtlGUI creates guis for MKtls and all their elements, using the style info provided in the MKtl's desc file.

Especially when one does not have the device at hand, one can continue developing for it using the MKtlGUI as a functional substitute.

First code examples:

Class Methods

.maxSize

maximum window size

.minViewSize

.maxViewSize

max and min sizes for single views on gui

.margin

the margin to use between views

.new

create a new MKtlGUI with

Arguments:

parent

a parent view - nil will create a window

bounds

bounds - nil will create bounds based on mktl desc

mktl

the mktl to show - required!

Instance Methods

.mktl

the mktl it is showing

.parent

its parent view

.labelView

.labelButton

.traceButton

.views

.pagesSwitch

various views

.showLabels

set whether to show labels or not

.currentPage

get and set current page to show on gui

.getNumPages

get the number of pages of the MKtl

.moveTo

Arguments:

h
v

move gui window to a specific location for setup layout.