Jump to content
Software FX Community

PrePaint / PostPaint


User (Legacy)
 Share

Recommended Posts

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...