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

    bright-gpu-74537

    05/29/2020, 6:16 AM
    do we have examples for both of the above?
  • b

    bright-gpu-74537

    05/29/2020, 6:16 AM
    what backend for the Label issue?
  • u

    user

    05/29/2020, 6:16 AM
    hxwidget
  • u

    user

    05/29/2020, 6:17 AM
    Copy code
    import haxe.ui.components.Label;
    
    class ModuleLabel extends Label{
        public function new(){
            super();
            trace("modulelabel ok");
        }
    }
  • u

    user

    05/29/2020, 6:18 AM
    Copy code
    <label text="_CHAMP1" />
     <modulelabel text="CHAMP1" />
  • u

    user

    05/29/2020, 6:18 AM
    on a vbox
  • u

    user

    05/29/2020, 6:19 AM
    you'll see "_CHAMP1" on screen, "modulelabel ok" on trace but no "CHAMP1"
  • u

    user

    05/29/2020, 6:19 AM
    since i have the trace, it means my module.xml is right
  • u

    user

    05/29/2020, 6:20 AM
    I have the same problem with textField
  • u

    user

    05/29/2020, 6:20 AM
    but not with group
  • u

    user

    05/29/2020, 6:21 AM
    should I miss some macro on the extended component? styling or something similar
  • b

    bright-gpu-74537

    05/29/2020, 6:55 AM
    Hmm, let me have a play / think - i think i know whats going on, but i just need to confirm it
  • u

    user

    05/29/2020, 7:51 AM
    no problem
  • u

    user

    05/29/2020, 7:51 AM
    let me know if you want me to test something
  • u

    user

    05/29/2020, 11:06 AM
    I found another one 😦
  • u

    user

    05/29/2020, 11:06 AM
    textfield isn't editable/active on a tabview view
  • u

    user

    05/29/2020, 11:06 AM
    it seems mouseevent doesn't reach it
  • u

    user

    05/29/2020, 11:07 AM
    (macosx, hxwidget, git versions, wxwidget from brew)
  • u

    user

    05/29/2020, 11:07 AM
    it works perfectly outside the tabview
  • b

    brave-kangaroo-30399

    05/29/2020, 1:56 PM
    I think BitmapButton in the button example is the same thing, but I’ll have to check later
  • c

    clever-oil-61353

    05/29/2020, 4:59 PM
    currently working on two parts of my app, one is the applying of materials to the obj models, and the other is the drag and drop of the haxeui builder..... as i am working on these i thought to myself, i see a better way to to the opening of various screens from the main menu.... but upon making the changes, the screen layouts are out of order when adding them to a different parent.... i may be asking your thoughts on that soon Ian. I think it may just have to do with the way i'm doing it.... .addComponent, going to try a few things, i may need to be doing something different like, appendChild or something. Going to tinker around some more with it though.
  • b

    bright-gpu-74537

    05/29/2020, 5:51 PM
    @User - might not be the issue, but order is important:
    Copy code
    .button:hover {
        background-color: red
    }
    
    .button {
        background-color: green;
    }
    will always lead to a green button
  • b

    bright-gpu-74537

    05/29/2020, 5:53 PM
    i wonder if its like that in normal css... ill have to check but the rule matching in haxeui is certainly a "match rules, build up a style sequentially"
  • b

    bright-gpu-74537

    05/29/2020, 5:55 PM
    @User - will check it out, sounds weird, ive defo used textfields on tabs, will have to check on osx
  • b

    bright-gpu-74537

    05/29/2020, 6:02 PM
    also, rather than using brew for wxWidgets, can you try manually downloading and compiling, i remember having a plethora of issues on osx before i started using the latest release (which isnt brew i dont think) and compiling it myself... its a no brainer: https://github.com/haxeui/hxWidgets/#building-wxwidgets-from-source-linux--osx
  • u

    user

    05/29/2020, 9:19 PM
    I'll try
  • f

    fast-rain-20339

    05/30/2020, 6:10 AM
    As far as I remember from CSS spec, the order things are applied is based on specificity. If a style refers by class and another refers to 'div' elements for instance, the class based one is prioritised. '!important' overrides all. (I may be misremembering though haha)
  • m

    most-caravan-45834

    05/31/2020, 12:41 AM
    How do I set width = 100% using code?
  • b

    bright-yak-48460

    05/31/2020, 12:57 AM
    .percentWidth = 100
  • m

    most-caravan-45834

    05/31/2020, 1:00 AM
    thanks a lot!
1...240241242...1687Latest