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

    bright-gpu-74537

    06/04/2020, 10:30 AM
    ah... maybe its about streching
  • u

    user

    06/04/2020, 10:33 AM
    I see nothing different on http://haxeui.org/builder/?ilzxwp
  • u

    user

    06/04/2020, 10:34 AM
    (apart imageHorizontalAlign which does nothing 😉 )
  • u

    user

    06/04/2020, 10:34 AM
    but perhaps playing with scaleMode too ?
  • b

    bright-gpu-74537

    06/04/2020, 10:35 AM
    yeah, i think its scaleMode + imageAlign... but just playing with an example to see
  • u

    user

    06/04/2020, 10:37 AM
    OK...let's fight another one : restrictChar....this one really bugs me
  • u

    user

    06/04/2020, 10:37 AM
    I'll see if I can debug haxe to wxwidget tree this way
  • b

    bright-gpu-74537

    06/04/2020, 10:40 AM
    there is no restrictChars behaviour in wxWidgets
  • u

    user

    06/04/2020, 10:44 AM
    yes, trying to implement my own
  • u

    user

    06/04/2020, 10:44 AM
    how could I say "#if backend wxwidgets" ?
  • u

    user

    06/04/2020, 10:47 AM
    oh, and there is restrictChars on wxwidgets..using wxTextValidator 🙂
  • u

    user

    06/04/2020, 10:54 AM
    got it => Backend.id
  • b

    bright-gpu-74537

    06/04/2020, 10:55 AM
    oh yeah, forgot about wxTextValidator
  • b

    bright-gpu-74537

    06/04/2020, 10:55 AM
    the big pain there will be that to use text validator (iirc) you have to subclass it
  • u

    user

    06/04/2020, 10:56 AM
    I also have to fix the xml parser 😉
  • u

    user

    06/04/2020, 10:56 AM
    since it doesnt like "1234"
  • b

    bright-gpu-74537

    06/04/2020, 10:57 AM
    hmm, that turns into a number, correct?
  • b

    bright-gpu-74537

    06/04/2020, 10:57 AM
    and in this case it should be a string?
  • b

    bright-gpu-74537

    06/04/2020, 11:00 AM
    http://haxeui.org/builder/?kijaqd
  • b

    bright-gpu-74537

    06/04/2020, 11:00 AM
    so you could achieve the same in other ways, i dont think i wrote this code to be honest - still it does seem like i has uses
  • u

    user

    06/04/2020, 11:04 AM
    oh, great, avoid a box
  • u

    user

    06/04/2020, 11:04 AM
    and yes, "1234" is turned into a number "while a string is expected"
  • u

    user

    06/04/2020, 11:05 AM
    I saw several ways to handle it, I just need to find the easier one
  • b

    bright-gpu-74537

    06/04/2020, 11:05 AM
    well, ideally, when building the code from xml, the macros would "find out" what the type of the target property is and use that
  • b

    bright-gpu-74537

    06/04/2020, 11:05 AM
    but ill have to play a little bit and see if thats even possible at compile time
  • u

    user

    06/04/2020, 11:07 AM
    one easy way is to handle it by code not xml 😉
  • u

    user

    06/04/2020, 11:09 AM
    I tried to react to CHANGE but if I reformat live the text and re-set it...it dispatches a CHANGE event -> infinite loop 😦
  • u

    user

    06/04/2020, 11:09 AM
    I don't know how to break this loop
  • b

    bright-gpu-74537

    06/04/2020, 11:44 AM
    i wonder if keypress is a better candidate event?
  • u

    user

    06/04/2020, 12:59 PM
    you have to convert keypress to char and so deal with keyboard layout no N
1...262263264...1687Latest