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

    full-journalist-82607

    12/20/2022, 6:26 PM
    Nice idea ! Indeed it would make plenty of things easier, it opens up a lot. I'm leaving to eat now. If ever I'm able to do what I want, I'll tell you. ( kind of frustrating it's not case haha )
  • b

    bright-gpu-74537

    12/20/2022, 6:26 PM
    cool - enjoy 🙂
  • f

    full-journalist-82607

    12/20/2022, 6:27 PM
    Thanks 🙂
  • f

    full-journalist-82607

    12/20/2022, 10:42 PM
    Does somebody use hxwidgets on Linux ? And if it's the case, can you tell me if the menu bar shows ? My menus don't show at all and I'm wondering where is the problem. I've checked the samples in wxwidgets and they do work. I've check is the menubar is ttached, it's the case Edit: Yes, I've kind of found the problem, I need to so do frame.menuBar.show(); but just after creating the menuBar it doesn't work, so I've put it in a resizing event for now. I'll have to find a better way to correct this.
  • i

    icy-zebra-52882

    12/21/2022, 12:00 AM
    small bug in HaxeUI component explorer for tabs: checking then unchecking the "disabled" box leaves the tabview enabled but the mouse cursor still displays the "disabled" cursor hovering over the tabs themselves
  • h

    hallowed-ocean-84954

    12/21/2022, 3:46 AM
    Just a quick FYI on this one. You need to set both selectable and mouseEnabled to get this to work on OpenFL.
  • b

    bright-gpu-74537

    12/21/2022, 7:56 AM
    fixed
  • b

    bright-gpu-74537

    12/21/2022, 7:57 AM
    this sounds like it needs to go in haxeui-hxwidgets somewhere...
  • b

    bright-gpu-74537

    12/21/2022, 7:58 AM
    what if you add that line here before the return: https://github.com/haxeui/haxeui-hxwidgets/blob/master/haxe/ui/backend/hxwidgets/builders/MenuBuilder.hx
  • b

    bright-gpu-74537

    12/21/2022, 7:59 AM
    actually, nvm, thats for context menus
  • b

    bright-gpu-74537

    12/21/2022, 7:59 AM
    here? https://github.com/haxeui/haxeui-hxwidgets/blob/master/haxe/ui/backend/hxwidgets/creators/MenuBarCreator.hx
  • b

    bright-gpu-74537

    12/21/2022, 8:00 AM
    or here? https://github.com/haxeui/haxeui-hxwidgets/blob/master/haxe/ui/backend/ScreenImpl.hx#L79-L83
  • f

    full-journalist-82607

    12/21/2022, 8:41 AM
    That were the first places I tried, but it didn't work. Here works https://github.com/haxeui/haxeui-hxwidgets/blob/0a7a17505f115fe8cf63d6ca7f95f20e14a71718/haxe/ui/backend/ScreenImpl.hx#L69
  • b

    bright-gpu-74537

    12/21/2022, 8:41 AM
    so not even in the resize handler, just the function that sets up the handler?
  • b

    bright-gpu-74537

    12/21/2022, 8:42 AM
    just feels like the total wrong place... but wx can be weird sometimes
  • b

    bright-gpu-74537

    12/21/2022, 8:43 AM
    and it defo didnt work as the last line on
    linkMenuBar
    ?
  • f

    full-journalist-82607

    12/21/2022, 8:43 AM
    No sorry it was one line up ..., it's in the resize handler ....
  • b

    bright-gpu-74537

    12/21/2022, 8:44 AM
    right
  • f

    full-journalist-82607

    12/21/2022, 8:44 AM
    Indeed, it didn't work in in the linkMenuBar of afterwards, but maybe it needs "the component to be ready" .
  • b

    bright-gpu-74537

    12/21/2022, 8:45 AM
    yeah, im guess that the linkMenuBar is called before the frame is truly ready
  • b

    bright-gpu-74537

    12/21/2022, 8:45 AM
    on your system at least
  • b

    bright-gpu-74537

    12/21/2022, 8:45 AM
    its fine this end
  • f

    full-journalist-82607

    12/21/2022, 8:46 AM
    Also, if I remember well, menu on right click didn't work for me on another project, now I wonder if it will work it's just shown too.
  • b

    bright-gpu-74537

    12/21/2022, 8:46 AM
    what about before or after this line: https://github.com/haxeui/haxeui-hxwidgets/blob/0a7a17505f115fe8cf63d6ca7f95f20e14a71718/haxe/ui/backend/AppImpl.hx#L165
  • b

    bright-gpu-74537

    12/21/2022, 8:49 AM
    i would defo expect context menus to be "fine" since thats a user interaction (i assume) so there shouldnt be any of this "is the frame initialized"... i mean, i assume
  • f

    full-journalist-82607

    12/21/2022, 8:49 AM
    It works there too 🙂
  • b

    bright-gpu-74537

    12/21/2022, 8:50 AM
    great... before and after? After feels like the more correct place since the wxFrame has been thawed
  • f

    full-journalist-82607

    12/21/2022, 8:50 AM
    after, didn't test before
  • b

    bright-gpu-74537

    12/21/2022, 8:51 AM
    Any chance of a PR, since i cant really test it (make sure to check for null since some apps wont have menubars)
  • f

    full-journalist-82607

    12/21/2022, 8:54 AM
    Once I have the null check is done. (if frame.menuBar != null (wxwidget's) makes it crashes, so I 'll just access the menuBar (haxeui's) of the Screen
1...134613471348...1687Latest