Actually you should change the cursor width setting in
vcl/source/app/settings.cxx line 421; exhange
mnCursorSize = 2;
by a larger value.
Be advised, that on Windows this setting will be overwritten by the
system setting from DEV300m71 on.
Kind regards, pl
On 1/30/10 10:21 AM, eric b wrote:
Answering me again
Le 30 janv. 10 à 09:24, eric b a écrit :
... in meantime, I found : svtools/source/edit/textview.cxx
Looks promising :)
After more investigation (OpenGrok is great btw ! ), I was plain wrong
and a better place was in vcl/source/window/cursor.cxx
The code below solved the cursor in the text editor, but in fact, the
cursors I'd like to modify are the system one. e.g. the classical arrow,
or the pen with Impress .. and so on.
So my new question is : Is the only way to use bigger cursors (all
platforms), provide new bigger .png .. or ?
Thanks,
Eric Bachard
Index: vcl/source/window/cursor.cxx
===================================================================
--- vcl/source/window/cursor.cxx (revision 384)
+++ vcl/source/window/cursor.cxx (working copy)
@@ -57,6 +57,7 @@
// =======================================================================
+
static void ImplCursorInvert( ImplCursorData* pData )
{
Window* pWindow = pData->mpWindow;
@@ -67,8 +68,14 @@
nInvertStyle = INVERT_50;
else
nInvertStyle = 0;
-
+#ifdef OOo4Kids
+ Size aNewPixSize;
+ aNewPixSize.setWidth( 2 * pData->maPixSize.getWidth() );
+ aNewPixSize.setHeight ( pData->maPixSize.getHeight() ); // increase
height is a bad idea
+ Rectangle aRect( pData->maPixPos, aNewPixSize );
+#else
Rectangle aRect( pData->maPixPos, pData->maPixSize );
+#endif
if ( pData->mnDirection || pData->mnOrientation || pData->mnPixSlant )
{
Polygon aPoly( aRect );
--
Sanity is just a bad excuse for a lack of imagination.
-- Author unknown
Registered Office: Sun Microsystems GmbH, Sonnenallee 1, D-85551
Kirchheim-Heimstetten
Commercial register of the Local Court of Munich: HRB 161028
Managing Directors: Thomas Schröder, Wolfgang Engels
Chairman of the Supervisory Board: Martin Häring
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]