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

    big-angle-82801

    07/31/2022, 3:31 PM
    it is possible, the flash tests in the official haxe repo start up gui windows
  • b

    big-angle-82801

    07/31/2022, 3:31 PM
    as long as it doesn't cause the process to hang
  • b

    big-angle-82801

    07/31/2022, 3:33 PM
    on linux it requires some packages
  • b

    big-angle-82801

    07/31/2022, 3:33 PM
    as long as the tests don't require any real user interaction
  • b

    bright-gpu-74537

    07/31/2022, 3:42 PM
    i actually wonder if you could further "fake" mouse input without actually having real user input by something like "findComponentesUnderPoint(x, y)" and then just send the mouse even to the first item in that list... that should fix the "component over the top of another" one... ... i think
  • l

    loud-salesclerk-7438

    07/31/2022, 3:51 PM
    it might work, but it depends on what x and y you use. what if only half of a button is covered and you happen to take a point from that half?
  • b

    bright-gpu-74537

    07/31/2022, 3:52 PM
    true, but the same would apply if you were actually simulating mouse input, i mean, with my system i took the center point of the component and made windows "click" there, but if the, say, button, was 1/3rd obscured then it would have been fine...
  • b

    bright-gpu-74537

    07/31/2022, 3:53 PM
    i mean, i guess you could as part of start up or something make sure no interactive components are overlapping... ... i mean, i think there would never be a good reason for them to
  • l

    loud-salesclerk-7438

    07/31/2022, 3:58 PM
    it's probably also beyond the scope of automated UI tests to figure out whether an occlusion is valid or not. in the end it's an addition to manual testing. so taking the center and sending events to whatever is on top of it should work out. and if tests sometimes fail because of overlapping elements then a human has to investigate. it would be nice to have a screenshot of the app at time of failure, but I don't know if that's doable.
  • h

    hallowed-ocean-84954

    07/31/2022, 4:04 PM
    A screenshot is doable. I do it in an automated test for my shader lib. I only have one example but I have a capture class that works for a flixel spritewhich captures the bitmap data. So it might well be backend specific but it can be done
  • b

    best-agent-85158

    07/31/2022, 6:34 PM
    i beleve i found a bug with dropdowns
  • b

    best-agent-85158

    07/31/2022, 6:34 PM
    lets say i have adropdown with 3 items - each item wider then the other
  • b

    best-agent-85158

    07/31/2022, 6:35 PM
    when selecting the shorter options, things look corrupted
  • b

    bright-gpu-74537

    07/31/2022, 7:17 PM
    dropdowns autosize by default, meaning the width with be the width of the content, which changes depending on string size. You can either give the drop down a px or % width, or use "dropDownWidth" to give the list a fixed width
  • b

    best-agent-85158

    07/31/2022, 7:17 PM
    👍
  • p

    purple-businessperson-14467

    08/01/2022, 12:30 AM
    In my tableviews row I have a button to remove the associated row from the datasource. The renderer knows its row data but it doesnt know the datasource? Not sure how to pass it a link top datasource?
  • p

    purple-businessperson-14467

    08/01/2022, 12:32 AM
    essentially make the X button delete the appropriate row https://www.haxeui.org/builder/?hqsmjb
  • p

    purple-businessperson-14467

    08/01/2022, 1:17 AM
    well... on the button custom renderer I went with onclick cast(this.parentComponent.parentComponent.parentComponent, TableView).dataSource.remove(data);
  • r

    refined-cat-44047

    08/01/2022, 5:41 AM
    I have a css file attached in my main layout XML, and it seems to work fine, except it seems like it is being cached or something. It does not always show my latest changes when I compile. Is there are way around this?
  • b

    bright-gpu-74537

    08/01/2022, 8:18 AM
    could this be an openfl thing? Im assuming openfl as i think ive seen it before there
  • b

    best-agent-85158

    08/01/2022, 10:56 AM
    about the color picker - is the color picker open source? if so, can you send a link (@bright-gpu-74537)
  • b

    bright-gpu-74537

    08/01/2022, 12:12 PM
    it will be in core, yeah, but its not yet as i need to take it out of my test project (where its a custom component) and put actually put it into core, and move the styles about etc
  • r

    refined-cat-44047

    08/02/2022, 2:41 AM
    I remember seeing an example XML layout where there was a single view, but a content area would be switched out for something else. Does anyone know what I am talking about? Or maybe there was just a few elements, but only one was enabled at a time.
  • b

    bright-gpu-74537

    08/02/2022, 6:29 AM
    im not 100% sure what component you mean tbh... if it was a self contained component then you'll likely find it in the component explorer: http://haxeui.org/explorer/ That has (i think) every component in haxeui (and some variants), but if it was an app view, then it probably wont help much
  • b

    bright-gpu-74537

    08/02/2022, 6:30 AM
    hmmm, not ideal... btw you could also do:
    this.findAncestor(TableView).dataSource.remove(data)
  • b

    bright-gpu-74537

    08/02/2022, 7:36 AM
    i think it would be nicer though if the item renderer "magically" got a reference to the IDataComponent (which in this case would be the tableview), ill have a look
  • p

    purple-businessperson-14467

    08/02/2022, 4:00 PM
    much nicer than parent drilling
  • b

    bright-gpu-74537

    08/02/2022, 4:01 PM
    yeah, you dont need a cast or anything either... though i still think it would be nice to able to do something like
    this.dataComponent.dataSource
    or even
    this.dataSource
    (though the latter might be a little misleading)
  • p

    purple-businessperson-14467

    08/02/2022, 4:03 PM
    I like this.datasource but you may be correct, it could be misleading. It makes sense to have data and datasource to me. But im in the weeds already
  • b

    bright-gpu-74537

    08/02/2022, 4:07 PM
    yeah, i just think that "datasource" makes it seem like its a data source for this renderer... maybe "parentDataSource" or something? Dunno
1...119111921193...1687Latest