1.0.21 - It appears that the static_text widget does not respect variables e.g. '@myvar' when defining names. So the eve definition:
static_text(name: @site_path);
Does not correctly substitute in the contents of the variable 'site_path' as the name in the UI - instead the static_text appears blank.
To repeat:
1. Open the pair of files 'statictext.adm & statictext.eve' in Adobe Begin
2. >> the second static text does not appear in the UI c.f. the edit_text in the example.
Logged In: YES
user_id=1227609
Originator: NO
Moving this to a feature request for a message() widget.
static_text() is neither a controller nor a view - it has no binding - (a binding would be expressed as bind: @foo, not by using a name literal in a name: property).
I'll note that @site_path is a name literal - not a variable - typically, when used as a parameter to bind, a name literal is the name of a cell in the property model. Variables in static_text (or any part of an layout description) do work - however variables in the layout are evaluated once when the layout is parsed.
layout test {
constant:
variable_name : "Hello!";
view dialog() { static_text(name: variable_name); }
}
Sometime I can see a need for communicating input into the model which isn't going to change during the lifetime of the layout - we may also want to allow a variable to resolve to a property model sheet value and not just the layout sheet (a scoped lookup).
Sean