Functions: ClickList

The ClickList function works in conjunction with the a ClickList defined in the ModeFile.

When called, the ClickList function inspects the ClickLists defined in the current ModeFile to see if it can match any of the Search expressions with the current caret position.

If a match is found, the corresponding list of operations in the relevant ClickList are executed.

To create clickable text you need to create a separate ClickList entry in the relevant ModeFile's ClickList.

The general syntax of a Clicklist is:

  ClickList <Name>
    <name of search expression>  <tab>  <list of functions>
  End

The Name in the ClickList is taken as a Search expression and could anything but if you want to use the mouse you'll need to use one of these names: Select1, Select2, Adjust1, Adjust2 where the digit indicates single-click or double-click.

The ClickList Name can be prefixed with one or more of a, c, s to indicate which modifier keys need to be held down. For example:
cs-Select2 = Doubleclick Select, with ctrl and shift pressed. The Name of the ClickList is a Search expression so must be defined in the Search section of the ModeFile concerned.

The list of functions to be executed is one or more of StrongED's functions separated by spaces.

Thus to run a file when a filename is double-clicked you could use:

  Search
    FileSys   "ADFS" | "RAM" | "SCSI" | "SDFS"
    FileName  FileSys "::" {~(Ctrl|White) Any}+
  End

  ClickList Select2
    Filename   Run("Filer_Run ")
  End


Was this page helpful? Please email me and/or rate this page:


If you want a reply make sure any email address @torrens.org will not get spam-binned!
Optional comment

Other relevant pages

Top of page


Page Information

https://css.torrens.org/valid-html401-bluehttps://css.torrens.org/valid-css Document URI: https://stronged.torrens.org/man/functions/clicklist.html
Page first published Tuesday the 26th of June, 2018
Last modified:Tue, 18 Mar 2025 12:35:16 GMT
© 2018 - 2025 Richard John Torrens.