Print Page | Close Window

CXTPTaskDialog markup problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=17904
Printed Date: 17 November 2024 at 12:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTaskDialog markup problem
Posted By: roan98dk
Subject: CXTPTaskDialog markup problem
Date 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



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



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