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$>
References: <igo64u$oje$>
Reply-To: "Yair Altman" <altmanyDEL@gmailDEL.comDEL>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1294988947 9949 (14 Jan 2011 07:09:07 GMT)
NNTP-Posting-Date: Fri, 14 Jan 2011 07:09:07 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: comp.soft-sys.matlab:703133

"Mason Freed" wrote in message <igo64u$oje$>...
> 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


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

Yair Altman