Re: [BLACKBOX] Control for Text fields?

From: Douglas G. Danforth <"Douglas>
Date: Thu, 27 Nov 2008 13:18:26 -0800

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

Fyodor,
Thank you very much. That helps.
I also now remember Wojtek's comments about scanning
through the objects in a form to find a desired control.

So I should be able to do this now.

The alternative is to create a new 'Text field' control that looks
just like an 'Edit field'. Since I have done without such a thing
for many years and since I have not hear a bellowing stamped
of people asking for one I may put that on the back burner.

-Doug


F.V.Tkachov wrote:
> 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
>
>


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-876712343_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEZ5b2RvcixccGFyDQpUaGFuayB5b3UgdmVyeSBt
dWNoLiAgVGhhdCBoZWxwcy5ccGFyDQpJIGFsc28gbm93IHJlbWVtYmVyIFdvanRlaydzIGNvbW1l
bnRzIGFib3V0IHNjYW5uaW5nXHBhcg0KdGhyb3VnaCB0aGUgb2JqZWN0cyBpbiBhIGZvcm0gdG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