Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mouse pointer

13 views
Skip to first unread message

Andrew Rabinovich

unread,
Jul 28, 1998, 3:00:00 AM7/28/98
to
How does the mouse poiter change from an arrow to the clock when
somwthing is computing, I hve computationos taking place but the arrow
does not chenge.
Thank you
Andrew


Rob Henson

unread,
Jul 28, 1998, 3:00:00 AM7/28/98
to and...@routh.ucsd.edu

You can set the pointer in a MATLAB figure window to a clock using:

set(gcf,'pointer','watch')

and then when your calculation has finished you can go back to the arrow
with:

set(gcf,'pointer','arrow')

Other styles include

circle
cross
crosshair
ibeam
fleur
custom

HTH

Rob

--
===========================================================
Robert Henson E-mail - r...@mathworks.com
The MathWorks, Inc. WWW - http://www.mathworks.com
24 Prime Parkway Phone - (508) 647-7505
Natick, MA 01760 FAX - (508) 647-7012
===========================================================

Chris Griffin

unread,
Jul 30, 1998, 3:00:00 AM7/30/98
to
In article <35BE32...@mathworks.com>, r...@mathworks.com says...

> Andrew Rabinovich wrote:
> >
> > How does the mouse poiter change from an arrow to the clock when
> > somwthing is computing, I hve computationos taking place but the arrow
> > does not chenge.
> > Thank you
> > Andrew
>
> You can set the pointer in a MATLAB figure window to a clock using:
>
> set(gcf,'pointer','watch')

You can also use the function SETPTR:

» help setptr

SETPTR Set figure pointer.
SETPTR(FIG,CURSOR_NAME) sets the cursor of the figure w/ handle FIG
according to the cursor_name:
'hand' - open hand for panning indication
'hand1' - open hand with a 1 on the back
'hand2' - open hand with a 2 on the back
'closedhand' - closed hand for panning while mouse is down
'glass' - magnifying glass
'lrdrag' - left/right drag cursor
'uddrag' - up/down drag cursor
'add' - arrow with + sign
'addzero' - arrow with 'o'
'addpole' - arrow with 'x'
'eraser' - eraser
'help' - arrow with question mark ?
[ crosshair | fullcrosshair | {arrow} | ibeam | watch | topl |
topr ...
| botl | botr | left | top | right | bottom | circle | cross |
fleur ]
- standard figure cursors

SetData=setptr(CURSOR_NAME) returns a cell array containing
the Property Value pairs which correctly set the pointer to
the CURSOR_NAME specified. For example:
SetData=setptr('arrow');set(FIG,SetData{:})

SETPTR(FIG,'file','hand.dat') sets the cursor of the current figure
to that of the Macintosh cursor saved in the ascii hexidecimal file
'hand.dat'.

example input file:
01801A702648264A124D1249680998018802400220022004100408080408040801801
BF03F
F83FFA1FFF1FFF6FFFFFFFFFFE7FFE3FFE3FFC1FFC0FF807F807F800090008<eof>

You can obtain such a file by editing a cursor resource in ResEdit in
hexidecimal mode, copying the hexidecimal data (in ascii form) and
pasting that to a new text file.

»
--
Chris Griffin
The MathWorks, Inc.

0 new messages