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 372351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:12:08+00:00 2026-05-12T14:12:08+00:00

The application that I’m working on is going to be used to create charts

  • 0

The application that I’m working on is going to be used to create charts of data contained in a database. Right now objects on the chart are manipulated using a “control panel” – essentially a list of objects and a PropertyGrid to edit values. The users would also like to be able to interact with the objects using mouse interactions – things like grabbing the corner of the chart and dragging to expand/contract it, clicking on a number and getting a text box to edit it, or right clicking on something to get a menu of possible interactions.
The chart is being drawn with GDI+ on a metafile (a requirement) which is then drawn on a user-drawn form.

I’m not really sure how to implement this. I’ve had a couple ideas:

  • Create some custom controls that get overlaid on the chart graphic. Each control could be associated with a specific object or property of an object on a chart, and would update those values depending on how the user interacted with it.
  • Just keep track of where objects are located, and when a user does something with the mouse, run through the list and figure out which object is supposed to be at the mouse location, and go from there.

I’m interested in how you guys would implement this and would really appreciate some suggestions. Thanks!

  • 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-12T14:12:09+00:00Added an answer on May 12, 2026 at 2:12 pm

    A good method for hit detection: have another off-screen image. draw every clickable object on this image with a unique color. You have to disable anti-aliasing. When user clicks get the color at that point from the off-screen image and determine the object. If you have a list of objects you can use object index as color. This method will handle hit detection of irregular shaped objects but will be a bit slower.

    PS. Using controls will be slower than this.

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

Sidebar

Related Questions

An application that has been working well for months has stopped picking up the
In an application that I am currently working on, a requirement is to bring
The application that I am working on has a generic Parent Form called RSChild,
The application that I'm currently working on has a funky set up for the
Say that I've got a web application that can store Persons in a database.
I have an application that uses an external jar. I used eclipse and it
Ok I creating an application that needs to query records from my remote database.
I have an application that has several classes used for storing application-wide settings (locations
An application that I am building uses a large table with data input fields
I have a cakePHP application that is pulling data from two different databases, which

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.