Meta.Item & Controls

From: [at]} <support{>
Date: Fri, 21 Feb 2003 10:20:51 +0100

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

Juan Antonio,

BlackBox invalidates in procedure Controls.OpenLink the field c.item if the
Meta item is not bound to a variable, i.e. c.item.obj # Meta.varObj. The
reason for this is that although Meta is okay for variable binding it can
only call simple procedures. Dialog.Call implements a much more useful
command interpreter that allows you for example to execute the following
little script "StdLog.String('A'); StdLog.String('B'); StdLog.Ln" without
any need to deal with Meta items.

How does a control actually call the command? As mentioned before
Dialog.Call is the right tool to achieve this job. You have to include into
your control's HandleCtrlMsg2 method something along the following lines

    ...
    Dialog.Call(c.prop.link)
    ...

ObxButtons, although just implementing a simple view instead of a full
fledged control, does exactly this. So, maybe you will also have a look at
that example for more information.

Cheers
Marc,
Oberon microsystems, Inc.


> -----Original Message-----
> From: Juan Antonio Ortega [mailto:amortega{([at]})nowhere.xy
> Sent: Donnerstag, 20. Februar 2003 21:23
> To: blackbox{([at]})nowhere.xy
> Subject: Meta.Item & Controls
>
>

> Hello everyone,
>
> When working with controls, the Controls.Control type has the read-only
> variable "item". This variable works nice when the control is linked to a
> variable. However, if I try to link the control to a procedure,

> item.Valid()
> is always false and item.obj, undefined. Could anyone explain this
> behaviour? Thanks.
>
> Regards,
> Juan Antonio

>

--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.


----boundary-LibPST-iamunique-121049330_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.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GFib3ZlIGFkZHJlc3MuXHBhcg0KXHBhcg0KU2VuZCBhbnkgcHJvYmxlbSByZXBvcnRzIG9y
IHF1ZXN0aW9ucyByZWxhdGVkIHRvIHRoaXMgZW1haWwgbGlzdCB0byB0aGUgbGlzdCBvd25lciBh
dFxwYXINCiAgIG93bmVyLWJsYWNrYm94QG9iZXJvbi5jaFxwYXINClxwYXINCkN1cnJlbnQgcG9z
dGluZyBwb2xpY3k6XHBhcg0KXHBhcg0KYSkgVG8gcG9zdCB5b3Ugc2hvdWxkIHVzZSB0aGUgc2Ft
ZSBhZGRyZXNzIGJ5IHdoaWNoIHlvdSBhcmUgc3Vic2NyaWJlZCB0byB0aGUgbWFpbGluZyBsaXN0
LiBUaGF0IHdheSwgdGhlIGxpc3Qgc2VydmVyIHdpbGwgcmVjb2duaXplIHlvdSBhcyBzdWJzY3Jp
YmVyIGFuZCBmb3J3YXJkIHlvdXIgcG9zdGluZyBpbW1lZGlhdGVseSwgd2l0aG91dCBjcmVhdGlu
ZyBhbnkgb3ZlcmhlYWQuXHBhcg0KXHBhcg0KYikgSWYsIGZvciBzb21lIHJlYXNvbiwgeW91IGNh
bm5vdCBwb3N0IGZyb20gdGhlIGFkZHJlc3MsIGJ5IHdoaWNoIHlvdSBhcmUgc3Vic2NyaWJlZCwg
eW91ciBtZXNzYWdlIHdpbGwgYmUgbW9kZXJhdGVkIHRvIGF2b2lkIHNwYW0uIFBsZWFzZSB1bmRl
cnN0YW5kIHRoYXQgbW9kZXJhdGlvbiB3aWxsIG9mdGVuIGNhdXNlIHNvbWUgZGVsYXksIGluIHBh
cnRpY3VsYXIgb3ZlciB3ZWVrZW5kcyBvciBob2x5ZGF5c319AGVDdHJs


----boundary-LibPST-iamunique-121049330_-_---
Received on Fri Feb 21 2003 - 10:20:51 UTC

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