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

    bright-gpu-74537

    12/06/2019, 12:35 PM
    so will need to have keyboard events delivered only to that
  • n

    nutritious-boots-87264

    12/06/2019, 12:35 PM
    And possibly bubble up to parent objects.
  • b

    bright-gpu-74537

    12/06/2019, 12:35 PM
    sure, i mean, not to all 3 of the listviews
  • b

    bright-gpu-74537

    12/06/2019, 12:36 PM
    ill have a think / play
  • n

    nutritious-boots-87264

    12/06/2019, 12:36 PM
    Yeah, most of the problems would be solved by ability to mark an widget as something that grabs keyboard focus
  • b

    bright-gpu-74537

    12/06/2019, 12:36 PM
    ive been putting off working on the FocusManager... but probably time to look at it again
  • b

    bright-gpu-74537

    12/06/2019, 12:37 PM
    so... ... consider me conviced! :) Im still not sure i agree with your other uses cases, but thats your call, your listview example is spot on. And once that it working, then you could (ab)use(?) the same system for your other use cases
  • n

    nutritious-boots-87264

    12/06/2019, 12:38 PM
    Was some of the focus stuff removed? I remember that in earlier haxeui versions haxeui focus sometimes desynchronized from browser/html5 focus resulting in weird behaviour.
  • b

    bright-gpu-74537

    12/06/2019, 12:39 PM
    im not 100% sure, it hasnt been worked on for a while, so maybe got broken somewhere
  • b

    bright-gpu-74537

    12/06/2019, 12:39 PM
    its on my list to revamp it 😦
  • n

    nutritious-boots-87264

    12/06/2019, 12:42 PM
    Ok, thanks for all the work you have done so far. Even with more mature UI libraries there are times when you feel that some common behavior is missing and should be builtin.
  • b

    bright-gpu-74537

    12/06/2019, 12:43 PM
    yeah, focus hasnt really been... ... .. erm... ... .. focused on properly
  • u

    user

    12/06/2019, 5:37 PM
    Is there anyway way to know if a mouse click stays(for example if I want to drag something based on the mouse position)?
  • b

    bright-gpu-74537

    12/06/2019, 5:44 PM
    I think you'll have to track that yourself with up / down events
  • b

    bright-gpu-74537

    12/06/2019, 5:44 PM
    i would like to add dragging to core, but im wary that im adding a feature that wont work for some people and therefore, generally, wont be used
  • b

    bright-gpu-74537

    12/06/2019, 5:45 PM
    i seem to end up wiring up a drag system quite often
  • u

    user

    12/06/2019, 6:03 PM
    Ok good to know and it makes sense
  • b

    bright-gpu-74537

    12/11/2019, 7:40 PM
    ^^ much nicer accordion.. other one was more than a little broken
  • f

    flaky-scientist-22842

    12/13/2019, 8:31 AM
    Super cool addition! That might actually come in handy for me
  • b

    bright-gpu-74537

    12/16/2019, 12:47 PM
    Copy code
    xml
    <property-grid width="250">
        <property-group text="Group 1">
            <property text="Property Default" value="bob" />
            <property text="Property Bool" type="boolean" value="true" />
            <property text="Property Int" type="int" value="100" />
            <property text="Property List" type="list" value="Item 1">
                <data>
                    <item value="Item 1" />
                    <item value="Item 2" />
                    <item value="Item 3" />
                    <item value="Item 4" />
                    <item value="Item 5" />
                    <item value="Item 6" />
                </data>
            </property>    
        </property-group>
        
        <property-group text="Group 2">
            <property text="Property Default" value="bob" />
            <property text="Property Bool" type="boolean" value="true" />
            <property text="Property Int" type="int" value="100" />
            <property text="Property List" type="list" value="Item 1">
                <data>
                    <item value="Item 1" />
                    <item value="Item 2" />
                    <item value="Item 3" />
                    <item value="Item 4" />
                    <item value="Item 5" />
                    <item value="Item 6" />
                </data>
            </property>    
        </property-group>
        
        <property-group text="Group 3">
            <property text="Property Default" value="bob" />
            <property text="Property Bool" type="boolean" value="true" />
            <property text="Property Int" type="int" value="100" />
            <property text="Property List" type="list" value="Item 1">
                <data>
                    <item value="Item 1" />
                    <item value="Item 2" />
                    <item value="Item 3" />
                    <item value="Item 4" />
                    <item value="Item 5" />
                    <item value="Item 6" />
                </data>
            </property>    
        </property-group>
    </property-grid>
  • u

    user

    12/16/2019, 1:47 PM
    @bright-gpu-74537 Really cool ! Did porperties exist before ? And is there any way to give the type field a typedef and have the property use a specific zml markup for said typedef ?
  • b

    bright-gpu-74537

    12/16/2019, 1:51 PM
    prop grid is a new component im working on at the moment... nice idea to be able to give it a typedef... though i wonder if that should be an extension of PropertyGrid rather than the default behaviour
  • b

    bright-gpu-74537

    12/16/2019, 1:51 PM
    whats zml?
  • u

    user

    12/16/2019, 1:53 PM
    Xml. The android keyboard is poopy :P
  • b

    brainy-machine-50829

    12/16/2019, 1:54 PM
    I could also see wanting to build it manually at runtime based on something entirely else.
  • b

    bright-gpu-74537

    12/16/2019, 1:55 PM
    yeah, the "standard" use case i think would be to not link it to a typedef
  • u

    user

    12/16/2019, 1:56 PM
    What do you mean by extension ? Is it like listeview is an extension of scrollview?
  • b

    bright-gpu-74537

    12/16/2019, 1:56 PM
    well, something like "TypePropertyGrid extends PropertyGrid"
  • u

    user

    12/16/2019, 2:00 PM
    Separating the logic would probably make sense but this depends. If it simpler to juste have it in one class thats fine. But if its too convaluted then we go the extension way. It pretty much depends on what you see extension giving you as a plus.
  • b

    bright-gpu-74537

    12/16/2019, 2:03 PM
    i can just think, as @User said, that there are many times when i wouldnt want to have it as a type, and a load of, possibly "not that related" values... you could ofc bring them all into some type of typedef, but i think making that the default isnt the right way to go
1...154155156...1687Latest