Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTPTaskDialog markup problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPTaskDialog markup problem

 Post Reply Post Reply
Author
Message
roan98dk View Drop Down
Groupie
Groupie


Joined: 13 February 2011
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote roan98dk Quote  Post ReplyReply Direct Link To This Post Topic: CXTPTaskDialog markup problem
    Posted: 17 February 2011 at 7:58am
I am trying to create a simple CXTPTaskDialog, but cannot get it to display properly. 
The sample code at the bottom is from the MarkupSample and it works perfectly there:

working

However when I transfer the exact same code to my own app it displays in a different way:

notworking

The white frame does not appear and "Main Instruction" especially is different (not the same font). 

CXTPTaskDialog td;
td.SetMainInstruction(_T("<TextBlock>Main <Italic ToolTip='Instruction'>Instruction</Italic></TextBlock>")); td.SetContent(_T("<TextBlock><Run>Content</Run> <Bold>Contet</Bold> <Run Foreground='Red'>Content</Run> <Hyperlink Tag='DoNothing' ToolTip='This is Link'>Link</Hyperlink></TextBlock>")); td.EnableMarkup(); td.DoModal();

The only difference I can think of in the MarkupSample compared to my app is that I use the new Office2010 dlls (from 15.0.1) for the theme and some resize dialogs use CXTPOffice2007FrameHook.

There must be something that I overlooked.

Regards
Ronnie
Back to Top
roan98dk View Drop Down
Groupie
Groupie


Joined: 13 February 2011
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote roan98dk Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2011 at 8:56am
I managed to find the solution myself (for now):

EnableMessageBoxStyle(BOOL bEnable = TRUE)

hmm, perhaps I will go for another solution anyway since I suddenly remembered that I also want to keep same framedesign as the main app.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.

This page was generated in 0.125 seconds.