the effective revAvailableHandlers

Organizing tasks to work on, New Features Ideas, Building LCS & LCB Libraries & Widgets, Redecorating and Modifying the IDE, Hacking / Editing Tools, Compiling the Engine from Source, etc.
Post Reply
User avatar
OpenXTalkPaul
Posts: 1871
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

the effective revAvailableHandlers

Post by OpenXTalkPaul »

There is an IDE property revAvailableHandlers, has a value of a list of handlers (and variables) that are available from the script of a given 'scriptObject' (control, card, stack, or group). There's also an EFFECTIVE for of the property that lists ALL of the handlers available including functions, commands from libraries, externals, extensions, etc.

Heres's a snippet for message box:

Code: Select all

get  the effective revAvailableHandlers of stack "home";sort it;put it
or try topStack:

Code: Select all

get  the effective revAvailableHandlers of the topStack;sort it;put it
The result is a list that's in the IDE's format that is used by the Script Editor

I believe the format of this list is:
Letter _ handlerName _ startingScriptLineOfhandler, endinigScriptLineOfhandler stack "path/to/stack"
_ equals 1 space " "

F = function
PF = private function
M = message
PM = private message
G = getProp
S = setProp

A single space and then the Handlers name

Followed by A single space and then two numbers separated by a comma
These numbers are the line-number of the first script line where the handler begins, and the line of number where that handler ends (which could be used to make a chunk expression to copy the handler for example).

That can optionally be followed by a space and the name of a stack where the handler originates, like if the handler is in a script library stack.
User avatar
OpenXTalkPaul
Posts: 1871
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: the effective revAvailableHandlers

Post by OpenXTalkPaul »

F = function
PF = private function
M = message
PM = private message
G = getProp
S = setProp
Also:
A = after-message
B = before-message

better to sort that list like this:

Code: Select all

get the effective revAvailableHandlers of the topStack;sort it by word 1 of each; put it
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests