Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > MarkupLabel Control
  New Posts New Posts RSS Feed - performance of TextBlocks
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

performance of TextBlocks

 Post Reply Post Reply
Author
Message
vjedlicka View Drop Down
Senior Member
Senior Member


Joined: 04 September 2007
Status: Offline
Points: 122
Post Options Post Options   Thanks (0) Thanks(0)   Quote vjedlicka Quote  Post ReplyReply Direct Link To This Post Topic: performance of TextBlocks
    Posted: 11 December 2018 at 11:54am
StackPanel with 2000 TextBlocks renders too slowly.
Is there a way to make it faster?
It seems most time is spent with function CFont::GetLogFont

Thanks
Vaclav


Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11
Back to Top
Marco1 View Drop Down
Senior Member
Senior Member


Joined: 16 January 2004
Location: Germany
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marco1 Quote  Post ReplyReply Direct Link To This Post Posted: 13 December 2018 at 11:23am
Perhaps you can cache the last used font.
This will speed up the lookup, if the font hasn't changed.
But you have to modify the CJ code, or you could override the according class function.
Pls try.

Back to Top
vjedlicka View Drop Down
Senior Member
Senior Member


Joined: 04 September 2007
Status: Offline
Points: 122
Post Options Post Options   Thanks (0) Thanks(0)   Quote vjedlicka Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2018 at 5:37am
ok, maybe I should use different element instead of the TextBlock.

Thanks
Vaclav

Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.