Re: [BLACKBOX] 'unit'

From: [at]} <Aubrey.McIntosh{>
Date: Tue, 4 Mar 2008 17:38:30 -0600

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

My Today/Rsrc/Menus.odc file looks like this. I've been reading
documentation and source for much of the week. I seem to have
forgotten much since OFrames or whatever came out.


MENU "Search"
        "Search In Sources" "" "TextCmds.InitFindDialog;
DevSearch.SearchInSources" "TextCmds.SelectionGuard"
        "Search In Docu (Case Sensitive)" "" "TextCmds.InitFindDialog;
DevSearch.SearchInDocu('s')" "TextCmds.SelectionGuard"
        "Search In Docu (Case Insensitive)" "" "TextCmds.InitFindDialog;
DevSearch.SearchInDocu('i')" "TextCmds.SelectionGuard"
        "Compare Texts" "" "DevSearch.Compare" "TextCmds.FocusGuard"
END

MENU "Alm01Gather"
        "Gather the Sources" "" "TextCmds.InitFindDialog; Alm01Gather.Order;
StdCmds.PasteView" "TextCmds.SelectionGuard"

END


On Tue, Mar 4, 2008 at 5:33 PM, Douglas G. Danforth
<Danforth{([at]})nowhere.xy
>
> 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
> <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
>
>
>
>
>
>
>
> ---- 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-1752943979_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIE15IFRvZGF5L1JzcmMvTWVudXMub2RjIGZpbGUg
bG9va3MgbGlrZSB0aGlzLiAgSSd2ZSBiZWVuIHJlYWRpbmdccGFyDQpkb2N1bWVudGF0aW9uIGFu
ZCBzb3VyY2UgZm9yIG11Y2ggb2YgdGhlIHdlZWsuICBJIHNlZW0gdG8gaGF2ZVxwYXINCmZvcmdv
dHRlbiBtdWNoIHNpbmNlIE9GcmFtZXMgb3Igd2hhdGV2ZXIgY2FtZSBvdXQuXHBhcg0KXHBhcg0K
XHBhcg0KTUVOVSAiU2VhcmNoIlxwY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AgLURvdWcgRGFuZm9ydGhc
cGFyDQo+XHBhcg0KPlxwYXINCj4gIC0tLS1ccGFyDQo+ICBUbyB1bnN1YnNjcmliZSwgc2VuZCBh
IG1lc3NhZ2Ugd2l0aCBib2R5ICJTSUdOT0ZGIEJMQUNLQk9YIiB0b1xwYXINCj4gTElTVFNFUlZA
TElTVFMuT0JFUk9OLkNIXHBhcg0KPlxwYXINCj5ccGFyDQo+XHBhcg0KPlxwYXINCj5ccGFyDQo+
XHBhcg0KPlxwYXINCj4gIC0tLS0gVG8gdW5zdWJzY3JpYmUsIHNlbmQgYSBtZXNzYWdlIHdpdGgg
Ym9keSAiU0lHTk9GRiBCTEFDS0JPWCIgdG9ccGFyDQo+IExJU1RTRVJWQExJU1RTLk9CRVJPTi5D
SFxwYXINClxwYXINClxwYXINClxwYXINCi0tIFxwYXINCi0tIFxwYXINCkF1YnJleSBNY0ludG9z
aCwgUGguRC5ccGFyDQoxNTAyIERldm9uIENpcmNsZVxwYXINCkF1c3RpbiBUWCA3ODcyMy0xODE0
XHBhcg0KaHR0cDovL2hvbWUuZ3JhbmRlY29tLm5ldC9+YW1jaW50b3NoL2F1YnJleS9TZWFyY2gv
XHBhcg0KXHBhcg0KXHBhcg0KLS0tLVxwYXINClRvIHVuc3Vic2NyaWJlLCBzZW5kIGEgbWVzc2Fn
ZSB3aXRoIGJvZHkgIlNJR05PRkYgQkxBQ0tCT1giIHRvIExJU1RTRVJWQExJU1RTLk99fQAxb2cZ
MCEDRPsn0Co=
----boundary-LibPST-iamunique-1752943979_-_---
Received on Wed Mar 05 2008 - 00:38:30 UTC

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