Path: news.mathworks.com!not-for-mail
From: "Yair Altman" <altmanyDEL@gmailDEL.comDEL>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Changing the behavior of pop-up tooltip context-sensitive usage in command window
Date: Fri, 14 Jan 2011 07:09:07 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 17
Message-ID: <igosqj$9mt$1@fred.mathworks.com>
References: <igo64u$oje$1@fred.mathworks.com>
Reply-To: "Yair Altman" <altmanyDEL@gmailDEL.comDEL>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1294988947 9949 172.30.248.37 (14 Jan 2011 07:09:07 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 14 Jan 2011 07:09:07 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:703133

"Mason Freed" wrote in message <igo64u$oje$1@fred.mathworks.com>...
> Some (admittedly builtin) functions, such as surf, generate a very nice list of possible function usage strings in the yellow pop-up tooltip window, when you type "surf(" at the command prompt. However, for user-written functions, all you get is exactly what is on the function line of the function. Adding insult to injury, for methods on custom classes, if I type "myObj.myMethod(" for my class, it simply pops up "myMethod(MyObj object...)" and doesn't show ANY of the actual function arguments.
> 
> So... to the question. How do I overload the behavior of these tooltips?
> 
> Yair, this sounds like a good question for you...?
> 
> Thanks,
> Mason

Naturally...
http://undocumentedmatlab.com/blog/setting-desktop-tab-completions/

Note that if your function accepts a varargin input arg, this parses as a '...' in the completions tooltip.

Yair Altman
http://UndocumentedMatlab.com