How to prevent Spread 6.0 from redrawing while setting data?

Posted by: bemai on 8 September 2017, 2:12 pm EST

  • Posted 8 September 2017, 2:12 pm EST

    Hi,

     I'm using Spread 6.0 C bindings in a C/C++ application.

     I need to freeze the entire spread for a short period of time to prevent it from displaying data I set (with SSSetFloat()) during the freeze.

    My exact use case is :

    - Show the spread and allow the user to choose between three kinds of rounding (no rounding, unit rounding and thousand rounding),

    - When the user wants to print the spread, we switch rounding off as we want full values to be printed, but we don't want the spread to be refreshed on screen,

    - Print the spread,

    - Go back to the user chosen rounding (still without displaying the spread)

     So, is there a way to tell the spread to stop redrawing ? (SSB_REDRAW is not the way to go)

     Thanks

  • Replied 8 September 2017, 2:12 pm EST

    Hello,

    You might set spread's visible property to False in order to prevent any painting to happen with the Timer.I don't find any other way to achieve this as Redraw property can be used to stop flickering only.

     

    Thanks,

     

Need extra support?

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

Learn More

Forum Channels