Hi Neil,

I am happy to go ahead and write the code to do this. Do you have any
preferences between the possible implementations? This also leads to
questions about foreground and background colours. If we implement a new
standard style, would we then use the background and foreground colour of
this to set the back/fore colours of the tip (this could be made compatible
with the existing methods). This would suit me as I have dialogs to let
users interactively set fonts and fore/back colours and it would be nice to
be able to do this for call tips too. The highlight should stay as is as it
is a separate thing with no analogue in a normal style, and I take your
point about not wanting to use a separate style for the highlight as this
causes tool-tips to change layout.

I think I see how to do Tabs in a tool tip... you already break everything
up into chunks for drawing, so I would also split things at Tab characters.

So, how about adding STYLE_CALLTIP (=38) that is used for the foreground and
background colour, but not used by default for the Facename and size.

Add an enabling call:

SC_CALLTIPSTYLE(int TabSize, <unused>)

There is no need to disable it as if author knows of this, there would be no
compatibility problems. The Tabsize is set in screen pixels.

One more question: You use the zoomed size of the fonts for the call tips...
would you consider not zooming them, and just using the size that was asked
for...

Sorry... I lied. Another question related to zooming:

As well as using Scintilla to view script languages, I also use it as a
general-purpose output window that is targeted by my scripting language. (By
the way, in this usage it was vastly better and faster than another editor I
previously used, and has the nice property that adding lines at the start,
middle or end seems to take more or less the same time, and the time is not
dependent on the text buffer size, at least for a few tens of thousands of
lines). In this usage, it is a problem that the user can change the display
scaling with the mouse wheel. How would you feel about some way to
enable/disable this feature? I noticed that you suggested to someone who
also wanted to do this that they could intercept the Windows message... but
this seems a bit heavy handled.

Best wishes,

Greg Smith


_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to