Docs @ Psychtoolbox Wiki : HideCursor

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

Revision [14240]

Last edited on 2011-08-25 07:45:53 by DocBot
Additions:
HideCursor([screenid=0][, mouseid]
HideCursor hides the mouse cursor associated with screen 'screenid'.
By default, the cursor of screen zero on Linux, and all screens on
Windows and Mac OS/X is hidden. 'mouseid' defines which of multiple
cursors shall be hidden on Linux. The parameter is silently ignored
on other systems.
See ShowCursor, SetMouse
Deletions:
HideCursor
HideCursor.mex hides the cursor. Use ShowCursor to make it visible
again.
=== OS 9 ===
Flushing HideCursor.mex or [[Screen]].mex (eg "clear hidecursor", "clear
screen", "clear mex", or "clear all") makes the cursor visible, by a call
to InitCursor.
Note that the Mac OS counts the number of times you call HideCursor, and
requires an equal number of calls to ShowCursor before the cursor becomes
visible again. Excess calls to ShowCursor are ignored. (When [[Screen]]
closes its last window it calls InitCursor, which resets the count.)
HideCursor vs. QuickDEX: If you leave QuickDEX (the old address-book
desk accessory) running in the background while running Matlab, then
HideCursor.mex doesn't work. HideCursor returns normally, but the cursor
remains visible. This seems to be a bug in QuickDEX, but the program
hasn't been sold for many years, so an update is unlikely. The work
around is simply to quit QuickDEX before using HideCursor in Matlab.
WARNING: When BACKGROUNDING is enabled, Matlab shows the cursor
before executing each Matlab statement, even if you just called
HideCursor. So turn off BACKGROUNDING:
[[Screen]]('[[Preference]]','Backgrounding',0);
% Fast in Matlab 5.2.1, slow in earlier versions.
WARNING: When you run your Matlab code as a script, rather than as a
FUNCTION, it appears that Matlab shows the cursor before executing some
Matlab statements. So put the FUNCTION statement in the first line of
your M file. Thanks to Thomas Jerde <thomasjerde@hotmail.com> for
reporting this.
web http://groups.yahoo.com/group/psychtoolbox/message/1186;
See ShowCursor, CursorTest, [[Screen]] [[Preference]] Backgrounding.


Revision [12079]

Edited on 2010-12-06 10:25:34 by DocBot
Additions:
"http://svn.berlios.de/svnroot/repos/osxptb/beta/Psychtoolbox/PsychBasic/HideCursor.m">beta</a> | view WebSVN <a href=
"http://svn.berlios.de/wsvn/osxptb/trunk/Psychtoolbox/PsychBasic/HideCursor.m?op=log">changelog</a> of trunk branch</span>
Deletions:
"http://svn.berlios.de/svnroot/repos/osxptb/beta/Psychtoolbox/PsychBasic/HideCursor.m">beta</a> | view in <a href=
"http://svn.berlios.de/wsvn/osxptb/beta/Psychtoolbox/PsychBasic/HideCursor.m?view=markup">WebSVN with changelog</a></span>


Revision [10104]

Edited on 2010-09-09 15:25:31 by DocBot
Additions:
"http://svn.berlios.de/wsvn/osxptb/beta/Psychtoolbox/PsychBasic/HideCursor.m?view=markup">WebSVN with changelog</a></span>
Deletions:
"http://svn.berlios.de/viewcvs/osxptb/beta/Psychtoolbox/PsychBasic/HideCursor.m?view=markup">WebSVN with changelog</a></span>


Revision [7612]

Edited on 2008-09-25 18:09:40 by DocBot
Additions:
""
<div class="code_header" style="text-align:right;">
<span style="float:left;">Path  </span> <span class="counter">Retrieve current version of HideCursor.m from berliOS: <a href=
"http://svn.berlios.de/svnroot/repos/osxptb/beta/Psychtoolbox/PsychBasic/HideCursor.m">beta</a> | view in <a href=
"http://svn.berlios.de/viewcvs/osxptb/beta/Psychtoolbox/PsychBasic/HideCursor.m?view=markup">WebSVN with changelog</a></span>
</div>
<div class="code">
<code>Psychtoolbox/PsychBasic/HideCursor.m</code>
</div>
""
Deletions:
%%(php;Path)Psychtoolbox/PsychBasic/HideCursor.m%%


Revision [5175]

Edited on 2008-06-15 19:55:34 by DocBot
Additions:
==[[Psychtoolbox]] › [[PsychBasic]]==
Deletions:
==[[Psychtoolbox]] › PsychBasic==


Revision [2769]

Edited on 2008-03-21 03:23:07 by DocBot
Additions:
==[[Psychtoolbox]] › PsychBasic==
=== OS 9 ===
Flushing HideCursor.mex or [[Screen]].mex (eg "clear hidecursor", "clear
visible again. Excess calls to ShowCursor are ignored. (When [[Screen]]
[[Screen]]('[[Preference]]','Backgrounding',0);
----
See ShowCursor, CursorTest, [[Screen]] [[Preference]] Backgrounding.
%%(php;Path)Psychtoolbox/PsychBasic/HideCursor.m%%
Deletions:
==PtbReference › PsychBasic==
OS 9: ___________________________________________________________________

Flushing HideCursor.mex or Screen.mex (eg "clear hidecursor", "clear

visible again. Excess calls to ShowCursor are ignored. (When Screen
Screen('Preference','Backgrounding',0);


_________________________________________________________________________

See ShowCursor, CursorTest, Screen Preference Backgrounding.
PsychBasic


Revision [2404]

Edited on 2008-03-15 12:08:17 by DocBot
Additions:
===[[HideCursor]]===
==PtbReference › PsychBasic==
Deletions:
===PsychBasic===


Revision [286]

The oldest known version of this page was created on 2008-03-15 10:26:21 by DocBot
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0265 seconds