Re: [BLACKBOX] How do I embed text as in Quick Start documentation?

From: [at]} <Bob>
Date: Sun, 4 Apr 2010 23:03:08 +0100

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

>
> Hello:
>
> I am new to BlackBox and have searched everywhere for how to
> embed text, so its focus is clickable and a box appears
> around it. See the documentation Quick Start examples.
>

the document Std/Docu/Links explains how to create a hyperlink

> I have tried adapting an existing Quick-Start documentation
> file but the command is not recognized and I still don't know
> how the text is embedded.
>
> I want to add a Commander button so the command it runs is
> applied to the boxed text preceding it, but is not applied to
> the Commander itself.
>
> Example:
>
> Some text here should show a box when clicked
>
> <Circle with Exclamation Mark inside it> CommandToRun
>

I'm not sure I understand what you mean about 'boxed text'. However, to make
the command operate on a stretch of text you can program the command to
interpret the current selection, whether it precedes the commander or is in
a different text or wherever. The examples include code for interpreting the
selection.

> So far, I do not know how to embed the text so right now it
> is just ordinary non-embedded text followed by the Commander button.
>
> Instead, I have had to use the Menu system to run the
> command, but this only works when I highlight the text (with
> the Commander button deleted).
>
> Is there a way to guard the Commander button and command so
> it is excluded from processing when you click on the
> Commander, and only the preceding text is processed?
>

It is up to your command code to decide when to stop interpreting text, or
to ignore text parts it's not interested in.

Similarly - and this may be useful for your boxed text - you can code the
command to start reading the focus text - see module In for examples.

Hope this helps.
Bob


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-608746771_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1x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FyDQo+IFxwYXINCj4gSXMgdGhlcmUg
YSB3YXkgdG8gZ3VhcmQgdGhlIENvbW1hbmRlciBidXR0b24gYW5kIGNvbW1hbmQgc28gXHBhcg0K
PiBpdCBpcyBleGNsdWRlZCBmcm9tIHByb2Nlc3Npbmcgd2hlbiB5b3UgY2xpY2sgb24gdGhlIFxw
YXINCj4gQ29tbWFuZGVyLCBhbmQgb25seSB0aGUgcHJlY2VkaW5nIHRleHQgaXMgcHJvY2Vzc2Vk
P1xwYXINCj4gXHBhcg0KXHBhcg0KSXQgaXMgdXAgdG8geW91ciBjb21tYW5kIGNvZGUgdG8gZGVj
aWRlIHdoZW4gdG8gc3RvcCBpbnRlcnByZXRpbmcgdGV4dCwgb3JccGFyDQp0byBpZ25vcmUgdGV4
dCBwYXJ0cyBpdCdzIG5vdCBpbnRlcmVzdGVkIGluLlxwYXINClxwYXINClNpbWlsYXJseSAtIGFu
ZCB0aGlzIG1heSBiZSB1c2VmdWwgZm9yIHlvdXIgYm94ZWQgdGV4dCAtIHlvdSBjYW4gY29kZSB0
aGVccGFyDQpjb21tYW5kIHRvIHN0YXJ0IHJlYWRpbmcgdGhlIGZvY3VzIHRleHQgLSBzZWUgbW9k
dWxlIEluIGZvciBleGFtcGxlcy5ccGFyDQpccGFyDQpIb3BlIHRoaXMgaGVscHMuXHBhcg0KQm9i
XHBhcg0KXHBhcg0KXHBhcg0KLS0tLVxwYXINClRvIHVuc3Vic2NyaWJlLCBzZW5kIGEgbWVzc2Fn
ZSB3aXRoIGJvZHkgIlNJR05PRkYgQkxBQ0tCT1giIHRvIExJU1RTRVJWQExJU1RTLk9CRVJPTi5D
SFxwYXINCn0=
----boundary-LibPST-iamunique-608746771_-_---
Received on Mon Apr 05 2010 - 00:03:08 UTC

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