- Autoscaling for TextRulers

From: Campbell, Robert D (SELEX) (UK Edinburgh) <"Campbell,>
Date: Mon, 23 Jan 2006 08:56:33 +0000

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


Bernhard

Maybe you could do something by
putting a 'Wrapper' on the Ruler?

Robert

>> -----Original Message-----
>> From: blackbox{([at]})nowhere.xy
>> Treutwein Bernhard
>> Sent: 20 January 2006 08:17
>> To: BlackBox Mailing List
>> Subject: [BlackBox] - Autoscaling for TextRulers
>>

>>

>> 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)

********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy



----boundary-LibPST-iamunique-860610480_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmb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----boundary-LibPST-iamunique-860610480_-_---
Received on Mon Jan 23 2006 - 09:56:33 UTC

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