Print Page | Close Window

cannot get CXTPMarkupStatic to work

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: MarkupLabel Control
Forum Description: Topics Related to Codejock MarkupLabel Control
URL: http://forum.codejock.com/forum_posts.asp?TID=23705
Printed Date: 20 April 2024 at 7:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: cannot get CXTPMarkupStatic to work
Posted By: vjedlicka
Subject: cannot get CXTPMarkupStatic to work
Date 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



Replies:
Posted By: Fredrik
Date 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


Posted By: vjedlicka
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net