No, you have to read the file into a string and then add the string to the textbox.Is there any way to directly open rtf files using opendialog with this Lib?
I haven't tried this but you should be able to set the WindowState property with the Door library1-How to alway show the MDIChild form in "FullScreen", thus being maximized within the Parent Screen Area.
Use a FormEx for the Child, not a Form. From the help for FormEx.Run2-Whenever I close the CHILD form, the app also closes...To my knowleage, this is not the normal behaviour of a child...
I haven't tried this but you should be able to set the WindowState property with the Door library
Obj1.Value = FormExChild.ControlRef
Obj1.SetProperty("WindowState", "Maximized") ' Note the American spelling of Maximised
or
Obj1.SetProperty("WindowState", 2)
:signOops: I forgot that I exposed that property already.:sign0161:I tryed the already existing "WindowState" property from FormExDesktop,
Version 1.8 now posted. At Cableguy's request this allows user editing and formatting of text.
Added SelectedRtf, SelectedText, SelectionFont, SelectionStart and SelectionLength properties. All formatting properties, Alignment, Bold, Color etc. are now assignable to selections.
Added GetSelectionFormat method. You need to use this when editing a selection to retrieve the present font attributes of the selection otherwise the most recently used font attributes will all be assigned to the selection when you change any of its attributes.
Added FontDialog.FontRef to retrieve a Font reference. You could use this with ImageLibEx or the SelectionFont property above.
Removed FontScript as it was doing nothing anyway.
I did modify it but missed one . Fixed now.the example file is un-touched, and still includes the fontscript propertie
I did modify it but missed one . Fixed now.
Are you in the right thread? This sounds more like HtmlPanel than RichtextBox! I guess you have not set a valid RenderWidth.I copied the demo html file and gif to my AppPath
Are you in the right thread? This sounds more like HtmlPanel than RichtextBox! I guess you have not set a valid RenderWidth.