On 09/02/12 14:53, Albert Thuswaldner wrote:
If it was up to me I would go for the visual bell. Any thoughts on this?
actually thinking about it some more I don't find it unnatural to have
the whole ( reverted ) prefix selected after entering an illegal
character ( I think this is a technique used elsewhere anyway ) In
addition to providing a cue that you have typed something bad this
approach has the added advantage of solving the cursor problem for you
too ;-)
e.g.
// Revert to last good Prefix
Selection aSel( 0, maOldPrefixValue.getLength() );
pEdit->SetText( maOldPrefixValue, aSel );
Not sure what others think about above but if I hear no real negative
reaction then I'd be inclined to push this
p.s. of course you can use the 'Selection'
Selection aSel( maOldPrefixValue.getLength(),
maOldPrefixValue.getLength() )
to trick SetText to display the cursor at the end. This is a bit hacky,
the alternative is you will probably need to modify the cursor position
directly, that is, unless there is some existing public method on Edit (
which there might be but I didn't see in the myriad of 'Edit' methods )
Thanks for reading my ramblings.;)
/Albert
thanks for taking the time with this nice addition
Noel
Context
- Re: [Libreoffice] [PATCH] Making default tab prefix name configurable in Calc (continued)
Re: [Libreoffice] [PATCH] Making default tab prefix name configurable in Calc · Eike Rathke
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.