Path: news.mathworks.com!not-for-mail
From: "Yair Altman" <altmanyDEL@gmailDEL.comDEL>
Newsgroups: comp.soft-sys.matlab
Subject: Re: fullcrosshair
Date: Sun, 7 Oct 2007 07:28:37 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 38
Message-ID: <fea1r5$g8f$1@fred.mathworks.com>
References: <fe6co9$rr0$1@fred.mathworks.com> <fe96iv$coe$1@fred.mathworks.com>
Reply-To: "Yair Altman" <altmanyDEL@gmailDEL.comDEL>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1191742117 16655 172.30.248.35 (7 Oct 2007 07:28:37 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 7 Oct 2007 07:28:37 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:431673


"carlos lopez" <clv2clv_00000000_@adinet.com.uy> wrote in
message <fe96iv$coe$1@fred.mathworks.com>...
> "german " <nospam@yahoo.com> wrote in message
> <fe6co9$rr0$1@fred.mathworks.com>...
> > hi,
> > I want to use a cursor like fullcrosshair, but to have only 
> > the horizontal line.
> > Is it possible to edit the pointer? if not, how can I make 
> > a pointer with a full horizontal line?
> > 
> > thanks
> > german
> It is possible. You need to look for the properties of the
> figure, namely with something like:
> set(gcf,'Pointer','custom','PointerShapeCData',something)
> where something is explained in the manuals, and is where
> you can freely use your creativity ;-)
> Other property which might be worth investigating is
> 'PointerShapeHotSpot' 
> Regards
> Carlos


Look inside the setptr function for ideas/examples of how to
do this, as well as a few predefined cursor shapes that are
unavailable in set(gcf,'Pointer',...).

Note: setptr (and its sibling getptr) have been around in
Matlab for ages (at least since Matlab 5.3), but to this day
they are only partially documented (help text, but no doc)
and apparently unsupported. I really have no idea why:
Unlike moveptr (also semi-doc'ed, but which has a few quirks
and is still not ready for prime time), setptr & getptr
appear pretty stable and usable as-is.

Yair Altman
http://ymasoftware.com