- Autoscaling for TextRulers

From: Treutwein Bernhard <"Treutwein>
Date: Fri, 20 Jan 2006 09:17:03 +0100

----boundary-LibPST-iamunique-298088717_-_-
Content-type: text/plain

Hey Folks,

in my understanding TextRulers have Tabs at a "fixed"
spacing in terms of "universal units".

>From time to time I would like to have the spacing fixed
in terms of something like "character counts".

This would imply that TextRulers auto-rescale themselves
when I (or anyone else) changes the font size.

Does somebody know a ready made solution, or have some
hints how to manage that.

I know already that I can set tab stops according to the
length of a string, i.e., by using:

TextRulers.AddTab(ru, f.attr.font.StringWidth("Testit"));

where ru is the current ruler and f is TextModels.Writer
(i.e. the rider of the current TextMappers.Formatter)

Maybe I need an extension of ruler, which has a new
property for being bound to the current font ...
--
	Bernhard Treutwein
	Bernhard.Treutwein(at)verwaltung uni-muenchen de (work)
	BdT(at)wildwein de (home)
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy----boundary-LibPST-iamunique-298088717_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhleSBGb2xrcyxccGFyDQpccGFyDQppbiBteSB1
bmRlcnN0YW5kaW5nIFRleHRSdWxlcnMgaGF2ZSBUYWJzIGF0IGEgImZpeGVkIiBccGFyDQpzcGFj
aW5nIGluIHRlcm1zIG9mICJ1bml2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yZCBUcmV1dHdlaW5ccGFyDQpcdGFiIEJlcm5oYXJkLlRy
ZXV0d2VpbihhdCl2ZXJ3YWx0dW5nIHVuaS1tdWVuY2hlbiBkZSAod29yaylccGFyDQpcdGFiIEJk
VChhdCl3aWxkd2VpbiBkZSAoaG9tZSlccGFyDQpccGFyDQotLS0gQmxhY2tCb3hccGFyDQotLS0g
c2VuZCBzdWJqZWN0IEhFTFAgb3IgVU5TVUJTQ1JJQkUgdG8gYmxhY2tib3hAb2Jlcm9uLmNofX0A
ZXV0d2VpblxwYQ=
----boundary-LibPST-iamunique-298088717_-_---
Received on Fri Jan 20 2006 - 09:17:03 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:05 UTC