Hi,
does not works for me.
I checked with 'Standard EditField', EditField with MultiLines Checked and
EditField with MultiLines + Styled Checked (both).
Also, the language reference states that the MouseCursor 'chain' is:
1. If Application have a valid MouseCursor, this one is used everywhere
within the application
2. If App.MouseCursor = Nil, and Window have a valid MouseCursor,
this one is used everywhere within the Window
3. If App.MouseCursor = Nil _AND_ Window.MouseCursor = Nil then
the MouseCursor of the specific object in the window is used.
So, to set a MouseCursor to the objects in the Window, I place in the Window
Open Event:
// Set Application and Window MouseCursors to Nil
App.MouseCursor = Nil
Self.MouseCursor = Nil
Then I can set a specific MouseCursor to any of the objects in that window (say
ListBox, Canvas, ... <other not tested>).
Are you sure that you used an EditField (I am still not able to do anything
there) and not a ListBox (works fine here, in Canvas too).
I suspect that on some point of view, only the IBeam and StandardPointer (the
arrow cursor) are valid; can be used: the IBeam to write, the StandardPointer to
move the cursor, select text, select and move text, etc.
realbasic-nug-request at lists dot realsoftware dot com wrote:
Subject: RE: Troubles with EditField and MouseCursor
From: "Dixon, Tom" <dixont at Jostens dot com>
Date: Thu, 29 Sep 2005 11:05:19 -0500
Emile,
I just created a sample project with one EditField.=20
In the EditField MouseEnter event I put this line:
Me.MouseCursor =3D System.Cursors.Wait
In the EditField MouseExit event I put this Line:
Me.MouseCursor =3D nil
Works fine. When the mouse enters the EditField the cursor becomes the
wait cursor. On exit it changes back to the standard cursor.=20
Tom
Hi All,
=20
REALbasic 2005r3
Mac OS X 10.3.9
=20
I have troubles setting a MouseCursor to an EditField:
=20
// Set Application and Window MouseCursors to Nil
App.MouseCursor =3D Nil
Self.MouseCursor =3D Nil
=20
// So I can change the EditField MouseCursor
EditField1.MouseCursor =3D System.Cursors.Wait
=20
=20
even with old fashioned RB 5.5.5 cursor:
=20
EditField1.MouseCursor =3D WatchCursor
=20
=20
I can't change the EditField MouseCursor.
=20
=20
I put the above code in many Events of the EditField without=20
any success (MouseEnter, MouseMove, MouseDown, TextChange and so on).
=20
At this stage, I am asking myself if this is allowed !
[Since the EditField Class Parent class is RectControl _AND_=20
RectControl have a MouseCursor Property, I am inclined to=20
think that it can be possible to set that property; nothing=20
pertaining to the EditField Class and MouseCursor is written=20
in the RectControl entry of the Language Reference nor to=20
exclude nor to explain how to use MouseCursors...]
=20
I am in the dark, can someone opens the light for me ?
=20
TIA,
=20
Emile
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|