set-clickback in text%
Installs a clickback for a given region. If a clickback is already installed for an overlapping region, this clickback takes precedence.
See also Clickbacks.
(-> voidsenda-textset-clickbackstartendfhilite-deltacall-on-down?)
start: exact non-negative integer
end: exact non-negative integer
f: procedure of three arguments: atext%object, a starting position exact non-negative integer, and an ending position exact non-negative integer
hilite-delta=#f:style-delta%object or#f
call-on-down?=#f: booleanThe callback procedure
fis called when the user selects the clickback. The arguments tofare this editor and the starting and ending range of the clickback.The
hilite-deltastyle delta is applied to the clickback text when the user has clicked and is still holding the mouse over the clickback. Ifhilite-deltais#f, then the clickback region's style is not changed when it is being selected.If
call-on-down?is not#f, the clickback is called immediately when the user clicks the mouse button down, instead of after a mouse-up event. Thehilite-deltaargument is not used in this case.