bright-gpu-74537
06/15/2022, 5:58 AMbright-gpu-74537
06/15/2022, 5:58 AMxml
<vbox style="padding: 5px;">
<style>
.frame .label {
font-size: 24px;
}
</style>
<frame text="Foo">
<button text="Button" width="100" height="100" />
</frame>
</vbox>bright-gpu-74537
06/15/2022, 5:59 AM.frame > .label means the label has to be a direct descendent ... which i guess it isnt, generally, you dont use ">" unless for quite special casesbright-gpu-74537
06/15/2022, 5:59 AMbright-gpu-74537
06/15/2022, 6:00 AMelegant-twilight-61392
06/15/2022, 6:00 AM. was for classes, no?bright-gpu-74537
06/15/2022, 6:00 AMelegant-twilight-61392
06/15/2022, 6:01 AMframe is an element herebright-gpu-74537
06/15/2022, 6:02 AMbutton (ie, the name of the class, also), but .button is certainly more advisable - i may have already remove the button option, or its buggedbright-gpu-74537
06/15/2022, 6:02 AM.frame > .label also workselegant-twilight-61392
06/15/2022, 6:04 AM<class> while html is <element class='class'>?bright-gpu-74537
06/15/2022, 6:04 AM<absolute/> (or things directly on Screen) then you can use `top`/`left` otherwise the layout will handle positioning and you can tweak it with padding / marginsbright-gpu-74537
06/15/2022, 6:04 AMtall-teacher-57409
06/15/2022, 6:22 AMtall-teacher-57409
06/15/2022, 6:22 AMtall-teacher-57409
06/15/2022, 6:23 AMtall-teacher-57409
06/15/2022, 6:26 AMbright-gpu-74537
06/15/2022, 6:30 AMabsolute container, but then you have to do all the layout positioning yourself, haxeui can do that for youbright-gpu-74537
06/15/2022, 6:34 AMbright-gpu-74537
06/15/2022, 6:35 AMbright-gpu-74537
06/15/2022, 6:36 AMbright-gpu-74537
06/15/2022, 6:38 AMbright-gpu-74537
06/15/2022, 6:39 AM<absolute> is purely semantic, its exactly the same as doing <component>bright-gpu-74537
06/15/2022, 6:40 AMfull-journalist-82607
06/15/2022, 9:32 AMbright-gpu-74537
06/15/2022, 9:33 AMfull-journalist-82607
06/15/2022, 9:34 AMbright-gpu-74537
06/15/2022, 9:36 AMbright-gpu-74537
06/15/2022, 9:36 AMhaxe
button1.onClick = function(e) {
Dialogs.openFile(function(button, files) {
trace(button);
});
}bright-gpu-74537
06/15/2022, 9:41 AM