ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  update view port without removing dynamic layer
Posted by Robert on Oct-14-2022 03:13
Hello

Is there a way to preserve an existing dynamic layer that ive drawn to while calling update view port? When I call update view port it clears my dynamic layer (which makes sense why it would do that). Is there a way to preserve it until I want to remove it?

Thanks!

  Re: update view port without removing dynamic layer
Posted by Peter Kwan on Oct-15-2022 18:14
Hi Robert,

Unluckily, whenever you updated the chart, the dynamic layer will be erased with the old chart. That's why in our own sample code, when the viewport changed, the chart is updated and then the dynamic layer is redrawn. Because we already have the subroutine that draws the dynamic layer in the first place, so it is easy to redraw the dynamic layer (just call the same subroutine). You may refer to the "Zooming and Scrolling with Track Line" sample code (the track line is drawn in a dynamic layer).

Best Regards
Peter Kwan