Commenting those lines worked but only when I set UnitsProgram to pixels in design mode.
It is because the demo contains this line in TForm3.FormCreate:
Code: Select all
RVAControlPanel1.UnitsDisplay := SRichViewEdit1.UnitsProgram;
You can also change units in dialogs using the combobox in the toolbar. So the user, if he/she wants to assign table size in pixels, may switch to pixels and back when necessary.
It would be too difficult to define units for each dialogs separately.
Currently, there are the following rules:
- if units<>pixels, dialogs show large sizes in these units, small sizes - in points
- border widths can be always defined in pixels (if RVAControlPanel.PixelBorders=True). Currently, it is highly recommended for ScaleRichView, because its drawing precision is 1 pixel, so defining border widths in points makes no sense; in future, we will increase a drawing precision.
The only exception was made for pictures. Their size can be defined in %, the specified units and pixels. Sorry, I do not think that a table size should be an exception like this.
PS: probably, we will allow entering units directly in editors, like in MS Word, but not in near future.