https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • i

    icy-zebra-52882

    01/15/2023, 1:12 PM
    where the bottom gets crushed due to incorrect height
  • b

    bright-gpu-74537

    01/15/2023, 1:12 PM
    thats probably related to wx sizers though? And haxeui doesnt use them
  • i

    icy-zebra-52882

    01/15/2023, 1:13 PM
    I'll try the git version again, think I had 3.2.1 or something for wxwidgets
  • i

    icy-zebra-52882

    01/15/2023, 1:13 PM
    time to go make a cuppa for compiling
  • b

    bright-gpu-74537

    01/15/2023, 1:13 PM
    seems to be pretty recent, so my guess is it aint gonna make a diff
  • i

    icy-zebra-52882

    01/15/2023, 1:14 PM
    Released: September 9, 2022
  • b

    bright-gpu-74537

    01/15/2023, 1:14 PM
    ¯\_(ツ)_/¯
  • b

    bright-gpu-74537

    01/15/2023, 1:14 PM
    worth a try, but i would steady my expectations 🙂
  • i

    icy-zebra-52882

    01/15/2023, 1:14 PM
    eh I can try, if not I'll just set a height and keep the window resizable
  • i

    icy-zebra-52882

    01/15/2023, 1:15 PM
    also wanted to get the input comboboxes and text input lined up, but aligned to the right
  • i

    icy-zebra-52882

    01/15/2023, 1:15 PM
    like you would have on a web form
  • i

    icy-zebra-52882

    01/15/2023, 1:16 PM
    I tried
    horizontalAlign="right"
    for them but grid seems to ignore it, but I think it shouldn't affect that anyway
  • b

    bright-gpu-74537

    01/15/2023, 1:16 PM
    you'll have to share a layout or something... maybe a builder link
  • i

    icy-zebra-52882

    01/15/2023, 1:17 PM
    https://www.haxeui.org/builder/?6ed1cec8
  • b

    bright-gpu-74537

    01/15/2023, 1:17 PM
    theres a bunch of relevant properties that can go in the `haxeui-hxwidgets.properties`:
    Copy code
    /*
    * haxe.ui.hxwidgets.frame.fit=boolean will reszie the top level frame to the contents of the UI
    * haxe.ui.hxwidgets.frame.title=string just the title of the frame, you dont have to set it here, but its an easy way.
    * haxe.ui.hxwidgets.frame.width=number the default width of the main frame (800 if not set), note, this property is ignored if haxe.ui.hxwidgets.frame.fit=true
    * haxe.ui.hxwidgets.frame.height=number the default height of the main frame (600 if not set), note, this property is ignored if haxe.ui.hxwidgets.frame.fit=true
    * haxe.ui.hxwidgets.frame.minWidth=number the minimum width of the main frame (-1 if not set)
    * haxe.ui.hxwidgets.frame.minHeight=number the minimum height of the main frame (-1 if not set)
    * haxe.ui.hxwidgets.frame.maxWidth=number the maximum width of the main frame (-1 if not set)
    * haxe.ui.hxwidgets.frame.maxHeight=number the maximum height of the main frame (-1 if not set)
    * haxe.ui.hxwidgets.frame.left=number the position of frame (x axis) defaults to center screen
    * haxe.ui.hxwidgets.frame.top=number the position of frame (y axis) defaults to center screen
    * haxe.ui.hxwidgets.frame.maximized=boolean whether to start the frame is a maximized state
    * haxe.ui.hxwidgets.frame.maximizable=boolean
    * haxe.ui.hxwidgets.frame.minimizable=boolean
    * haxe.ui.hxwidgets.frame.closeable=boolean
    * haxe.ui.hxwidgets.frame.resizable=boolean
    */
  • b

    bright-gpu-74537

    01/15/2023, 1:19 PM
    something like this: https://www.haxeui.org/builder/?f27bddfe ?
  • b

    bright-gpu-74537

    01/15/2023, 1:20 PM
    one thing ive just noticed from your link, is that a copy and paste from your app? Because the tabview there has a height of 100%... which isnt autosized... you are saying "100% of parent" which is, as mentioned, 0
  • b

    bright-gpu-74537

    01/15/2023, 1:22 PM
    in my test app, if i also put the tabview height to 100% i get the same behaviour:
  • b

    bright-gpu-74537

    01/15/2023, 1:22 PM
    but its totally sensible
  • i

    icy-zebra-52882

    01/15/2023, 1:23 PM
    well that 100% value works, but only because I used your suggestion of minHeight and minWidth in the .properties
  • i

    icy-zebra-52882

    01/15/2023, 1:23 PM
    so that's as good as fixed for me
  • b

    bright-gpu-74537

    01/15/2023, 1:24 PM
    so are you saying that if you remove the height=100% from the tabview, and dont have a fixed height, it still doenst autosize?
  • b

    bright-gpu-74537

    01/15/2023, 1:24 PM
    you'll also need to remove a bunch of 100% from the other parts too... like the box Tab #1
  • b

    bright-gpu-74537

    01/15/2023, 1:25 PM
    that rules apply to that...
  • b

    bright-gpu-74537

    01/15/2023, 1:25 PM
    eg, what does this look like for you:
  • b

    bright-gpu-74537

    01/15/2023, 1:25 PM
    Copy code
    xml
    <vbox style="padding: 10px;">
        <tabview width="300">
            <box text="Some Page">
                <vbox>
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                </vbox>
            </box>
            <box text="Some Page2">
                <vbox>
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                    <button text="Some Button" />
                </vbox>
            </box>
            <box text="Some Page3">
            </box>
        </tabview>
    </vbox>
  • b

    bright-gpu-74537

    01/15/2023, 1:25 PM
    (and no fixed height in .properties)
  • b

    bright-gpu-74537

    01/15/2023, 1:25 PM
    (brb - walking el 🐶 's)
  • i

    icy-zebra-52882

    01/15/2023, 1:28 PM
    seems as it should be
  • i

    icy-zebra-52882

    01/15/2023, 1:38 PM
    seems like the easier solution was to just remove all 100%s everywhere and stick to autosize
1...137813791380...1687Latest