[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [StrongED] startup parameters for StrongED
In message <8d5c08dd50.stbruk@sdes_iy02.alandick.com>
Steve Bradbury <steve.bradbury@xxxxxxxxxxxx> wrote:
[snip]
> It uses the command:
>
> *message StrongEd_OpenDoc
>
> I don't think the parameters are documented but it should be possible to
> work them out with a bit of experimentation.
The formats of the StrongED_OpenDoc and StrongED_OpenView messages are:
StrongED_OpenDoc <filename> <parameters>
StrongED_OpenView <parameters>
The StrongED_OpenDoc message is used to load a file into StrongED.
The StrongED_OpenView message is used to create additional views on a
text. It always relates to the last StrongED_OpenDoc message received.
You can store the messages in an obey file by prefixing each line with
'Message'. Which is a *command implemented by the Dialogue module that
comes with StrongED. It's purpose is to convert the remainder of the
line into a Wimp message that's then sent to StrongED.
Both messages understand the following parameters:
* -x0 <n> : x coordinate of topleft corner
* -y0 <n> : y coordinate of topleft corner
* -w <n> : width of a view
* -h <n> : height of a view
* -scrollx <n> : x scroll offset
* -scrolly <n> : y scroll offset
-wordwrap : if present, word wrap is on
-charwrap : if present, character wrap is on
-autowrap : if present, auto wrap is on
-wrap <n> : wrap width of view in characters
-iconised : if present, view is iconised (actually it's hidden)
-offset <n> : cursor offset in bytes from start of text
-ftyp <n> : 3 digit hex filetype of file displayed in view
-readonly : if present, text is write-protected
-mode <name> : mode used in the view
-m1 <n> : mark position 1, offset from start of text
-m2 <n> : mark position 2, offset from start of text
-m3 <n> : mark position 3, offset from start of text
-m4 <n> : mark position 4, offset from start of text
The items marked with a '*' may have their keywords omitted, but must
then be given in the right order of course.
--
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxxxxx