SilentRuin
August 2nd, 2020, 00:20
I thought first I could just use something like:
<windowclass name="charsheet" merge="join">
...
<sheetdata>
<subwindow name="sub_mystuff">
...
<class>char_mystuff</class>
<activate />
<fastinit />
<invisible />
<disabled />
</subwindow>
</sheetdata>
</windowclass>
<windowclass name="char_mystuff" >
...
<sheetdata>
<label_charframetop name="theAstuff">
...
<static textres="my_text_A" />
<invisible />
</label_charframetop>
<label_charframetop name="theBstuff">
...
<static textres="my_text_B" />
<invisible />
</label_charframetop>
<label_charframetop name="theCstuff">
...
<static textres="my_text_C" />
<invisible />
</label_charframetop>
...
</sheetdata>
</windowclass>
and then turn them on and off at various times with
window.theAstuff.setVisible(true);
.etc
At this point I figured this failed because they are not a control or something. So tried to wrap them in genericcontrol(s) but no luck there either.
So my question is - in a sub window full of controls - how do I place and control DUMB text? It seems to be there. But it is never ever displayed. Unless I'm not in the sub window - then labels work fine.
What do you do here?
<windowclass name="charsheet" merge="join">
...
<sheetdata>
<subwindow name="sub_mystuff">
...
<class>char_mystuff</class>
<activate />
<fastinit />
<invisible />
<disabled />
</subwindow>
</sheetdata>
</windowclass>
<windowclass name="char_mystuff" >
...
<sheetdata>
<label_charframetop name="theAstuff">
...
<static textres="my_text_A" />
<invisible />
</label_charframetop>
<label_charframetop name="theBstuff">
...
<static textres="my_text_B" />
<invisible />
</label_charframetop>
<label_charframetop name="theCstuff">
...
<static textres="my_text_C" />
<invisible />
</label_charframetop>
...
</sheetdata>
</windowclass>
and then turn them on and off at various times with
window.theAstuff.setVisible(true);
.etc
At this point I figured this failed because they are not a control or something. So tried to wrap them in genericcontrol(s) but no luck there either.
So my question is - in a sub window full of controls - how do I place and control DUMB text? It seems to be there. But it is never ever displayed. Unless I'm not in the sub window - then labels work fine.
What do you do here?