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

    clever-yak-82528

    01/28/2023, 9:43 PM
    spewing horizontalAlign="center" everywhere doesnt seem to do much
  • b

    bright-gpu-74537

    01/28/2023, 9:47 PM
    make what centered?
  • b

    bright-gpu-74537

    01/28/2023, 9:48 PM
    if you mean the label / dropdown, its because its width is 100%... which means centered doesnt really mean anything (since its fullwidth)
  • b

    bright-gpu-74537

    01/28/2023, 9:49 PM
    so either remove the 100% from the hbox, or, if you want that hbox to be 100%, but the components in another box and align that, eg:
  • c

    clever-yak-82528

    01/28/2023, 9:49 PM
    ah, right
  • b

    bright-gpu-74537

    01/28/2023, 9:50 PM
    Copy code
    xml
                    <vbox width="100%" height="100%" style="padding:5px">
                        <hbox horizontalAlign="right">
                            <label text="Select language:" verticalAlign="center" />
                            <dropdown id="titlelang" selectedIndex="1">
                                <data>
                                   ...
                                </data>
                            </dropdown>
                        </hbox>
    
                        <button text="Rest of the app" width="100%" height="100%" />
                    </vbox>
  • c

    clever-yak-82528

    01/28/2023, 9:51 PM
    i see
  • c

    clever-yak-82528

    01/28/2023, 9:52 PM
    nice!
  • c

    clever-yak-82528

    01/28/2023, 9:54 PM
    hmm, can i horizontally align the text in the dropdown?
  • c

    clever-yak-82528

    01/28/2023, 9:54 PM
    (doesn't really matter if not)
  • b

    bright-gpu-74537

    01/28/2023, 9:55 PM
    dont think so
  • c

    clever-yak-82528

    01/28/2023, 9:55 PM
    rip
  • b

    bright-gpu-74537

    01/28/2023, 9:55 PM
    > I can confirm that at least under MSW the native widget indeed doesn't support specifying the alignment.
  • c

    clever-yak-82528

    01/28/2023, 9:56 PM
    ah well
  • c

    clever-yak-82528

    01/28/2023, 10:41 PM
    this is amazing
  • c

    clever-yak-82528

    01/28/2023, 10:41 PM
    not quite wide enough but i can deal with it
  • a

    ambitious-knife-25690

    01/28/2023, 11:44 PM
    I forgot to confirm scaling works fine x)
  • a

    ambitious-knife-25690

    01/28/2023, 11:44 PM
    I did nothing on this
  • a

    ambitious-knife-25690

    01/28/2023, 11:45 PM
    100% jeremy's work here
  • a

    ambitious-knife-25690

    01/28/2023, 11:45 PM
    its nice cause the scaling will just match what the user wants and no need to double manage it
  • c

    clever-yak-82528

    01/29/2023, 12:17 AM
    goddammit now my buttons aren't working properly
  • c

    clever-yak-82528

    01/29/2023, 12:35 AM
    @bright-gpu-74537 two things; 1, do buttons work properly in stacks? 2, do context menus (as in the right click one here http://haxeui.org/explorer/#containers/menus) work in wxwidgets?
  • a

    ambitious-knife-25690

    01/29/2023, 12:38 AM
    you might want to define what not working is
  • a

    ambitious-knife-25690

    01/29/2023, 12:38 AM
    and give an example on the builder
  • c

    clever-yak-82528

    01/29/2023, 12:39 AM
    they don't exist in much the same way that my dropdown didn't exist earlier
  • c

    clever-yak-82528

    01/29/2023, 12:39 AM
    since theyre both in stacks, that leads me to believe that it's related
  • a

    ambitious-knife-25690

    01/29/2023, 12:40 AM
    giving ian a testcase will save him time, otherwise he'll have to create a quick example to test which may not be exact to your use etc etc
  • c

    clever-yak-82528

    01/29/2023, 12:43 AM
    the error doesn't occur in the builder
  • c

    clever-yak-82528

    01/29/2023, 12:43 AM
    it's most likely a wxwidgets thing
  • a

    ambitious-knife-25690

    01/29/2023, 12:43 AM
    yeah, but he can copy paste the code from the builder to a wxwidgets project
1...144114421443...1687Latest