Hello,
I have to develop a input program for iOS. So the size of my TRichView needs to be fixed (only the width).
I tried the following code but this doesnt work very well.
You can fix document width by assigning it to RichViewEdit.MinTextWidth and MaxTextWidth properties.
Make sure that rvoClientTextWidth is excluded from RichViewEdit.Options.
I recommend to assign margins to RichViewEdit, so that the ruler will be updated according to them, not vice versa.
Assigning RightMargin to RichViewEdit works fine but LeftMargin does not.
I want that the allowed space, where the user can type in, is centered in the TRichViewEdit.
Like this:
_____________________
|---------__Text__---------|
|---------_Bla bla_ ---------|
|---------________---------|
|---------________---------|
|---------________---------|
|---------________---------|
|---------________---------|
|---------________---------|
|---------________---------|
|____________________|
I can make an example on changing margins on resizing, but may be you can consider using a table having a fixed width and inserted in a centered paragraph?