a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Other:
 texteditor.gadget
  GA_TEXTEDITOR_AreaMarked
  GA_TEXTEDITOR_ColorMap
  GA_TEXTEDITOR_Contents
  GA_TEXTEDITOR_CursorX
  GA_TEXTEDITOR_CursorY
  GA_TEXTEDITOR_DoubleClickHook
  GA_TEXTEDITOR_ExportHook
  GA_TEXTEDITOR_ExportWrap
  GA_TEXTEDITOR_FixedFont
  GA_TEXTEDITOR_Flow
  GA_TEXTEDITOR_HasChanged
  GA_TEXTEDITOR_ImportHook
  GA_TEXTEDITOR_ImportWrap
  GA_TEXTEDITOR_InVirtualGroup
  GA_TEXTEDITOR_InsertMode
  GA_TEXTEDITOR_Pen
  GA_TEXTEDITOR_Prop_DeltaFactor
  GA_TEXTEDITOR_Prop_Entries
  GA_TEXTEDITOR_Prop_First
  GA_TEXTEDITOR_Prop_Visible
  GA_TEXTEDITOR_Quiet
  GA_TEXTEDITOR_ReadOnly
  GA_TEXTEDITOR_RedoAvailable
  GA_TEXTEDITOR_Separator
  GA_TEXTEDITOR_Slider
  GA_TEXTEDITOR_StyleBold
  GA_TEXTEDITOR_StyleItalic
  GA_TEXTEDITOR_StyleUnderline
  GA_TEXTEDITOR_TypeAndSpell
  GA_TEXTEDITOR_UndoAvailable
  GA_TEXTEDITOR_WrapBorder
  GM_TEXTEDITOR_ARexxCmd
  GM_TEXTEDITOR_ClearText
  GM_TEXTEDITOR_ExportBlock
  GM_TEXTEDITOR_ExportText
  GM_TEXTEDITOR_HandleError
  GM_TEXTEDITOR_InsertText
  GM_TEXTEDITOR_MacroBegin
  GM_TEXTEDITOR_MacroEnd
  GM_TEXTEDITOR_MacroExecute
  GM_TEXTEDITOR_MarkText
  GM_TEXTEDITOR_Search
  OM_TEXTEDITOR_Replace
  texteditor.gadget
Include
GuruMeditation
Docs » Autodocs » texteditor.gadget » GM_TEXTEDITOR_ARexxCmd

NAME

        GM_TEXTEDITOR_ARexxCmd

SYNOPSIS

        DoGadgetMethod(obj, win, req, GM_TEXTEDITOR_ARexxCmd, NULL, STRPTR command);

FUNCTION

        If the user spends much of his time in the TextEditor gadget, then he
may want to have the gadgets functions integrated in the programs
arexx command set.
This can easily be done with this method, simply call it with the
command that the user has executed. If the method returns something
else than FALSE, then the command has been used by the gadget. If it
does return FALSE, then you should parse the command yourself.
This method can also be used by you, to communicate with the gadget.
The following commands are currently supported:
CLEAR
CUT
COPY
PASTE
ERASE
GOTOLINE Template: /N/A
GOTOCOLUMN Template: /N/A
CURSOR Template: Up/S,Down/S,Left/S,Right/S
LINE Template: /N/A
COLUMN Template: /N/A
NEXT Template: Word/S,Sentence/S,Paragraph/S,Page/S
PREVIOUS Template: Word/S,Sentence/S,Paragraph/S,Page/S
POSITION Template: SOF/S,EOF/S,SOL/S,EOL/S,SOW/S,EOW/S,SOV/S,EOV/S
SETBOOKMARK Template: /N/A
GOTOBOOKMARK Template: /N/A
TEXT Template: /F
UNDO
REDO
GETLINE
GETCURSOR Template: Line/S,Column/S
MARK Template: On/S,Off/S
DELETE
BACKSPACE

RESULT

        The method will return FALSE if it couldn't use the command.
It will return TRUE if it did use the command, but the command didn't
give a result. It will return a pointer (STRPTR) when the command
gives a result, you should return this pointer to the user
(CreateArgString() it, and set it as the result, in the rexx message),
you must free the result yourself with FreeVec()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Rebels

ATX
RBS
HZ
TBL

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se