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 );


--
qɔᴉɹə




Reply via email to