High dpi support - PaintSortIndicator does not scale

Posted by: info on 16 June 2020, 8:15 pm EST

    • Post Options:
    • Link

    Posted 16 June 2020, 8:15 pm EST

    The PaintSortIndicator rectangle does not scale. (V12)

    It always seems to remain at 15x15 px.

    Any suggestions?

    Thanks in advance

    -PietF

  • Posted 18 June 2020, 3:20 am EST

    Hello,

    Have you tried using the settings described in the following documentation page?:

    http://help.grapecity.com/spread/SpreadNet12/WF/webframe.html#spwin-dpisupport.html

    Regards,

  • Posted 18 June 2020, 4:34 am EST

    Well Ruchir, I had a lot of issues with scaling in the past (it’s not stable per monitor) Also look at my post of 27-oct-2019

    I found out that if you scale per monitor, turn off SpreadScaleMode and set row heights etc. by code all suddenly works as expected. I’ts also very stable now.

    Is there a way to set de preffered location by code?

    PaintSortIndicator does not return the correct rectangle.

    Kind Regards,

    -PietF

  • Posted 19 June 2020, 8:57 pm EST

    Hi,

    Is there a way to set de preffered location by code? PaintSortIndicator does not return the correct rectangle.

    Do you meant to ask for how to define the sort indicator location? If yes, there is no a way to move the position of the sort indicator.

    However, if you create a custom celltype, you can create your own headers and implement your own painting of the sort indicator. You would also need to catch when it is clicked, so you can programmatically sort the Spread.

    You can learn more about how to create custom cell type by referring to the following documentation link:

    https://www.grapecity.com/spreadnet/docs/v13/online-win/spwin-celltype-custom.html

    Regards,

  • Posted 22 June 2020, 7:06 pm EST

    Hi Ruchir,

    Using already a custom ColumnHeaderRenderer which inherits from the FlatColumnHeaderRenderer. Another custom cell type is not my first choice.

    Setting SpreadScaleMode to ScaleMode.ZoomDpiSupport does not change anything. The PaintSortIndicator rectangle (clickable area) doesnt even change by zooming Spread. So I think this could be a bug.

    Regards,

    -PietF

  • Posted 24 June 2020, 12:43 am EST

    Hello,

    Can you share your application (Stripped down) along with the steps you are following when you are facing the issue? This will help us to escalate the problem if it’s an issue.

    Regards,

    Ruchir

Need extra support?

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

Learn More

Forum Channels