Author |
Topic  |
|
jack1974
10 Posts |
Posted - 02 Nov 2005 : 09:10:55
|
I am able to print the charts, but I am having a problem making it also print out the other features that I have displayed such as: text boxes, combo boxes, button, etc. Is there a way to print these objects?
|
|
quinncurtis
1164 Posts |
Posted - 02 Nov 2005 : 10:13:04
|
See Chapter 14 or the Real-Time Graphics Tools manual where we discuss the RTControlButton and RTTrackBar controls.
All .Net controls have a common shortcoming; by design, they will not render (draw) to a printer device context. Why you ask ? We do not know; you will have to ask Microsoft. Our guess is that .Net controls use underlying WIN32 API common controls for display purposes, and that these controls cannot be easily rendered to a .Net printer device context.
Simple .Net controls (Button, TrackBar, ComboBox etc.) added to one of our ChartView windows will not print because of this.
We have subclassed the Button and TrackBar controls in our software as RTControlButton and RTControlTrackBar, and added the necessary code to render these objects to a printer. This involves actually drawing the control using basic line, pixel, rectangle and text drawing techniques.
But when it comes to combo boxes and text boxes there is nothing our software will do for you.
|
 |
|
|
Topic  |
|
|
|