From: Bill on
I would like the TooltipString of my uicontrol to display the value of this uicontrol. How would I go about doing that?
Thank you.
From: ImageAnalyst on
On Apr 10, 8:39 pm, "Bill " <curtcobai...(a)gmail.com> wrote:
> I would like the TooltipString of my uicontrol to display the value of this uicontrol. How would I go about doing that?
> Thank you.
--------------------------------------------------------------------
Can't you just do this?:

% Get the value.
controlValue = get(controlHandle, 'value');
% Convert number to string if the value is a numeric value.
controlValue = num2str(controlValue); % If needed.
% Set the value.
set(controlHandle, 'TooltipString', controlValue);