Views and subviews
(add-subviews (target)
(make-instance
'editable-text-dialog-item
:view-size #@(160 16)
:view-nick-name 'visitor))
When we created the editable-text dialog item, we specified a view-nick-name for it. This allows us to locate the view later, if we want to perform some operation on it.
(set-view-font (view-named 'visitor (target))
"New York")
Now when you type in the editable-text item, the typing will be displayed in the font "New York", rather than the default "Chicago" font.
Generated with Harlequin WebMaker