PDA

View Full Version : Is there a way to limit string controls to single line?



Varsuuk
February 9th, 2021, 04:06
I have not been able to figure out how to limit a string control based input to single line.

SilentRuin
February 9th, 2021, 04:21
I have not been able to figure out how to limit a string control based input to single line.

You mean a <stringcontrol> ? I use them and they are all single line and I'm not doing anything special.



<stringcontrol name="test">
<anchored width="200" height="30">
<left parent="that thing" anchor="right" offset="7" />
<bottom parent="that other thing" anchor="bottom" offset="0" />
</anchored>
<tooltip textres="editctgroup_tooltip" />
<delaykeyupdate />
<font>sheettext</font>
<frame name="groupbox" offset="5,5,2,2" />
</stringcontrol>

Varsuuk
February 9th, 2021, 04:50
You sir are RIGHT!

Sorry - will now single-step adding things to it directly vs using redone templates so I can figure out what is doing this.

I had switched a number_column into what I thought was equivalent as a string_column but when hit enter it expands (as if multiline was set)

Varsuuk
February 9th, 2021, 05:07
And I must get a new glasses prescription - somehow I missed THIS puppy in the trace-chain:



<template name="string_column">
<basicstring>
<anchored>
<top parent="columnanchor" anchor="bottom" relation="relative" offset="7" />
<left offset="97" />
<right offset="-5" />
</anchored>
<multilinespacing>20</multilinespacing>
</basicstring>
</template>