The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Error in Custom datatip string function
Replies: 2   Last Post: Jul 14, 2013 2:32 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Nima Nikvand

Posts: 11
Registered: 12/30/12
Re: Error in Custom datatip string function
Posted: Dec 31, 2012 1:25 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Just a quick update to this post, I realized that the lselection function does not run at all, and I am not sure how to invoke it

"Nima Nikvand" <> wrote in message <kbr3cq$osq$>...
> Hello everyone,
> I am using a custom datatip string function in my GUI, the call to the function is made in the following format:
> set(dcmObj,'Enable','on',...
> 'SnapToDataVertex','on', ...
> 'DisplayStyle','datatip',...
> 'UpdateFcn',@datatextbox);
> where datatextbox is the custom datatip function and the following is it's format:
> function [txt,pos] = datatextbox(~,event_obj)
> pos = get(event_obj,'Position');
> txt = {['Vector Length: ',num2str(pos(1))],['MOS: ',num2str(pos(2))]};
> myhandles = guidata(gcbo);
> sobj1= myhandles.sobj1;
> sobj2 = myhandles.sobj2;
> myhandles.txt = txt;
> set(myhandles.txt1,'string',txt);
> [imno,imind,vlength,ssim,axes] = lselection(sobj1,sobj2,pos);
> However, I am getting a "Error in Custom datatip string function" error message when I add the last function (lselection) in my function definition. If I remove this function everything works alright. The lselection function works alright when used separately, I need to be able to pass and update the position information from this function and I am wondering what could be the problem and I appreciate any suggestions.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.