User (Legacy) Posted December 19, 2002 Report Share Posted December 19, 2002 Hello again, I am using some standard windows GDI api calls to create a font and then paint it to my chart's hdc. This apparently works; however, I am using a realtime chart, and as soon as the loop marker dissapears and the charts begins to scroll, my text randomly starts dissapearing and reappearing every few "ticks" or points scrolled by. Should I place the code to call my text drawing function in the prepaint or postpaint event? Will placement of my code even correct this odd problem? Thanking you in advance, Chase Gale Quantrex Link to comment Share on other sites More sharing options...
Software FX Posted December 19, 2002 Report Share Posted December 19, 2002 No. You can not do custom drawing in a Real-Time chart that uses CT_EVENSPACING. The reason is that in order for the chart to scroll faster, it scrolls the chart contents as a picture, so everything inside the drawing area is slide to the left, that will include your drawings as this is made using BitBlitz. Only the "new" points are redrawn and therefore, only things that you paint in that new are will be redrawn. In conclusion, you either not use CT_EVENSPACING, reducing your performance or you do custom drawing only in the outside of the chart area. The only custom drawing allowed inside the chart are is drawings that "scroll" along with the points. -- FP Software FX Support "Chase Gale" <cgale@fxsol.com> wrote in message news:5f9Wym2pCHA.2632@webserver1.softwarefx.com... > Hello again, > > I am using some standard windows GDI api calls to create a font and then > paint it to my chart's hdc. This apparently works; however, I am using a > realtime chart, and as soon as the loop marker dissapears and the charts > begins to scroll, my text randomly starts dissapearing and reappearing every > few "ticks" or points scrolled by. > > Should I place the code to call my text drawing function in the prepaint or > postpaint event? > > Will placement of my code even correct this odd problem? > > Thanking you in advance, > > Chase Gale > Quantrex > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.