Lebans RTF2 Control and field margins

  • Thread starter Thread starter The Goulds
  • Start date Start date
T

The Goulds

Hi!

After looking at the documentation for the RTF control and testing the code,
I have a question:

How do I set or change the field margins? I get a lot of whitespace on the
right where I could squeeze more text on a given line (I am using fonts
sized at between 3 & 4 points).

Thanks!

Mike
 
There are no margin props exposed by the control. Whether the last
character or not will fit is determined by the control and cannot be
directly changed. Just make the control wider then the required text. If
at rendering time the character will actaully fit on the line then it
will be rendered.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Thanks for the reply, Stephen! Glad you are recovering nicely!

For the insect specimen label generators, the field actually spans the
entire report (which is all of .25" high (cangrow=true) x .625" wide), so
I've kind of hit the limit. I'll throw the margins attribute in the
suggestion box for a future release (please?).

Incidentally, I used your workaround for CanGrow/CanShrink in this same
context and had variable results - either there was a lot of whitespace at
the bottom, or there'd be half a line height of text, or it'd work fine - I
might play with the math a bit. It probably doesn't help that I insist on
using small point sizes (the project requires it).

Thanks for your time and all your hard work!

Mike
 
Back
Top