PDA

View Full Version : string_labled controls not lining up vertically



darrenan
November 17th, 2024, 02:44
I am trying to override the charsheet_overview windowclass from CoreRPG to add a second string_labeled control next to "name".

Here is what I currently have defined:



<windowclass name="charsheet_overview" merge="join">
<sheetdata>
<string_labeled name="name">
<anchored>
<right anchor="center" offset="-3" />
</anchored>
</string_labeled>
<string_labeled name="playbook">
<anchored to="overviewframe" position="insidetopright" offset="15,10">
<left anchor="center" offset="3" />
</anchored>
<labelres>char_label_playbook</labelres>
</string_labeled>
</sheetdata>
</windowclass>


And this is the result:

62633

I'm wondering why the control line of the new control is not lining up with the control line for "name", and why the widget text not spaced from the control line the same distance as "name"?

Moon Wizard
November 17th, 2024, 07:35
It's because the "name" control has a specified height="20" in the base "charsheet_overview" definition; but your new "playbook" control does not have a height specified. Add height="20" to your anchored tag for the "playbook" control to get them to line up.

Regards,
JPG

darrenan
November 17th, 2024, 21:32
ok, I was looking at an old version of that file that didn't have the height specification. Thanks.