|
|
Visits:
2936
(18 on line)
|
Last Update: Dec 21, 2003
|
|
|
|
| | |
| Description Inheritance Example Properties Methods |
| |
| Description |
The TClipBoard5 object lets you copy text data to the Windows clipboard under program control
or paste text data from the Windows clipboard under program control.
Additional methods allow you to copy to the Clipboard and paste from the Clipboard
APL data. |
| 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: |
'cl'Œwi'*Create' 'TClipBoard5'
'cl'Œwi'Copy' 'This text has been pasted from the ClipBoard!'
'ff'Œwi'*Create' 'TForm5'('*size'200 400)('*caption' 'TClipBoard5 Example')('ontop'1)
'ff.ed'Œwi'*Create' 'TEdit5'('wherelc'Ð Ð '>' '>')('attach'1 2 3 4)
'ff'Œwi'*Set' 'Show' 'SessionFocus'
'ff.ed'Œwi'*text'('cl'Œwi'Paste')
|
| |
| Description Inheritance Example Properties Methods |
| |
| Properties |
| |
|
| class |
Description: Return current object class
Syntax: class„'obj' Œwi 'class' |
| help |
Example:
0 0½'cl' Œwi '*Create' 'TClipBoard5'
'cl' Œwi 'Copy' 'This text has been pasted from the ClipBoard!'
0 0½'ff' Œwi '*Create' 'TForm5' ('*size'200 400) ('*caption' 'TClipBoard5 Example') ('ontop'1)
0 0½'ff.ed' Œwi '*Create' 'TEdit5' ('wherelc'Ð Ð '>' '>') ('attach'1 2 3 4)
'ff' Œwi '*Set' 'Show' 'SessionFocus'
'ff.ed' Œwi '*text' ('cl' Œwi 'Paste') |
|
| Description Inheritance Example Properties Methods |
| |
| Methods |
| |
|
| Copy |
Description: Copies APL data to the Windows clipboard (CF_TEXT format). Format the data.
Syntax: 'obj' Œwi 'Copy'data
data: some text data
Example:
'cl' Œwi 'Copy' 'This text is being copied to the ClipBoard!'
*:Œerror(^\Œdm¬Œtcnl)/Œdm} |
| CopyAPL |
Description: Copy APL data to the Windows clipboard
Syntax: 'obj' Œwi 'CopyAPL'APLdata
APLdata: any APL array (enclosed)
Note: use the PasteAPL method to retrieve the APL array from the clipboard
Example:
'cl' Œwi 'CopyAPL' (3 4½(¼5),›'wrapl') |
| Format |
Description: Format APL data into CF_TEXT format for inclusion in the ClipBoard
Format data based on datatype
Syntax: 'obj' Œwi 'Format'data
data: some text
Example:
'cl' Œwi 'Format' (3 4½(¼5),›'eric') |
| New |
Description: Create a new instance of TClipBoard5
Example:
'obj' Œwi '*Create' 'TClipBoard5'
|
| Paste |
Description: Get CF_TEXT data from the Windows clipboard
Syntax: 'obj' Œwi 'Paste'
Example:
'cl' Œwi 'Copy' 'This is some text put into the clipboard'
'cl' Œwi 'Paste'
'This is some text put into the clipboard'
*:Œerror (^\Œdm¬Œtcnl)/Œdm} |
| PasteAPL |
Description: Get CF_TEXT data from the Windows clipboard as an APL array
Syntax: 'obj' Œwi 'PasteAPL'
Example:
'cl' Œwi 'CopyAPL' (aaa„3 4½(¼5),›'eric')
bbb„'cl' Œwi 'PasteAPL'
aaabbb
1 |
| Unformat |
Description: Convert CF_TEXT format data to APL array
Converts text to numeric where possible
Syntax: 'obj' Œwi 'Unformat'data
data: clipboard data
Example:
'cl' Œwi 'Copy' ('cl' Œwi 'Format' (3 4½(¼5),›'eric'))
'cl' Œwi 'Unformat' ('cl' Œwi 'Paste')
or simpler:
'cl' Œwi 'CopyAPL' (3 4½(¼5),›'eric')
'cl' Œwi 'PasteAPL' |
|
| Description Inheritance Example Properties Methods |
| |
|