Click here to Skip to main content
15,896,348 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
I am developing a Dental Clinic Software almost it has been completed but i stuck at the part where my client wants a form where Graphical Design of Teeth can be marked as if it is Damaged or not , and if it is damaged then which part is that of the particular teeth.
I have searched a lot but still can not find a way to establish that method with Image interaction where User can click on a teeth from Virtual teeth view and remark that it is damaged .

You can refer this link to get idea about what i m trying to make :
http://www.softsea.com/screenshot/image/Dental-Clinic-Software.jpg[^]


https://qstoma.com/Images/start/lab_addactivity_en.jpg[^]
Posted
Comments
[no name] 16-Jul-13 17:14pm    
simple, you need track mouse events in your picture box/image, but it's be different if your application should recognize the part, it kinda image processing :)
Sergey Alexandrovich Kryukov 16-Jul-13 20:18pm    
Not sure. Using PictireBox is a bad advice in most cases, even though it's in principle possible. It depends on how you use it. If you assume that different tooth are shown in different Picture Boxed, it could make sense, but I'm afraid all are shown together. Changing the image in PictureBox is also a bad advice. This control is simply redundant, it's used to simplify some simplest work. If it is not the simplest, the control only adds some hassles.
—SA
[no name] 17-Jul-13 2:38am    
thanks buddy :) well I'm not a GUI programmer (specially .Net and Windows :( ) but I had some experiences, how do you advice don't use picture box? so without picturebox now we have to draw the image implicitly, I think multiple picturebox together, which each one shows one unit(teeth), and when user select a part of image (with mouse moves) then system checks and find the part selected, is there another better way exist?!
Sergey Alexandrovich Kryukov 17-Jul-13 10:47am    
And how it's related to PictureBox? Drawing is rendered on any control, including form, using OnPaint or handling Paint. This is the intended way of rendering giving you all the flexibility, when the drawing can be interactive, animated, etc. (It's based on handling WM_PAINT.) And PictureBox is nothing but a very primitive auxiliary control doing exactly the same, but only in one commonly used aspect — showing one static image. And many people take it for something real and trying to add some complexity to its use. Not that it's impossible, it's just totally wasteful.
—SA
Sergey Alexandrovich Kryukov 16-Jul-13 20:18pm    
First of all, you need to tag the UI library or application type you used. The solutions for other libraries are very different. Besides, we don't know what is your doubt.
—SA

1 solution

First of all, you need a picture showing the teeth (or perhaps several picture from which the dentist can select: front view, top view, inner view...). Next, you have to - likely manually - find the coordinates of the individual teeth on that image (and furthermore, the coordinates of the parts of the teeth), and store that information.
When the user clicks on the image, you'll receive a Click event. The EventArgs contain the x and y coordinates of the click. With them, you can search throu your list of data to find the corresponing tooth and its part.
It is a lot of manual work to get there...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900