You mean 'source="attribute" render="Label" '?
Yes, more specifically, I'm trying to solve the following issue:
In an effort to use as few templates as possible (ideally a single one) for a standard screen layout which includes legends for function buttons at the bottom in predefined places, I use the following code snippet to draw a red square, followed by a space, followed by the function description attached to the red button in that screen:
<panel position="right" size="50%,*">
<ePixmap pixmap="PLi-HD/buttons/red.png" position="left" size="26,*"
alphatest="on" />
<panel position="left" font="Body" size="1w,*" />
<widget name="red" position="fill" backgroundColor="black"
font="Body" halign="left" valign="top" />
<widget name="key_red" position="fill" backgroundColor="black"
font="Body" halign="left" valign="top" />
<widget name="red_text" position="fill" backgroundColor="black"
font="Body" halign="left" valign="top" />
<widget name="canceltext" position="fill" backgroundColor="black"
font="Body" halign="left" valign="top" />
</panel>
This works as a charm, because only one of those widgets actually expands into a visible frame with the assigned text in it at anytime.
However, in some screens, there is yet another incantation for this string, and it is called up using:
<widget render="Label" source="key_red" position="fill"
backgroundColor="black" font="Body" halign="left" valign="top" />
This piece of code, however, comes into conflict with:
<widget name="key_red" position="fill" backgroundColor="black"
font="Body" halign="left" valign="top" />
If I place them together in the first snippet I showed above, then whenever the name="key_red" is filled, the source="key_red" blows up into something that fills the whole screen (which, in theory, is not even possible, because of the bounding panel box around it, but apparently that *is* what happens; possibly due to a rendering bug somewhere).
So the idea is, to actually retrofit and force the source="key_red" using some applet code to become zero sized whenever it is empty.
This however, is only possible if I can pinpoint it in the applet code.
P.S. The <panel> directive, is it only supported in OpenPLi, or is it supported on all distributions?