cannot get CXTPMarkupStatic to work |
Post Reply |
Author | |
vjedlicka
Senior Member Joined: 04 September 2007 Status: Offline Points: 122 |
Post Options
Thanks(0)
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 |
|
Fredrik
Senior Member Joined: 22 June 2005 Status: Offline Points: 235 |
Post Options
Thanks(0)
|
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
|
|
vjedlicka
Senior Member Joined: 04 September 2007 Status: Offline Points: 122 |
Post Options
Thanks(0)
|
Problem resolved.
Call to parent OnInitDialog was missing in OnInitDialog()
|
|
Thank you
Vaclav --------------------- ToolkitPro 20.1.0 VS2010-2022, Windows 11 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |