PDA

View Full Version : lixt_text with checkbox



deff
March 18th, 2019, 17:59
Hello,

i would like to create a list_text, but instead of having a shortcut link at the end of the line, i prefer a checkbox.

https://i.ibb.co/1dpkR9p/screenshot0133.png (https://ibb.co/1dpkR9p)

I put this code, i see the checkbox, but i cannot click on it, nothing happen....

Someone can help me ?


<list_text name="experienceadv">
<anchored to="xpadvframe">
<left offset="15" />
<top offset="35" />
<right offset="-20" />
<bottom offset="-20" />
</anchored>
<columns width="222" filldown="true" />
<newfocus>name</newfocus>
<datasource>.xpadv</datasource>
<class>char_xp</class>
<acceptdrop>
<class>referencetext</class>
<class>referencetextwide</class>
<field>*</field>
</acceptdrop>
</list_text>
<scrollbar_list>
<anchored to="experienceadv" />
<target>experienceadv</target>
</scrollbar_list>


</sheetdata>
</windowclass>



<windowclass name="char_xp">
<margins control="0,0,0,2" />
<sheetdata>
<genericcontrol name="rightanchor">
<anchored height="0" width="0">
<top offset="2" />
<right />
</anchored>
</genericcontrol>

<chckboxsqare name="checkxpbox">
<anchored to="rightanchor" width="12" height="12">
<top />
<right anchor="left" relation="relative" offset="-15" />
</anchored>
</chckboxsqare>

<string_textlistitem name="name">
<anchored to="rightanchor">
<top />
<left parent="" offset="5" />
<right anchor="left" relation="relative" offset="-22" />
</anchored>
<multilinespacing>20</multilinespacing>
</string_textlistitem>
</sheetdata>
</windowclass>

Thanks a lot :)

Bidmaron
March 24th, 2019, 18:47
Away from computer now but I see no one has responded after several days.
Find a case in 5e or 3.5 where there is a checkbox and then go for the unpacked ruleset to find the xml you need. There is a corerpg control predefined for a checkbox. Can not recall the name.
Now if you need to do something based upon that check value, well, welcome to lua ....

damned
March 24th, 2019, 23:19
What does your chckboxsqare template look like?

deff
March 24th, 2019, 23:34
<template name="chckboxsqare">
<buttonfield>
<anchored position="righthigh" offset="1,0" width="12" height="12"/>
<state icon="button_off" />
<state icon="button_on" />
</buttonfield>
</template>

But I solved my problem by using button_checkbox instead. I do not know why it did not work but button_checkbox is ok for me :)

Thanks for all.