Read section "5.21. Changing The Mouse Cursor" in AndrewMacro.odt,
which discusses this topic. It begins as follows:
The quick answer is: This is not supported.
A desire to change the mouse cursor sparked an interesting discussion
that I took the time to follow but I did not test. I have edited the
messages for brevity.
.....
Includes who said what with example code.
On 03/21/2013 01:31 PM, [email protected] wrote:
Hi All
I've built a database, using Base, which amongst other things produces a
mailing list. On my 10 year old DeskTop it can take several minutes to produce
the list.
I want to show some activity to the users, so the mouse cursor morphing into
an HourGlass would suit me fine.
I've got this to work as long as I don't move the mouse. The code is -
oFrame = StarDesktop.CurrentFrame
oWindow = oFrame.getContainerWindow()
oPointer = createUnoService("com.sun.star.awt.Pointer")
oPointer.SetType(com.sun.star.awt.SystemPointer.WAIT)
oWindow.setPointer(oPointer)
However, If I move the mouse the cursor reverts back to the appropriate style
for the control which it is over.
>From several discussions there seems to be an indication that I need to
disable the mousemotionlisteners. In going any further I seem to have hit a
brick wall.
Can anyone advise what I should do to keep the cursor displaying the hourglass
during the duration of a task irrespective as the whether the mouse moves or
not.
Thanks
--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
Info: http://www.pitonyak.org/oo.php
--
For unsubscribe instructions e-mail to: [email protected]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted