|
|
Visits:
2716
(11 on line)
|
Last Update: Dec 5, 2003
|
|
|
|
| | |
| Description Inheritance Example Properties Methods |
| |
| Description |
The TAPLEdit5 Object allows you to use the APL+Win Editor under program control in a Modal manner to edit APL variables or functions. By default, using: wcall'W_Edit' 'name' loads function or variable <name> in the APL+Win Editor, but in a Modeless manner, i.e. this instruction returns immediately. On the other hand TAPLEdit5 returns only when you close the Editor window. Moreover, TAPLEdit5 returns 1 if the object has changed during the Edit session and 0 otherwise. |
| Description Inheritance Example Properties Methods |
| |
| Inheritance |
Inherits from: TObject5 |
| Description Inheritance Example Properties Methods |
| |
| Example |
| |
 |
| |
The above form is generated by the following APL+Win Objects code: |
pw255 ͺ 0 0½'edit'wi'*Create' 'TAPLEdit5'
'edit'wi'Edit' 'Classes5'0 ͺ 'Done!'
'edit'wi'Edit' 'Classes5[12]'100 300 400 640 ͺ 'Done!'
'edit'wi'Edit' 'Classes5'1 ͺ 'Done!'
|
| |
| Description Inheritance Example Properties Methods |
| |
| Properties |
| |
|
| class |
Description: Return current object class
Syntax: class'obj' wi 'class' |
| handles |
Description: Read-only property returning all session manager Edit window handles
Syntax: 'obj' wi 'handles'
These handles can be used as arguments to wcall to get (or
change) the text, selected text, cursor position, etc., in the various
editor windows. Examples are the SmgrWindowName and SmgrWindowText fns.
Example:
'edit' wi 'handles' |
| help |
Example:
pw255 ͺ 0 0½'edit' wi '*Create' 'TAPLEdit5'
'edit' wi 'Edit' 'Classes5'0 ͺ 'Done!'
'edit' wi 'Edit' 'Classes5[12]'100 300 400 640 ͺ 'Done!'
'edit' wi 'Edit' 'Classes5'1 ͺ 'Done!' |
|
| Description Inheritance Example Properties Methods |
| |
| Methods |
| |
|
| Edit |
Description: Specifies which object (function or variable) to Edit
and optionnally the APL+Win Editor window size
Syntax: changed'obj' wi 'object'name pos_size
name: APL function or variable name with optional line spec in [n] format
Example: 'ff' wi 'object' 'Classes5[12]'
pos_size: 0
normal unmaximized window
or: 1
maximized window
or: 2
cascade
or: 3
tile horizontal
or: 4
tile vertical
or: a b c d
where property in pixels
changed: 1=object has been changed during edit session, 0=it has not been changed ―1=object cannot be edited
Note: <object> is the old property name now superseded by method <Edit>
Note: <*Wait> is now called by this method
Example:
'edit' wi 'object' 'Classes5[12]'1 |
| New |
Description: Create a new instance of TAPLEdit5
Example:
'obj' wi '*Create' 'TAPLEdit5'
|
|
| Description Inheritance Example Properties Methods |
| |
|