Varsuuk
July 27th, 2020, 01:57
I need to edit an existing screen where there used to be 3 label+datafield on leftedge and 3 label+datafields on right edge.
After my edits, I only have 2 on the left (using label_column and number_column pairs) and I'd like the next control to pick up where it would have - had I not deleted the bottom left control. Right now, I created a blank label and left a dummy number with 0 in it to be placeholder for the rest temporarily.
Label [] Label []
Label [] Label []
Label [] Label []
Label [ ]
becomes:
Label [] Label []
Label [] Label []
Label [] --> This one SHOULD line up but I am not gonna kill myself in this post to make it right - imagine it is ;)
Label [ ]
or so I'd like to do in the easiest way changing the least.
Leftmost label is "label_column"
Field to right of it is "number_column"
Label to right is "label_column_right" anchored to the rumber_column on the same row to the left.
Field to right of this label is "number_column_right" which is anchored to the rumber_column on the same row to the left.
The elements in question:
[From MoreCore]
<template name="label_column">
<label>
<anchored>
<top parent="columnanchor" anchor="bottom" relation="current" offset="7" />
<left offset="0" />
<right offset="0" />
</anchored>
</label>
</template>
<template name="label_column_right">
<label>
<anchored>
<top />
<right parent="" offset="-60" />
</anchored>
</label>
</template>
[From CoreRPG]
<template name="number_column_right">
<basicnumber>
<anchored width="40" height="20">
<top />
<right parent="" offset="-5" />
</anchored>
</basicnumber>
</template>
<template name="number_column">
<basicnumber>
<anchored width="40" height="20">
<top parent="columnanchor" anchor="bottom" relation="relative" offset="7" />
<left offset="97" />
</anchored>
</basicnumber>
</template>
I have a lot of big-brain-hurt when I play with anchoring...
After my edits, I only have 2 on the left (using label_column and number_column pairs) and I'd like the next control to pick up where it would have - had I not deleted the bottom left control. Right now, I created a blank label and left a dummy number with 0 in it to be placeholder for the rest temporarily.
Label [] Label []
Label [] Label []
Label [] Label []
Label [ ]
becomes:
Label [] Label []
Label [] Label []
Label [] --> This one SHOULD line up but I am not gonna kill myself in this post to make it right - imagine it is ;)
Label [ ]
or so I'd like to do in the easiest way changing the least.
Leftmost label is "label_column"
Field to right of it is "number_column"
Label to right is "label_column_right" anchored to the rumber_column on the same row to the left.
Field to right of this label is "number_column_right" which is anchored to the rumber_column on the same row to the left.
The elements in question:
[From MoreCore]
<template name="label_column">
<label>
<anchored>
<top parent="columnanchor" anchor="bottom" relation="current" offset="7" />
<left offset="0" />
<right offset="0" />
</anchored>
</label>
</template>
<template name="label_column_right">
<label>
<anchored>
<top />
<right parent="" offset="-60" />
</anchored>
</label>
</template>
[From CoreRPG]
<template name="number_column_right">
<basicnumber>
<anchored width="40" height="20">
<top />
<right parent="" offset="-5" />
</anchored>
</basicnumber>
</template>
<template name="number_column">
<basicnumber>
<anchored width="40" height="20">
<top parent="columnanchor" anchor="bottom" relation="relative" offset="7" />
<left offset="97" />
</anchored>
</basicnumber>
</template>
I have a lot of big-brain-hurt when I play with anchoring...