Form losing focus when adding linemarker to flexchart

Posted by: detlev.patz on 23 May 2024, 4:21 am EST

    • Post Options:
    • Link

    Posted 23 May 2024, 4:21 am EST

    Hello,

    we are using flexchart 2023v3(631) Winforms Edition with Visual Studio 2019 and C#.

    I noticed that everytime i add a new linemarker to a flexchart the form, in which the flexchart is, loses focus.

    You can see that even in your sample application “FlexChart Explorer” (.NET Framework 4.8). Scroll down to Features/Chart Elements/Line Markers and click on “Custom Content” or “Custom Drawing”. After clicking on it the main window/form is not in focus (=deactivated). You need to click in it, to activate it again.

    I know I could use form.Activate to activate the form afterwards but that produces unwanted flickering each time I add a line marker.

    Is there a way to add linemarkers without losing focus ?

    best regards

    Detlev

  • Posted 24 May 2024, 5:27 am EST

    Hello Detlev,

    We were able to observe the behavior. We have forwarded it to the developers to get their insights. Rest assured, we’ll update you once we get the necessary information.

    [Internal Tracking ID: C1WIN-32198]

    Regards,

    Uttkarsh.

  • Posted 27 May 2024, 9:11 am EST

    Hello Detlev,

    You can use FlexChart’s BeginUpdate and EndUpdate methods as a workaround to reduce the flicker further. Please refer to the attached sample for the same. (see FlexChart_Flicker_Workaround.zip)

    The flickering on our end is not very noticeable. Is the behavior on your end the same or you face noticable flickering? Also, please let us know if the flickering reduces after using BeginUpdate and EndUpdate methods on your end.

    Regards,

    Uttkarsh.

  • Posted 29 May 2024, 3:52 am EST

    Hello Uttkarsh,

    adding BeginUpdate/EndUpdate seems to have no effect for me.

    In your sample application for me it sometimes flickers, sometimes doesnt.

    It might depend on the time the system or windows needs to redraw the window/border.

    But usually it is noticeable on my system.

    Best regards

    Detlev

  • Posted 30 May 2024, 6:48 am EST

    Hello Detlev,

    We apologize for any inconvenience. The provided workaround was the only available method to reduce flickering. Since this workaround isn’t effective for you, we ask for your patience while our developers work on a permanent fix. The ETA for the fix is the 2024v1 hotfix-1.

    [Internal Bug ID: C1WIN-32204]

    Thank you for your patience and cooperation.

    Regards,

    Uttkarsh.

  • Posted 5 July 2024, 9:16 am EST

    Hello Detlev,

    The issue has been fixed in the 2024v1 hotfix 1 build.

    You can download the build from ComponentOneControlPanel by going to PRODUCTS > BUILD REPOSITORY, and then:

    1. select “Inpude prerelease and hotfix versions”
    2. Under WinForms section, click update button corresponding to the .NET version
    3. select latest build from “All builds”
    4. click “UPDATE”

    ComponentOne download link: https://developer.mescius.com/componentone/download

    Regards,

    Uttkarsh.

  • Posted 19 July 2024, 6:30 am EST

    That fixed it. Thank you !

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels