CXTPMarkupListBox rendered wrong |
Post Reply |
Author | |
vjedlicka
Senior Member Joined: 04 September 2007 Status: Offline Points: 122 |
Post Options
Thanks(0)
Posted: 27 September 2018 at 4:58am |
I am trying to replace a normal CListBox with a CXTPMarkupListBox I changed the declaration in .h file to CXTPMarkupListBox m_ctrl_formats; Then I fill the listbox using this code: CString ls_test = _T("<TextBlock Padding='2, 0, 2, 0'><Bold>Hi</Bold> <Run Foreground='Green'>there</Run></TextBlock>"); XTP_MARKUP_LISTITEM* pItem = new XTP_MARKUP_LISTITEM(&m_ctrl_formats); pItem->Resolve(ls_test); int li_index = m_ctrl_formats.AddString((LPCTSTR)pItem); Here is the result: |
|
Thank you
Vaclav --------------------- ToolkitPro 20.1.0 VS2010-2022, Windows 11 |
|
vjedlicka
Senior Member Joined: 04 September 2007 Status: Offline Points: 122 |
Post Options
Thanks(0)
|
Problem fixed by setting the "owner draw" property to "variable"
|
|
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 |