GDI+ Custom Control

F

fallenidol

Hello,

I am currently beginning development of a custom charting control which
shall be used to display medical trend data such as Heart Rate and Blood
Pressure etc. The control will be made up of several horizontal "tiles"
which run the width of the control. So there would be one "tile" for Heart
Rate (say 150px high) and another "tile" below that for Blood Pressure (also
150px). To complicate matters each title needs to "scroll" in a manner
similar to Google Maps. In other words when a title is scrolled horizontally
the chart needs to start constructing images of the graph and buffering them
behind the scenes since redrawing the whole "tile" in real-time would be too
slow.

I'm kind of struggling to think of the best way to implement this so any
suggestions would be helpful. I'm unsure if i need to have just one
usercontrol and use gdi+ to draw everything inside the one control or
whether i should have have one usercontrol as a container and then have
several other usercontrol inside i.e one for each "tile".

I hope this makes sense and look forward to any suggestions you might have.

Thanks.
 
I

Ignacio Machin ( .NET/ C# MVP )

Hello,

I am currently beginning development of a custom charting control which
shall be used to display medical trend data such as Heart Rate and Blood
Pressure etc. The control will be made up of several horizontal "tiles"
which run the width of the control. So there would be one "tile" for Heart
Rate (say 150px high) and another "tile" below that for Blood Pressure (also
150px). To complicate matters each title needs to "scroll" in a manner
similar to Google Maps. In other words when a title is scrolled horizontally
the chart needs to start constructing images of the graph and buffering them
behind the scenes since redrawing the whole "tile" in real-time would be too
slow.

I'm kind of struggling to think of the best way to implement this so any
suggestions would be helpful. I'm unsure if i need to have just one
usercontrol and use gdi+ to draw everything inside the one control or
whether i should have have one usercontrol as a container and then have
several other usercontrol inside i.e one for each "tile".

I hope this makes sense and look forward to any suggestions you might have.

Thanks.

A Tile can be viewed as a panel (or any composing control for that
matter). It should be a control itself.
I do not know how you can buffer the not visible content of the
control to allow the scrolling, I'm pretty sure that nothing like that
is provided by the framework.

I have one question, though.
Why you need to scroll horizontal in the first place?
 
J

Jeff Johnson

[Canned response]

You have posted this question individually to multiple groups. This is
called Multiposting and it's BAD. Replies made in one group will not be
visible in the other groups, which may cause multiple people to respond to
your question with the same answer because they didn't know someone else had
already done it. This is a waste of time.

If you MUST post your message to multiple groups, post a single message and
select all the groups (or type their names manually, separated by commas) in
which you want it to be seen. This is called Crossposting and when used
properly it is GOOD.

(This isn't just my opinion. Look here:
http://www.oakroadsystems.com/genl/unice.htm#xpost)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top