GRAPH widget scrollbar issue

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • GRAPH widget scrollbar issue

    Hi,

    I have an issue with the GRAPH widget. I want the graphs to be drawn from left to right like an oscilloscope. I can achieve this behavior by using the two functions

    C Source Code

    1. GRAPH_DATA_YT_SetAlign(_ahData[i], GRAPH_ALIGN_LEFT);
    and

    C Source Code

    1. GRAPH_DATA_YT_MirrorX (_ahData[i], 1);
    .
    My virtual screen size is twice the visible screen size and the automatic horizontal scrollbar is displayed.

    And here comes the problem:
    The widget behaves correct until I stop the drawing of the graphs by selecting the "stop" checkbox and change the scrollbar position. Then the graphs will be mirrored. (see the attached images)

    For the test I used the example "WIDGET_GraphYT.c" where I changed the code so that the "MirrorX" checkbox is selected by default. Is this a bug?

    Further on I want the graph widget to auto-increment the scrollbar if the graphs reach the right border (physical size). The Scrollbar should be incremented, until the virtual screen size is reached. Is there a way to achieve this behavior?

    Hope you can help me.

    Regards Thomas
    Images
    • Before.png

      5.84 kB, 480×272, viewed 582 times
    • After.png

      5.81 kB, 480×272, viewed 466 times

    The post was edited 2 times, last by Thomas W. ().