bright-gpu-74537
07/24/2021, 9:51 PMuser
07/24/2021, 9:51 PMbright-gpu-74537
07/24/2021, 9:52 PMhaxe
myComponent.customStyle.padding = 10;
myComponent.invalidateStyle();
myComponent.syncComponentValidation();
trace(myComponent.style.padding)bright-gpu-74537
07/24/2021, 9:52 PMuser
07/24/2021, 9:56 PMuser
07/24/2021, 10:18 PMuser
07/24/2021, 10:19 PMcustomStyle instead of setting customStyle itself, and it works a lot betteruser
07/24/2021, 10:27 PMuser
07/25/2021, 1:22 PMnull work for setting color back to default?
(it doesn't atm with wxwidgets:
<box width="900" height="600">
<hbox width="100%" height="100%">
<switch id="lab" height="30" width="100" text="Test" />
<button text="Gray" width="100" height="30" style="font-size: 14px" onclick="lab.customStyle.color = 9539984; lab.invalidateComponentStyle();" />
<button text="Black" width="100" height="30" style="font-size: 14px" onclick="lab.customStyle.color = 0; lab.invalidateComponentStyle();" />
<button text="Default" width="100" height="30" style="font-size: 14px" onclick="lab.customStyle.color = null; lab.invalidateComponentStyle();" />
</hbox>
</box>
)user
07/25/2021, 10:06 PMhaxe/ui/backend/hxwidgets/handlers/StaticTextHandler.hx seem to imply textAlign = "center" is implemented for Label, it gets called with correct value, but I can't get textAlign = "center" to work on a Label (with or without coconut) =/
Any idea what might be missing?bright-gpu-74537
07/26/2021, 6:48 AMbright-gpu-74537
07/26/2021, 6:49 AMbright-gpu-74537
07/26/2021, 6:52 AMxml
<hbox>
<label width="200" text="Lorem ipsum ..." />
<label width="200" textAlign="center" text="Lorem ipsum ..." />
<label width="200" textAlign="right" text="Lorem ipsum ..." />
</hbox>user
07/26/2021, 6:57 AMuser
07/26/2021, 6:57 AMuser
07/26/2021, 7:05 AMbright-gpu-74537
07/26/2021, 7:07 AMLorem ipsum ... (also, i think your label will need an explicit width - % or px)user
07/26/2021, 7:08 AMbright-gpu-74537
07/26/2021, 7:11 AMuser
07/26/2021, 7:11 AMhaxelib run haxeui-core create hxwidgets)bright-gpu-74537
07/26/2021, 7:11 AMbright-gpu-74537
07/26/2021, 7:12 AMbright-gpu-74537
07/26/2021, 7:12 AMuser
07/26/2021, 7:14 AMuser
07/26/2021, 7:15 AMbright-gpu-74537
07/26/2021, 7:16 AMbright-gpu-74537
07/26/2021, 7:16 AMuser
07/26/2021, 7:17 AMbright-gpu-74537
07/26/2021, 7:17 AMuser
07/26/2021, 7:17 AM