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

    bright-gpu-74537

    07/22/2022, 11:35 PM
    its really up to you ofc, but i just think the idea of logic in xml is... ... smelly... the fact it even exists in haxeui doesnt sit well - i wont remove it, but i probably should 🙂
  • b

    bright-gpu-74537

    07/22/2022, 11:36 PM
    (for modules its makes sense, thats compile time stuff - it seems i extended it to the xml parser in general)
  • b

    big-angle-82801

    07/22/2022, 11:37 PM
    Yh, I should probably handle it properly, I'm gonna get this done tomorrow probably though bc I'm getting tired of coding for this evening 😅 I agree that it doesn't feel right to have logic in an xml like that
  • b

    bright-gpu-74537

    07/22/2022, 11:39 PM
    it happens though, and even without xml, you can end up putting debug logic in dumb places... so yeah, its a tough one... sleep on it - the solution will present itself to a clear mind 🙂
  • b

    big-angle-82801

    07/22/2022, 11:43 PM
    Yes, that's what usually happens 😅 Thanks for the advice!
  • m

    modern-forest-71329

    07/23/2022, 3:41 AM
    Hi, using haxeui-html5 is there a way to add an iframe tag (both from code and xml) to embed another html document?
  • b

    bright-gpu-74537

    07/23/2022, 7:46 AM
    you can by making a custom component
  • b

    bright-gpu-74537

    07/23/2022, 7:58 AM
    eg:
  • b

    bright-gpu-74537

    07/23/2022, 8:07 AM
    (i think ill add the above as an example in the component explorer as its probably quite useful for other to see how things are wired up)
  • b

    bright-gpu-74537

    07/23/2022, 8:29 AM
    ok, added
  • m

    modern-forest-71329

    07/23/2022, 1:28 PM
    Wow, thanks
  • e

    elegant-twilight-61392

    07/23/2022, 4:10 PM
    what would be the "best" backend to pick if i wanted to make a desktop app that works on both windows and linux. i know i could use like openfl but afaik that wouldnt follow any themeing on a linux DE
  • b

    bright-gpu-74537

    07/23/2022, 4:12 PM
    if you are after an OS native app then your only option really is haxeui-hxwidgets
  • e

    elegant-twilight-61392

    07/23/2022, 4:13 PM
    is there a pacman package for wxwidgets?
  • e

    elegant-twilight-61392

    07/23/2022, 4:14 PM
    the hxwidgets readme only shows apt
  • b

    bright-gpu-74537

    07/23/2022, 4:14 PM
    wxwidgets packages are likely crazy out of date - my advice is build it from sources - its super easy on linux
  • e

    elegant-twilight-61392

    07/23/2022, 4:14 PM
    true
  • b

    bright-gpu-74537

    07/23/2022, 4:15 PM
    https://github.com/haxeui/hxWidgets#building-wxwidgets-from-source-linux--osx
  • e

    elegant-twilight-61392

    07/23/2022, 4:16 PM
    although pacman is usually fairly up to date if the package is actually maintained at all because thats just how arch is
  • e

    elegant-twilight-61392

    07/23/2022, 4:16 PM
    unlike apt
  • p

    powerful-morning-89

    07/23/2022, 5:45 PM
    Arch has wxWidgets 3.2.0, which is from 7 July.
  • p

    powerful-morning-89

    07/23/2022, 5:54 PM
    There is a problem though, the Arch package doesn't ship with
    wx-config
    .
  • p

    powerful-morning-89

    07/23/2022, 6:05 PM
    Ah no, the gtk version does ship with
    wx-config
    .
  • p

    powerful-morning-89

    07/23/2022, 6:09 PM
    Looks like there's breaking changes in wxWidgets 3.2
    Copy code
    Error: ./src/hx/widgets/TaskBarIcon.cpp: In member function ‘void hx::widgets::TaskBarIcon_obj::setIcon(hx::widgets::Icon, String)’:
    ./src/hx/widgets/TaskBarIcon.cpp:87:46: error: cannot convert ‘wxIcon’ to ‘const wxBitmapBundle&’
       87 | HXDLIN(  27)            (*(_hx_tmp)).SetIcon(_hx_tmp1,_hx_tmp2);
          |                                              ^~~~~~~~
          |                                              |
          |                                              wxIcon
    In file included from /usr/include/wx-3.2/wx/taskbar.h:89,
                     from ./src/hx/widgets/TaskBarIcon.cpp:18:
    /usr/include/wx-3.2/wx/gtk/taskbar.h:18:48: note:   initializing argument 1 of ‘virtual bool wxTaskBarIcon::SetIcon(const wxBitmapBundle&, const wxString&)’
       18 |     virtual bool SetIcon(const wxBitmapBundle& icon, const wxString& tooltip = wxString()) wxOVERRIDE;
          |                          ~~~~~~~~~~~~~~~~~~~~~~^~~~
    ./src/hx/widgets/TaskBarIcon.cpp: In member function ‘void hx::widgets::TaskBarIcon_obj::setBitmap(hx::widgets::Bitmap, String)’:
    ./src/hx/widgets/TaskBarIcon.cpp:109:46: error: cannot convert ‘wxIcon’ to ‘const wxBitmapBundle&’
      109 | HXDLIN(  48)            (*(_hx_tmp)).SetIcon(_hx_tmp1,_hx_tmp2);
          |                                              ^~~~~~~~
          |                                              |
          |                                              wxIcon
    /usr/include/wx-3.2/wx/gtk/taskbar.h:18:48: note:   initializing argument 1 of ‘virtual bool wxTaskBarIcon::SetIcon(const wxBitmapBundle&, const wxString&)’
       18 |     virtual bool SetIcon(const wxBitmapBundle& icon, const wxString& tooltip = wxString()) wxOVERRIDE;
          |
  • m

    modern-forest-71329

    07/23/2022, 7:06 PM
    How does the link component work? I can't find how to set its url. Or maybe I'm looking were I shouldn't for a hyperlink?
  • b

    bright-gpu-74537

    07/23/2022, 8:34 PM
    i think this is fixed... are you messing with git hxwidgets?
  • b

    bright-gpu-74537

    07/23/2022, 8:34 PM
    it doesnt do anything really by default, just an click event
  • p

    powerful-morning-89

    07/24/2022, 6:51 AM
    Just pulled the latest commit, still the same error.
  • b

    bright-gpu-74537

    07/24/2022, 7:30 AM
    i thought this should fix it: https://github.com/haxeui/hxWidgets/commit/2142a79eb8abfeccafed16a033a3b8ecba1e5b1e
  • b

    bright-gpu-74537

    07/24/2022, 7:30 AM
    maybe its not detecting the versions correctly
1...118211831184...1687Latest