Neil wrote:
>I'd add an API.

OK - I was trying to avoid API bloat by extending an existing call.
Some suggestions:

SCI_SETZOOMLOCK(bool lock)
SCI_GETZOOMLOCK

There could be two possible implementations:

1) Locks the zoom at the current level
2) Ignores the zoom level

In either case, attempts to change the zoom level would be ignored while
zoom is locked.

Having the SCI_GETLOCKZOOM is a luxury and could be dropped, however I find
it a pain that the container has to keep a copy of a lot of state - for
example style settings cannot be discovered. If you decide that a GET call
is over the top, then how about:

bool SCI_ZOOMLOCK(bool lock)

and have it return the lock state at the time of the call.
Or:

bool SCI_ZOOMLOCK(int lock)
A zero value of lock clears any zoom lock, positive values set locking, and
a negative value causes no change. The return value is the locking state at
the time of the call.


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

Reply via email to