Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

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

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

Topic: Problem with TreeView(uitree) and UIContextMenu
Replies: 6   Last Post: Feb 6, 2013 9:46 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Dennis B.

Posts: 14
Registered: 11/17/11
Re: Problem with TreeView(uitree) and UIContextMenu
Posted: Jan 31, 2013 2:53 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi Yair - thanks for your response.
After changing my Code to:


jObject_ja = handle(JavaTree_ja, 'CallbackProperties');

setappdata(JavaTree_ja,'UIContextMenu',hContextMenu); %BARD-23-11-11: use "setappdata" for Java-GUI instead of "set"

JavaTree_ja.setRightSelectionEnabled(1); %set(JavaTree_ja,'rightSelectionEnabled','on');


i get an error "Invalid object handle" at setappdata and if i change the order ("handle" and "set" at lastt) no error occurs, but also no Context-PopUp shows up.

Any idea?


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

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.