PythonScript icon indicating copy to clipboard operation
PythonScript copied to clipboard

User Hotspot Notification in Console

Open jimfoltz opened this issue 11 years ago • 2 comments

Since it is possible to create hotspot styles in the console, would it be possible to have a console hotspot click callback?

For example, I can write a hostspot using:

def write_styled(txt):
    mask = 7
    style = 2
    cons_ed = console.editor
    pos = console.editor.getLength()
    console.write(txt)
    cons_ed.setReadOnly(0)
    cons_ed.startStyling(pos, mask)
    cons_ed.setStyling(len(txt), style)

Then I tried:

console.editor.callback(myHotSpotFunc, [SCINTILLANOTIFICATION.HOTSPOTCLICK])

But this does not appear to be supported.

jimfoltz avatar May 30 '14 00:05 jimfoltz

Callbacks from the console scintilla are currently not supported. It'd be nice to have though, and there's no reason this couldn't be implemented now.

bruderstein avatar Jun 01 '14 08:06 bruderstein

How should this be done? Using a third notification group, something like CONSOLENOTIFICATION.HOTSPOTCLICK?

ghost avatar Jul 18 '18 21:07 ghost