I'm creating a custom widget. Is there any way for the widget to access form attributes from its template::widget:: proc?
I imagine i could do:
set level [adp_level]
upvar #$level $element(form_id):properties form_properties
But, in most cases, the current parse level would be that of standard.adp or whatever form style is being used. So i would actually need to use the previous parse level.
But, in some cases, if the <formtemplate> tag contained a custom layout with its own <formwidget>s, then the current parse level would actually be correct.
Would it make sense for us to include the true form parse level in the element() array? This would only require a simple change to template::element::create.