Guys. Please help me solve the problem. I need to move the text to the center in the drop-down list. I didn’t find any settings.
There is nothing in the font settings that could move it.
Guys. Please help me solve the problem. I need to move the text to the center in the drop-down list. I didn’t find any settings.
There is nothing in the font settings that could move it.
To clarify - you’re using a combo box and generate entries via a bind, right? If so, this functionality can be controlled in the generated widget, not in the combobox:
This should even work without the extra slot, justification should be enough.
I’ll try to make the alignment centered and see if it works, the problem is that the drop-down list does not have such settings as plain text. The text settings in the combo box are limited by the style, color and stroke without setting the binding (screenshot attached above). But thank you very much! I’ll check it out when I get home!
I know. That’s why you bind a function to generate entries on the fly. This gives you granular control over how things look like. You can even wrap text with a retainer and post process it…
In case there was any doubt:
Expose a string variable on the dynamically generated widget and feed it data:
This widget can be as simple as just a Text Block (no canvas) or as complex as you wish.
I dont understand this reply atall. Combo boxes have no alignment options like you suggested . Also why are you ever creating widgets with bindings that run every frame ? Also you mention canvas panels which are extremely bad on performance… not what I excepted as an answer from someone with so many post and a community hero tag.
This runs once. When the combo generates an entry.
That’s not what was suggested. It’s a border slot of the user widget’s border. As seen in the pic.
There’s no canvas here. I specifically say “no canvas”:
I’ll do better tomorrow!