Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7681733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:24:31+00:00 2026-05-31T18:24:31+00:00

I extended the functionality of a line object using a class which takes a

  • 0

I extended the functionality of a line object using a class which takes a line handle as an input argument to its constructor. This class then creates a WindowMouseMotion listener to detect a mouseover the line which highlights the line and displays a panel containing controls for setting some line/data properties. This is working well.

I am now trying to make this class detect and respond to the line being deleted by listening for the line’s ObjectBeingDestroyed event. My question is whether linking this class to the line object by storing the line’s handle is the best solution or is it possible to extend the line class by inheriting from it? I have looked through the MATLAB documentation and searched online but can’t find definitive information on inheriting from graphics classes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:24:32+00:00Added an answer on May 31, 2026 at 6:24 pm

    It is possible to subclass the builtin handle graphics classes. There is an example at http://undocumentedmatlab.com/blog/udd-properties/ . It uses the specifically undocumented UDD mechanism. The MathWorks has stated on numerous occasions that UDD is for internal development and use only and unsupported. It is worth noting however that there are numerous examples of UDD subclassing in the m code that The MathWorks provides. Also IF they feel that there is a specific reason to keep something in UDD secret it is either built-in or pcoded. So I feel that if you find examples of how to do things in the source code provided by The MathWorks you should feel free to use them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not sure what this functionality is properly called. But I have a single-line
I've built an abstract User class which is extended by Admin, Manager, and Employee.
I have a situation utilizing class table inheritance where the base object (which is
I have a class that is extended, and its children extended further, an arbitrary
I've put some functionality in a module, to be extended by an object. I'd
How can I find extended ASCII characters in a file using Perl? Can anyone
I have extended my entities to implement specific interfaces for its type. I am
I recently extended with UserProfile so my admin.py looks like this: from django.contrib import
I have extended a MaskedTextBox component to add some functionality. The text property of
This is question about MVC web-app architecture, and how it can be extended to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.