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

    bright-gpu-74537

    12/29/2022, 8:15 AM
    although... i can defo see the benefit... even as a replacement for my "collapsible" if could have any components in the header
  • f

    fierce-salesmen-48333

    12/29/2022, 8:15 AM
    dont mean to interrupt but i have a really quick question that im not sure i found the answer to a while ago
  • b

    bright-gpu-74537

    12/29/2022, 8:15 AM
    like this:
  • b

    bright-gpu-74537

    12/29/2022, 8:15 AM
    shoot
  • f

    fierce-salesmen-48333

    12/29/2022, 8:15 AM
    is this vsc like code editor a feature or haxeui or something that has a source available? curious to see how it works
  • b

    bright-gpu-74537

    12/29/2022, 8:16 AM
    https://github.com/haxeui/haxeui-code-editor
  • f

    fierce-salesmen-48333

    12/29/2022, 8:16 AM
    thank you!
  • b

    bright-gpu-74537

    12/29/2022, 8:17 AM
    it uses monaco for html5, scintilla for native and fallsback to textarea on other backends... so, depending on your backend / framework it may not be useful to you 🙂
  • b

    bright-gpu-74537

    12/29/2022, 8:42 AM
    this could be nice:
  • b

    bright-gpu-74537

    12/29/2022, 8:42 AM
    Copy code
    xml
        <style>
            .frame .header {
                horizontal-align: right;
                vertical-align: center;
                margin-right: 10px;
                spacing: 5px;
            }
    
            #testFrame1 {
                icon: "haxeui-core/styles/default/haxeui_tiny.png";
            }
        </style>
        <hbox>
            <frame id="testFrame1" width="200" height="100" text="Foo">
            </frame>
    
            <frame id="testFrame2" width="200" height="100" text="Foo">
                <header>
                    <button text="Button" />
                </header>
            </frame>
    
            <frame id="testFrame3" width="200" height="100" text="Foo">
                <header>
                    <checkbox selected="true" />
                </header>
            </frame>
            <frame id="testFrame3" width="200" height="100" text="Foo">
                <header>
                    <switch selected="true" />
                    <progress indeterminate="true" width="50" verticalAlign="center" />
                </header>
            </frame>
        </hbox>
  • b

    bright-gpu-74537

    12/29/2022, 12:53 PM
    @purple-businessperson-14467 - i like!
  • f

    fierce-soccer-8550

    12/29/2022, 2:22 PM
    lmao, just read through he conversation about yanks. Good giggle for the mornin.
  • f

    full-journalist-82607

    12/29/2022, 4:31 PM
    I have a tiny hxwidgets bug : on html5 when you disable box with components, it disable everything inside it. It's not the case with hxwidgets
    Copy code
    @:xml('
    <vbox width="100%" height="100%">
    <button id="button" text="disable vbox"/>
    <vbox id="vbox">
    <button text="button 1"/>
    <button text="button 2"/>
    <button text="button 3"/>
    </vbox>
    </vbox>')
    class A004 extends VBox {
    
        @:bind(button, MouseEvent.CLICK)
        private function disableBox(e) {
            vbox.disabled = true;
        }
    }
  • b

    bright-gpu-74537

    12/29/2022, 4:35 PM
    weird, i would have expected that to work the same.. ill check it out
  • f

    full-journalist-82607

    12/29/2022, 5:41 PM
    Yeah , I think it should be quite easy to correct, maybe just walk through all the children components, and change windows enabled ? Must just be a line of code that was forgotten. Another one for today, when a card starts hidden, if you show it, it won't show the title
    Copy code
    haxe
    @:xml('
    <vbox width="100%" height="100%">
    <button id="button" text="show card"/>
    <button id="button2" text="hide card"/>
    <card  text="Some Card" id="card" width="300" height="600" hidden="true"/>
    </vbox>')
    class A006 extends VBox {
    
        @:bind(button, MouseEvent.CLICK)
        private function showCard(e)  {
            card.show();
        }
    
        @:bind(button2, MouseEvent.CLICK)
        private function hideCard(e) {
            card.hide();
        }
    }
  • c

    cool-musician-79004

    12/29/2022, 7:59 PM
    What technology uses hace-ui to render on Mac?
  • a

    ambitious-knife-25690

    12/29/2022, 8:00 PM
    for native targets it uses wxwidgets, otherwise for composites it uses the frameworks own renderering api's
  • a

    ambitious-knife-25690

    12/29/2022, 8:00 PM
    kha has dx12/vulkan etc, heaps sdl etc
  • p

    powerful-morning-89

    12/29/2022, 8:01 PM
    And on macOS, WxWidgets will use Cocoa/AppKit/whatever it's called now.
  • c

    cool-musician-79004

    12/29/2022, 8:04 PM
    Sorry, what are wxwidgets?
  • c

    cool-musician-79004

    12/29/2022, 8:04 PM
    Does it have the common accessibility issues of copy/paste, right click and other native integrations?
  • p

    powerful-morning-89

    12/29/2022, 8:05 PM
    TLDR: widget library that uses the OS widget toolkits, eg AppKit, UIKit, etc
  • a

    ambitious-knife-25690

    12/29/2022, 8:05 PM
  • a

    ambitious-knife-25690

    12/29/2022, 8:05 PM
    haxeui has this stuff available/mapped
  • c

    cool-musician-79004

    12/29/2022, 8:09 PM
    So I guess it's a manual process. All this cross platform frameworks have the same issues. But I guess is an acceptable tradeoff for not very user facing things
  • a

    ambitious-knife-25690

    12/29/2022, 8:09 PM
    not sure what you mean by manual, haxeui embodies the haxe philosophy really well
  • a

    ambitious-knife-25690

    12/29/2022, 8:10 PM
    maybe navigate the examples and have a play?
  • a

    ambitious-knife-25690

    12/29/2022, 8:10 PM
    these examples can be target hopped with no code change and work the same outside of unexpected/known bugs
  • f

    full-journalist-82607

    12/29/2022, 8:11 PM
    No, in fact it's not really amnual process. For example if you have a textfield, text area, if you're using wxwidgets, you'll automatically be able to copy/paste.
  • f

    full-journalist-82607

    12/29/2022, 8:12 PM
    For composite backends, it will depend, for example has some of them implemented, some of them not , copy/paste doesn't work on linux for example ( there's a bug in lime)
1...135913601361...1687Latest