display html doc

Hello, i'm trying to display some text as html.
I was wondering if somebody knows this.
I started looking in
dotnetobject "System.Windows.Forms.HtmlWindow"
dotnetobject "System.Windows.Forms.WebBrowser"
and so.. but dont know if this will work.
Any thoughts?
code so far..

--MaxMail
rollout roll_maxmail "Jos MaxMail"
(
	edittext edtTo "To"
	edittext edtSubject "Subject"
	dotNetControl TextMailControl "System.Windows.Forms.TextBox" height:100
	on roll_maxmail open do
	(
	TextMailControl.AcceptsReturn = true;
	TextMailControl.AcceptsTab = true;
	TextMailControl.WordWrap = false;
	TextMailControl.Multiline = true;
	TextMailControl.ScrollBars = TextMailControl.ScrollBars.both;
	)
 
	on TextMailControl keydown pressedKey do 
	(
		if (pressedKey.keyvalue == 13) do TextMailControl.paste("\r\n");
 
	)
)
createDialog roll_maxmail 300 165 style:#(#style_toolwindow,#style_sysmenu)

I want the let the user make text bold, colors and so on..

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
barigazy's picture

You not need to writte whole

You not need to writte whole string "System.Windows.Forms.TextBox".
Just type "TextBox" , it's shorter.
Are you try with *RichTextBox*?
I don't know is this help but I use RichTextBox here
http://www.scriptspot.com/3ds-max/scripts/mono-text-edit

barigazy

jos's picture

super, that should help me

super, that should help me alot! thank you very much. It's for writing a mail. I'll look into it!

jos's picture

found it, sorry for

found it, sorry for bothering!
works perfect with
dotnetobject "System.Windows.Forms.WebBrowser"

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.