Re: [BLACKBOX] 'unit'

From: [at]} <Aubrey.McIntosh{>
Date: Tue, 4 Mar 2008 16:57:20 -0600

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

Will HostWindows.Directory do it?


On Tue, Mar 4, 2008 at 4:17 PM, Douglas G. Danforth
<Danforth{([at]})nowhere.xy
> If one has a pointer, f, to a Ports.Frame or Views.Frame then one has access
> to f.unit. If one does not have such a pointer then how can one find the
> value of the unit?
>
> For example, when implementing HandlePropMsg for MyView which is
> an extension of Views.View the specification of size in Properties.SizePref
> has the quantities msg.h and msg.w specified in universal units. If I knew
> unit this would be trivial but I don't. Am I expected to do some
> calculations
> based on 1/36000 of a millimeter and pixel size? That sounds like a kludge.
> I have not been able to find any module within the BB framework that exports
> the value of 'unit'. Only Ports.Frame and Views.Frame export the unit but
> embedded in the pointers to a frame.
>
> What must I do to obtain the value of 'unit', or equivalently be able to
> specify
> sizes in universal units when I think in pixels?
>
> -Doug Danforth
>
>
> ----
> To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
>



-- 
-- 
Aubrey McIntosh, Ph.D.
1502 Devon Circle
Austin TX 78723-1814
http://home.grandecom.net/~amcintosh/aubrey/Search/
----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-833479148_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMF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VG8gdW5zdWJzY3JpYmUs
IHNlbmQgYSBtZXNzYWdlIHdpdGggYm9keSAiU0lHTk9GRiBCTEFDS0JPWCIgdG8gTElTVFNFUlZA
TElTVFMuT0JFUk9OLkNIXHBhcg0KfQ==
----boundary-LibPST-iamunique-833479148_-_---
Received on Tue Mar 04 2008 - 23:57:20 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:59 UTC