Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > MarkupLabel Control
  New Posts New Posts RSS Feed - cannot get CXTPMarkupStatic to work
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

cannot get CXTPMarkupStatic to work

 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: cannot get CXTPMarkupStatic to work
    Posted: 07 September 2018 at 10:11am
I am new to Markup. I added a static control to a dialog, changed its type to CXTPMarkupStatic and in OnInitDialog I call m_ctrl_hint_coupon.SetMarkupText(...). I copied the code from the CMarkupSampleDlg sample. 

When I run the code, there is just a white rectangle there. What is missing? Is there some setup needed?


Thanks
Vaclav

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


Joined: 22 June 2005
Status: Offline
Points: 235
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post Posted: 10 September 2018 at 7:37am
No special setup is necessary. You need to set the style SS_NOTIFY if you want links to work, if no links/hoover effects you don't have to set it.

... but you have used SubclassDlgItem / DoDataExchange(CDataExchange* pDX) to initialize it? 
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
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: 10 September 2018 at 9:31am
Problem resolved.
Call to parent OnInitDialog was missing in OnInitDialog()
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.156 seconds.