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

    clever-yak-82528

    08/29/2022, 7:46 AM
    why the callback, btw?
  • c

    clever-yak-82528

    08/29/2022, 7:47 AM
    why not
    return bmp
    ?
  • b

    bright-gpu-74537

    08/29/2022, 7:47 AM
    because some backends can only do things like that async
  • c

    clever-yak-82528

    08/29/2022, 7:47 AM
    ...the fuck
  • c

    clever-yak-82528

    08/29/2022, 7:48 AM
    i am coming to the realisation more and more with every passing day that the things i do with my computer are different to what most people do with their computers
  • b

    bright-gpu-74537

    08/29/2022, 7:48 AM
    well, in browser you have to load an image from data... thats an async operation (of course)
  • b

    bright-gpu-74537

    08/29/2022, 7:48 AM
    (openfl, nme too - and likely others i cant think of off hand)
  • c

    clever-yak-82528

    08/29/2022, 7:52 AM
    hm
  • c

    clever-yak-82528

    08/29/2022, 7:52 AM
    ok
  • c

    clever-yak-82528

    08/29/2022, 7:52 AM
    now
  • c

    clever-yak-82528

    08/29/2022, 7:52 AM
    entirely separately
  • c

    clever-yak-82528

    08/29/2022, 7:52 AM
    stack.selectedIndex is a thing
  • c

    clever-yak-82528

    08/29/2022, 7:52 AM
    can you set the selection by id instead?
  • b

    bright-gpu-74537

    08/29/2022, 7:53 AM
    Copy code
    haxe
    @:dox(icon = "/icons/ui-layered-pane.png")
    @:composite(Builder)
    class Stack extends Box {
        @:behaviour(SelectedIndex, -1)      public var selectedIndex:Int;
        @:behaviour(SelectedId)             public var selectedId:String;
        
        @:call(PrevPage)                    public function prevPage();
        @:call(NextPage)                    public function nextPage();
        
        public function new() {
            super();
        }
    }
  • c

    clever-yak-82528

    08/29/2022, 7:53 AM
    oh perfect
  • b

    bright-gpu-74537

    08/29/2022, 8:17 AM
    well, treectrl in hxwidgets coming along nicely 🙂
  • c

    clever-yak-82528

    08/29/2022, 8:17 AM
    nice
  • b

    bright-gpu-74537

    08/29/2022, 9:16 AM
    i think i prefer wxDataViewTreeCtrl (left)
  • b

    bright-gpu-74537

    08/29/2022, 9:17 AM
    feels a little more modern... api is a little bit more of a pain, have to see how well haxeui integ goes
  • b

    best-agent-85158

    08/29/2022, 11:37 AM
    Copy code
    haxe
    removeChild(dropdown);
            removeChild(fixDescription);
            dropdown.y = description.y + description.textHeight + 20;
            dropdown.width = Math.min(110, w - SIDEBAR_WIDTH - 10) + 10;
    
            fixDescription.x = Math.min(110, w - SIDEBAR_WIDTH - 10) + 15;
            fixDescription.y = dropdown.y;
            fixDescription.width = Math.max(180, w - SIDEBAR_WIDTH - dropdown.x - fixDescription.width);
            fixDescription.height = fixDescription.textHeight + 4;
            addChild(dropdown);
            addChild(fixDescription);
    this piece of code is triggered whenver the window is resized and this is whats happening:
  • b

    best-agent-85158

    08/29/2022, 11:37 AM
    just reposted the start here for comfort
  • b

    bright-gpu-74537

    08/29/2022, 11:37 AM
    so what happens when you remove the removeChild / addChild?
  • b

    bright-gpu-74537

    08/29/2022, 11:38 AM
    is this repo available anywhere?
  • b

    best-agent-85158

    08/29/2022, 11:38 AM
    yes wait a sec
  • b

    best-agent-85158

    08/29/2022, 11:38 AM
    removeChild doesnt remove the removed child from the screen
  • b

    best-agent-85158

    08/29/2022, 11:38 AM
    add child adds another instance it seems
  • b

    best-agent-85158

    08/29/2022, 11:39 AM
    when removing the child addition & removal, only the text updates
  • b

    bright-gpu-74537

    08/29/2022, 11:40 AM
    hmmm, doesnt sound right / normal... is this an app i can run this end?
  • b

    best-agent-85158

    08/29/2022, 11:40 AM
    yep, just clone the repo and build for sys: https://github.com/ShaharMS/EZWorksheet-Installer
  • b

    bright-gpu-74537

    08/29/2022, 11:41 AM
    Source/Config.hx:23: characters 7-22 : Unexpected backgroundColor
1...123212331234...1687Latest