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

    bright-gpu-74537

    01/15/2023, 12:27 PM
    heh, yeah, i noticed that... i was like "must be some derivate of sdf" 😄
  • b

    bright-gpu-74537

    01/15/2023, 12:28 PM
    presumably it makes no difference though?
  • c

    creamy-animal-95850

    01/15/2023, 12:28 PM
    no, there's only two types of fonts with heaps and that's the better one
  • a

    astonishing-jordan-99718

    01/15/2023, 12:36 PM
    Subscribed to haxeui updates
  • b

    bright-gpu-74537

    01/15/2023, 12:37 PM
    great, thanks for that, works perfectly... so now to see what haxeui is doing so differently 🙂
  • b

    bright-gpu-74537

    01/15/2023, 12:39 PM
    alright, so the first obvious thing is this
    typedef FontData = hxd.res.BitmapFont;
    should be
    typedef FontData = h2d.Font;
    by the looks of things
  • b

    bright-gpu-74537

    01/15/2023, 12:53 PM
    so you cant use ttf fonts in heaps? I thought i did that at some point, but i might be totally misremembering and thinking of another backend
  • c

    creamy-animal-95850

    01/15/2023, 12:54 PM
    nope
  • c

    creamy-animal-95850

    01/15/2023, 12:55 PM
    fonts are super finnicky with heaps, and SDF is the closest to ttf
  • b

    bright-gpu-74537

    01/15/2023, 12:55 PM
    rightyo... fair enough, must be thinking of something totally different then... might have been haxeui-raylib
  • i

    icy-zebra-52882

    01/15/2023, 12:58 PM
    if a haxeui-hxwidgets program doesn't have a fixed height supplied in the XML, is it meant to be very small in height by default?
  • i

    icy-zebra-52882

    01/15/2023, 12:58 PM
    I find that unless I specifically set the height, it won't autosize the height correctly at all
  • b

    bright-gpu-74537

    01/15/2023, 12:58 PM
    it defo should autosize based on the contents
  • b

    bright-gpu-74537

    01/15/2023, 12:59 PM
    ah, not sure about tabs... might be tricky to get the right autosize from wx
  • i

    icy-zebra-52882

    01/15/2023, 12:59 PM
    didn't think about that bit, I thought wx did the job of supplying the correct autosize
  • b

    bright-gpu-74537

    01/15/2023, 1:01 PM
    wx supplies the size of simple components (buttons etc), but for more complex stuff haxeui has to work out out... and im guess it cant from something like tabs... its a guess though, lemme confirm real quick here
  • i

    icy-zebra-52882

    01/15/2023, 1:01 PM
    I thought it was that I had to set containers to 100% w and h, but if I try to set tabview on wx to 100% height, it doesn't show anything at all (without a fixed height value for the entire layout set)
  • b

    bright-gpu-74537

    01/15/2023, 1:02 PM
    well, 100% means 100% of parent, and if the parent is autosized, that effectively means "0"
  • i

    icy-zebra-52882

    01/15/2023, 1:03 PM
    makes sense
  • b

    bright-gpu-74537

    01/15/2023, 1:03 PM
    you know what though, it works here:
  • b

    bright-gpu-74537

    01/15/2023, 1:04 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>
        </tabview>
    </vbox>
  • i

    icy-zebra-52882

    01/15/2023, 1:04 PM
    could be a wxwidgets bug then
  • b

    bright-gpu-74537

    01/15/2023, 1:04 PM
    yeah, maybe some wx-gtk thing?
  • i

    icy-zebra-52882

    01/15/2023, 1:04 PM
    on GTK it won't unless a base height is set
  • b

    bright-gpu-74537

    01/15/2023, 1:06 PM
    is it just me? Or is the window too small there too? I would expect a 5px gutter all around
  • b

    bright-gpu-74537

    01/15/2023, 1:06 PM
    yeah, not sure what to suggest tbh, i cant really control what wx "tells" haxeui
  • i

    icy-zebra-52882

    01/15/2023, 1:07 PM
    I'll have a look to see if anyone at wxGTK got it too
  • b

    bright-gpu-74537

    01/15/2023, 1:07 PM
    gonna be a hard question to phrase, but then my google-fu is weak 😄
  • b

    bright-gpu-74537

    01/15/2023, 1:11 PM
    you using latest git version of wx btw? Might be worth testing
  • i

    icy-zebra-52882

    01/15/2023, 1:12 PM
    well someone had something at least a bit similar
1...137713781379...1687Latest