Re: [BLACKBOX] Control for Text fields?

From: F.V.Tkachov <"F.V.Tkachov">
Date: Thu, 27 Nov 2008 10:29:17 +0300

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

Hi Doug,

The form in focus has a FormModels.Model as a model
(Controllers.Focus***).

You probably know the position of the view you want in the form, then just
use the FormModels.Model.ViewAt(x, y): View.
This gets you your TextViews.View, and the text model via
view.ThisModel().

Even if you dont know the position, a straightforward solution of
course exists within BB, but is a bit more complex. I hope this is not
your case :-)

cheers
fyodor


On Tue, 25 Nov 2008, Douglas G. Danforth wrote:

> Wojtek,
> That's great!
> Now how do I get a handle on the text that has been typed in?
>
> That is, one usually has for an edit field, say,
>
> VAR buf*: ARRAY 32 OF CHAR;
>
> where buf can be accessed within the program to determine the
> value entered into the edit field by the user.
>
> In your scheme, how can I access the value entered by the user?
>
> -Doug
>
>
> Wojtek Skulski wrote:
>> Doug:
>>
>> 1. make a new empty form
>>
>> 2. Open an editor window (CTRL-N)
>>
>> 3. Type something in that window
>>
>> 4. Select its content CTRL-space
>>
>> 5. Drag-n-drop onto the form
>>
>> 6. Resize the text control so it fits your form
>>
>> 7. Focus the Text control and start typing into it,
>> italicising, bolding, etc.
>>
>> W.
>>
>>
>> On Tue, 25 Nov 2008, Douglas G. Danforth wrote:
>>
>>
>>> Hello,
>>> I don't find a Control for 'TextModels".
>>>
>>> I would like to type in text to a field and then
>>> use BOLD, or UNDERSCORE, or ITALIC
>>> on selected characters the same way that can
>>> be done in documents.
>>>
>>> There certainly is Controls->Insert Edit Field
>>> but attributes do not seem to apply.
>>>
>>> Have I missed such a control, one that works on
>>> a TextModels.Model?
>>>
>>> -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
>>
>>
>>
>
>
> ----
> 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-1614728942_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhpIERvdWcsXHBhcg0KXHBhcg0KVGhlIGZvcm0g
aW4gZm9jdXMgaGFzIGEgRm9ybU1vZGVscy5Nb2RlbCBhcyBhIG1vZGVsIFxwYXINCihDb250cm9s
bGVycy5Gb2N1cyoqKikuXHBhcg0KXHBhcg0KWW91IHByb2JhYmx5IGtub3cgdGhlIHBvc2l0aW9u
IG9mIHRoZSB2aWV3IHlvdSB3YW50IGluIHRoZSBmb3JtLCB0aGVuIGp1c3QgXHBhcg0KdXNlIHRo
ZSBGb3JtTW9kZWxzLk1vZGVsLlZpZXdBdCh4LCB5KTogVmlldy5ccGFyDQpUaGlzIGdldHMgeW91
IHlvdXIgVGV4dFZpZXdzLlZpZXcsIGFuZCB0aGUgdGV4dCBtb2RlbCB2aWEgXHBhcg0Kdmlldy5U
aGlzTW9kZWwoKS5ccGFyDQpccGFyDQpFdmVuIGlmIHlvdSBkb250IGtub3cgdGhlIHBvc2l0aW9u
LCBhIHN0cmFpZ2h0Zm9y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_---
Received on Thu Nov 27 2008 - 08:29:17 UTC

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