(If you do not see the frame version of this page with a table of contents in the left frame, click here.)

Topic Events

farVIEW is an event-driven program. As such, it allows topics to receive and process events. You code a farSlang module to carry out the actual process, and you associate the module with a specific event using a topic event entry. farVIEW provides a simple list editor for you to make the necessary associations between events and the code to handle the events. To obtain the editor, select a topic using the RMB, then select the Edit events menu item to obtain the following dialog:

You enter one line for each event you want to assign to farSlang code. The format of each line is

    eventName = moduleName.procName.parameter

For example, let's say you would like to use the handleMouseEnter proc in the mySpecialTopic module (I just made the names up) to handle the MouseEnter event. Then enter the following line:

    MouseEnter = mySpecialTopic.handleMouseEnter

Here is a table of the farVIEW events that you can associate with farSlang handlers: TBD
 

Event Name
When the event occurs
ExpandingNode
NodeExpanded
OpenNode
CloseNode
DoubleClickNode
MouseEnter
MouseLeave
LeftMouseDown
LeftMouseUp
LeftDoubleClick
MiddleMouseDown
MiddleMouseUp
RightMouseDown
RightMouseUp
RightDoubleClick
LeftDrop
RightDrop
AddAlias
AddChld
EditNode
EditEvents
EditBody

It is beyond the scope of this description to tell you how to write a farSlang module. You can read about farSlang here.