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

    best-agent-85158

    08/07/2022, 11:56 AM
    thats the platform im using dialog on
  • b

    bright-gpu-74537

    08/07/2022, 11:56 AM
    same
  • b

    bright-gpu-74537

    08/07/2022, 11:57 AM
    works fine
  • b

    best-agent-85158

    08/07/2022, 11:57 AM
    but realy i dont wanna bother you about that because at least for me, im not sure im not doing stuff wrong
  • b

    bright-gpu-74537

    08/07/2022, 11:58 AM
    well, as i mentioned, i dont really think you can do something wrong here... i mean, you are adding components to the dialog, that should add them to the content, not the actual dialog... so i dont really see how it can be anything but haxeui that is at fault here
  • b

    bright-gpu-74537

    08/07/2022, 11:59 AM
    if you can send over the full source for the dialog in question, it would help 🙂
  • b

    bright-gpu-74537

    08/07/2022, 12:01 PM
    do you, by chance, have something like
    bb.addClass("dialog-container");
    ?
  • b

    bright-gpu-74537

    08/07/2022, 12:01 PM
    if you do, then i can repro and know what the problem is:
  • b

    bright-gpu-74537

    08/07/2022, 12:03 PM
    (that issue is fixed now, so it might be worth pulling latest and seeing if it fixes it for you)
  • s

    silly-alligator-51979

    08/08/2022, 9:19 AM
    Is it possible to add an icon for a running program to hxwidgets? So that it is on the taskbar and the top panel where the name is displayed. An icon substituted through rcedit is not displayed this way in a running program.
  • b

    best-agent-85158

    08/08/2022, 9:22 AM
    how do i get the extension of a file opened with
    Dialog.openFile()
    ? theres no
    extension
    field in
    SelectedFileInfo
  • b

    bright-gpu-74537

    08/08/2022, 9:24 AM
    you might have to dip into wxwidgets (hxwidgets) in order to do that... not sure what the "wx way" is to achieve that
  • b

    bright-gpu-74537

    08/08/2022, 9:25 AM
    testing now my end... openfl html5, right? Btw, did the dialog fix work for you?
  • b

    best-agent-85158

    08/08/2022, 9:26 AM
    it didnt, but not that important rn because im just using a new window
  • b

    bright-gpu-74537

    08/08/2022, 9:26 AM
    hmmm, fair enough - though i would like to understand what the issue is - since others might face the same thing
  • b

    bright-gpu-74537

    08/08/2022, 9:28 AM
    Copy code
    haxe
            openFile.onClick = function(_) {
                Dialogs.openFile(function(button, files) {
                    trace(files);
                });
            }
  • b

    bright-gpu-74537

    08/08/2022, 9:28 AM
    Copy code
    src/MainView.hx:18: [{
            name : abstract-canvas.mp4, 
            isBinary : false
        }]
  • b

    bright-gpu-74537

    08/08/2022, 9:29 AM
    there is no specific extension field if thats what you mean, but easy enough to get:
    var ext = files[0].name.split(".").pop()
  • p

    powerful-morning-89

    08/08/2022, 9:32 AM
    haxe.io.Path.extension(fileName)
  • b

    bright-gpu-74537

    08/08/2022, 9:32 AM
    ☝️ even nicer
  • s

    silly-alligator-51979

    08/08/2022, 10:09 AM
    Something like that? wxFrame::SetIcon
    appicon ICON "myapp.ico"
    #include "wx/msw/wx.rc"
    But I don’t know how to write in Cpp, I don’t know how it can be connected to the files that I have in bin/src and bin/include
  • b

    bright-gpu-74537

    08/08/2022, 10:11 AM
    lemme check if setIcon is exposed in hxwidgets (it may not be)
  • s

    silly-alligator-51979

    08/08/2022, 10:20 AM
    hmm, it seems to refer to wxTopLevelWindow https://docs.wxwidgets.org/3.0/classwx_top_level_window.html
  • b

    bright-gpu-74537

    08/08/2022, 10:25 AM
    yeah, thats not exposed - ill expose it shortly, TaskBarIcon is exposed however, but in my initial tests it didnt seem to do anything, so id like to understand whats going on there also
  • b

    bright-gpu-74537

    08/08/2022, 10:36 AM
    ah, ok, taskbaricon is working... i thought it would be the icon on the taskbart, but its the one here:
  • b

    bright-gpu-74537

    08/08/2022, 10:45 AM
    ok, so if you pull latest hxWidgets setIcon is exposed now... you can access it from a haxeui-hxwidgets app with:
    Copy code
    haxe
    Screen.instance.frame.setBitmap(hx.widgets.Bitmap.fromHaxeResource("haxeui-core/styles/default/haxeui.png"));
  • s

    silly-alligator-51979

    08/08/2022, 10:45 AM
    Thanks!
  • b

    bright-gpu-74537

    08/08/2022, 10:46 AM
    keep in mind that, by doing this, your using wxwidgets specific calls, so your app is not longer "multi-framework"... im sure you aware of this, but just to reiterate 🙂
  • s

    silly-alligator-51979

    08/08/2022, 11:42 AM
    For some reason, it worked for me only once. When I changed the path, this error appeared, changed it a few more times, eventually changed it to the original one and everything is the same
  • b

    bright-gpu-74537

    08/08/2022, 12:40 PM
    what does the code look like that is setting / resetting it?
1...120212031204...1687Latest