----boundary-LibPST-iamunique-2021886449_-_-
Content-type: text/plain
Aubrey,
HostWindows.unit works! (HostWindows.dir.unit is zero and doesn't work).
Since HostWindows does not have BB documentation I did not
find it when I did a Help->Contents->Search.
Thank you very much!
-Doug
Aubrey.McIntosh{([at]})nowhere.xy
Will HostWindows.Directory do it?
On Tue, Mar 4, 2008 at 4:17 PM, Douglas G. Danforth
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
---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
----boundary-LibPST-iamunique-2021886449_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbWh0bWwxIFxkZWZmMHtcZm9udHRibA0Ke1xmMFxm
c3dpc3MgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJcZm5pbFxmY2hh
cnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBOZXc7fX0NCntc
Y29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7fQ0KXHVjMVxw
YXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyNCANCntcKlxodG1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