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

    bright-gpu-74537

    02/05/2023, 6:14 PM
    cool - that said, they way you are trying to use it is 100% reasonable, so ill defo fix it
  • b

    bright-gpu-74537

    02/05/2023, 6:19 PM
    alright, fixed now - latest haxeui-hxwidgets
  • b

    bright-gpu-74537

    02/05/2023, 6:20 PM
    (silly thing - wasnt setting up callbacks for when the data changed - like ive done in other datasource behaviour overrides)
  • i

    icy-zebra-52882

    02/05/2023, 6:26 PM
    woop! https://plzlookat.mystupid.pictures/Main_rmQlBMoCcs.webm
  • i

    icy-zebra-52882

    02/05/2023, 6:26 PM
    thanks again
  • b

    bright-gpu-74537

    02/05/2023, 6:27 PM
    np - nice catch... i never use datasources that way, so must have been why it went unnoticed, but its a perfectly valid way to use them 🙂
  • i

    icy-zebra-52882

    02/05/2023, 6:28 PM
    what's the other way to use them?
  • i

    icy-zebra-52882

    02/05/2023, 6:29 PM
    I've not much experience in much at all, but only other way I've done adding data to UI is WinUI3's C# ObservableCollection and binding to it in the XAML
  • b

    bright-gpu-74537

    02/05/2023, 6:32 PM
    well, i create the data source and then just do
    .dataSource = myDataSource
  • b

    bright-gpu-74537

    02/05/2023, 6:33 PM
    its still the better option if you are adding a bunch of items since doing it directly will call the callback for each item... but, regardless, either method is fine
  • b

    bright-gpu-74537

    02/05/2023, 6:34 PM
    myDropDown.dataSource.add(...)
    is a perfectly reasonable usage, and 100% should have worked 😉
  • i

    icy-zebra-52882

    02/05/2023, 7:00 PM
    that makes sense
  • o

    orange-van-60470

    02/06/2023, 10:48 AM
    Ian my pixelimage library is starting to really come together, still quite a lot of sample to build and tweak some render, and maybe add proper hit and undo possibility for all TriGML xml, but was thinking maybe interesting to modify it to work on a haxeui target that does not have a proper canvas only pixels ( so far only wired to canvas ) but need to add more targets and in theory that should be simple as it only uses canvas to display the final pixelimage.
  • o

    orange-van-60470

    02/06/2023, 10:49 AM
    I don't know if you have any thoughts. I have a few test demos at pixelimage-samples ( wip ).
  • b

    bright-gpu-74537

    02/06/2023, 11:28 AM
    what does it do? Draw shapes out of pixels? can you link the samples?
  • a

    ambitious-knife-25690

    02/06/2023, 11:42 AM
    lol the url for this 😂
  • i

    icy-zebra-52882

    02/06/2023, 11:42 AM
    it's a wildcard subdomain - try replacing the first part
  • a

    ambitious-knife-25690

    02/06/2023, 11:43 AM
    oh, interesting, doesn't change anything
  • i

    icy-zebra-52882

    02/06/2023, 11:44 AM
    they all link to the same thing, so you can change it on the fly like https://dontlookat.mystupid.pictures/Main_rmQlBMoCcs.webm
  • i

    icy-zebra-52882

    02/06/2023, 11:45 AM
    very good for ShareX screenshots
  • i

    icy-zebra-52882

    02/06/2023, 1:09 PM
    is changing width on a textfield supported? on haxeui-hxwidgets it seems to shrink to 0 width when I set it to 100% width, even if all parent containers have a set/percentage width
  • b

    bright-gpu-74537

    02/06/2023, 1:12 PM
    defo supported, and almost certainly works (at least for me)... you'll have to send a repro
  • i

    icy-zebra-52882

    02/06/2023, 1:12 PM
    same repo as before if you want to git clone it, or I can zip it here
  • b

    bright-gpu-74537

    02/06/2023, 1:13 PM
    got a link?
  • i

    icy-zebra-52882

    02/06/2023, 1:13 PM
    this one
  • b

    bright-gpu-74537

    02/06/2023, 1:13 PM
    nvm
  • b

    bright-gpu-74537

    02/06/2023, 1:13 PM
    got it
  • b

    bright-gpu-74537

    02/06/2023, 1:18 PM
    well, i added 100% to you textfield and it worked fine
  • b

    bright-gpu-74537

    02/06/2023, 1:18 PM
    Copy code
    xml
                <box width="100%" id="beforeMovieTab" text="Before">
                    <textfield width="100%" id="beforeMovieText" placeholder="Before movie text" disabled="true" />
                </box>
  • b

    bright-gpu-74537

    02/06/2023, 1:18 PM
    there wasnt a 100% on the textfield originally though
1...146614671468...1687Latest