TaskDialog - color text

TaskDialog - color text

RECArchi
Collaborator Collaborator
565 Views
3 Replies
Message 1 of 4

TaskDialog - color text

RECArchi
Collaborator
Collaborator

I want to color the text of the results I get from my plugin (green for right values - red for wrong values). Is it possible using Revit TaskDialogs? Or do I need to use WPF (textblock with green/red foreground) ?

Thank you in advance.

Sincerely.

0 Likes
566 Views
3 Replies
Replies (3)
Message 2 of 4

aignatovich
Advisor
Advisor

Hi!

 

Autodesk.Revit.UI.TaskDialog has a limited support of a HTML in main and expanded content, for example, it supports hyperlinks. You can try it, but I'm pretty sure, you need to create your own UI using WPF or WinForms

0 Likes
Message 3 of 4

Anonymous
Not applicable

Dear @jeremytammik and others,

may I draw your attention in this regard please. I'm going through the same problem, so instead posting another similar question , I am just bringing this one in front.

When the task dialogue box will be displayed as an output, I would like to change color or font size of particular line's  (so that the particular line become eye catching). I am currently working with stringbulider which does not contain any font variation. Is there any other simple way (except WinForms) to do the work?

0 Likes
Message 4 of 4

jeremy_tammik
Alumni
Alumni

Thank you for reusing the question instead of raising a new one.

 

Thank you even more to Alexander for already answering it.

 

I fully concur with Alexander's statements above.

 

Best regards,

 

Jeremy

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes