"acg" <
[hidden email]> wrote in message
news:
[hidden email]...
> Hello
> In other ST's, I have used Static Text, rather than EntryField (in
> ST/V) or InputField (in VW), and modified the programmatically, mainly
> to get rid of the entry field border and have the cursor not change
> when going over the field.
>
> I have noticed that when I try set the text aspect in View Composer on
> either a TextPresenter.Static Text (with text='Some Default Text',
> name='staticTextPresenter') or TextPresenter.Default view (with
> isReadOnly=true, isStatic=true, text='Some Default Text',
> name='staticTextPresenter' ), everything looks good until I put:
>
> self add: TextPresenter new name: 'staticTextPresenter' in
>>>createComponents.
>
Don't attach a TextPresenter (which will wire up default model containing
the empty string), but rather access the view directly. Look for references
to #viewNamed: to see how to access the view directly, bearing in mind that
the view is not available at the #createComponents stage. You can rely on
its presence in/after #onViewOpened
HTH
OA