VrOne/Python Programming

ON-LINE REFERENCE DOCUMENTATION

CARDINAL SYSTEMS, LLC

386-439-2525   

http://www.cardinalsystems.net/    mike@cardinalsystems.net
 

VrMenuKeys Class Reference

Python VrMenuKeys Class More...

Members


Detailed Description

This class is used to display a standard menu keys dialog. The dialog can be customized, and a callback function can be used to respond to the user pressing buttons on the menu keys dialog. This class can be used along with the PyVrApp class to create full event-driven applications in VrOne.


Member Function Documentation

SetTitle (Title)

Sets title of dialog box.

Title

Title string.

SetMkLabel (KeyNum, Label)

Set a label on a single menu key button.

KeyNum

Button number to label (1-12)

Label

Label string.

EnableMkLabel (KeyNum)

Enable a single menu key button.

KeyNum

Button number (1-12)

DisableMkLabel (KeyNum)

Disable a single menu key button.

KeyNum

Button number (1-12)

SetMkLabels (Title, Key1, Key2, Key3, Key4, Key5, Key6, Key7, Key8, Key9, Key10, Key0, Key11)

Set all menu key button labels.

Title

Set dialog title.

Key1

Label for key 1

Key2

Label for key 2

Key3

Label for key 3

Key4

Label for key 4

Key5

Label for key 5

Key6

Label for key 6

Key7

Label for key 7

Key8

Label for key 8

Key9

Label for key 9

Key10

Label for key 10

Key0

Label for key 11

Key11

Label for key 12

PushMk ()

Saves menu key labels onto a stack. May be called multiple times. Use PopMk to restore menu keys that have been stored using PushMk.

PopMk ()

Restores last menu keys labels that were stored using PushMk.

SetIaLabel1 (LineNum, Label)

Set a single line label at top of Menu Keys dialog.

LineNum

Line number of label.

Label

Label string

SetIaLabel2 (LineNum, Keyword, Arg)

Set a single line label at top of Menu Keys dialog in a keyword-argument format using a short argument.

LineNum

Line number of label.

Keyword

Keyword string.

Arg

Argument value.

SetIaLabel3 (LineNum, Keyword, Arg)

Set a single line label at top of Menu Keys dialog in a keyword-argument format using an int argument.

LineNum

Line number of label.

Keyword

Keyword string.

Arg

Argument value.

SetIaLabel4 (LineNum, Keyword, Arg, DecAccur)

LineNum

Line number of label.

Keyword

Keyword string.

Arg

Argument value.

DecAccur

Decimal accuracy of Arg

SetIaLabel5 (LineNum, Keyword, Arg)

LineNum

Line number of label.

Keyword

Keyword string.

Arg

Argument string.

SetIaLabel6 (LineNum, Keyword, Index, Lab0,...)

Sets a line of text in the Information Area using and index and a list of possible strings for that index.

LineNum

Information Area line number. (0-NumLabels-1)

Keyword

Keyword (i.e LAYMOD)

Index

Index to list of strings

Lab0,...

Possible string items for Index

ClearIa ()

Clear information area labels.

Hide ()

Hide menu keys dialog.

Show ()

Show menu keys dialog.

Raise ()

Raise menu keys dialog to top of other dialogs.

ShowLine (Line)

Show information about a VrLne in the information area.

Line

VrLine object

ShowCount (Line)

Show point count information about a VrLne in the information area.

Line

VrLine object

ShowPntNum (PntNum, Line, PntCnt)

Show point number and point count information in the information area.

PntNum

Current point number.

Line

VrLine object

PntCnt

Total point count.

ShowPntFlags (PntNum, Line)

Show point flags information about a VrLne in the information area.

PntNum

Current point number.

Line

VrLine object.

ShowSym (Sym)

Show information about a VrSymbol in the information area.

Sym

VrSym object

ShowText (Text)

Show information about a VrText in the information area.

Text

VrText object

ShowTextJust (Text)

Show justication information about a VrText in the information area.

Text

VrText object

ShowWs (Ws)

Show workspace number in the information area.

Ws

Workspace number

ShowEntNum (EntNum, EntType)

Show entity number the information area.

EntNum

Entity number

EntType

Entity type 1=Line 2=Splined line 3=Symbol 4=Text (optional)

SetKeyCB (Function)

Set Python callback function to be called when a menu key is pressed.

Function

Python function to handle menu key events. This is a function that you must create in your Python script. The function should have the following format: 'def MyAppKeyCB (key):'