Discussion › Forums › discussion › Indicator functions not available for PyPN?
This topic contains 0 voices and has 2 replies.
| Author | Posts |
|---|---|
| Author | Posts |
| September 9, 2011 at 2:34 pm #5489 | |
|
CoDEmanX Member
|
Hey Simon, you suggested to have a look at the TextUtil code to get an idea, how Scintilla indicator styles work and that one could use it with PyPN ( http://code.google.com/p/pnotepad/issues/detail?id=1374#c2 ) But the needed Indicator functions aren’t available: http://www.pnotepad.org/docs/pypn_api_pages - Python error: <type ‘exceptions.AttributeError’>: ‘Scintilla’ object has no attribute ‘SetIndicatorCurrent‘ / ‘IndicatorClearRange‘ / ‘IndicatorFillRange‘ Am I overlooking something (imports?) or aren’t they supported yet? |
| September 12, 2011 at 10:06 am #18099 | |
|
simon Key Master
|
Ah yes, they haven’t been added yet. You should be able to do them manually using:
You’ll need the message numbers for each of the APIs, which are:
so for example to clear a range you want something like:
Also, if you wouldn’t mind filing a request I’ll add the missing commands to the next PyPN |
| September 12, 2011 at 12:45 pm #18100 | |
|
CoDEmanX Member
|
Great, thank you Simon! Added request, issue #1437 This test script marks all numbers (I use it as PyPN textclip):
I wonder what the long/char* parameter is for (e.g. in SetIndicatorValue)…
|
You must be logged in to reply to this topic.