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

    bright-gpu-74537

    12/26/2022, 5:50 PM
    well, it makes sense that yanks dont call themselves yanks... its a nickname, so wouldnt make sense
  • r

    refined-laptop-39041

    12/26/2022, 5:50 PM
    It is usually only used in the context of the northern states
  • b

    bright-gpu-74537

    12/26/2022, 5:50 PM
    oh right, like yankees... ie the civil war... i wonder if thats where it came from... sounds likely
  • f

    full-journalist-82607

    12/26/2022, 5:54 PM
    From wiktionary yankee
    Copy code
    First attested in 1683, as a name applied disparagingly by Dutch settlers in Nieuw Amsterdam (New York) to English colonists in neighboring Connecticut. It may be from Dutch Janke (β€œLittle John”), the old diminutive form of the common personal name Jan, or it may be from Jan Kees, the familiar form of "Johan Cornelius", or a variant of Jan Kaas, literally "John Cheese", the generic nickname the Flemings used for Dutchmen. It originally seems to have been applied insultingly to the Dutch, especially freebooters, before they turned around and applied it to the English. In English it was a term of contempt (1750s) before it came to be used as a general term for "a native of New England" (1765). The shortened form Yank was first recorded in reference to "an American" in 1778. James Fenimore Cooper suggested that it was a corruption of "English" via the intermediate form "Yengeese."
  • f

    full-journalist-82607

    12/26/2022, 6:07 PM
    @:xml(' ') class A006 extends HBox { public function new() { super(); } @:bind(this, MouseEvent.CLICK) private function leftclick(e) { trace("left click"); } @:bind(this, MouseEvent.RIGHT_CLICK) private function rightclick(e) { trace("right click"); // doesn't work } @:bind(textArea, MouseEvent.CLICK) private function leftclickA(e) { trace("left click text area"); } @:bind(textArea, MouseEvent.RIGHT_CLICK) private function rightclickA(e) { trace("right click textarea"); // doesn't work } @:bind(lbox, MouseEvent.CLICK) private function leftclickB(e) { trace("left click text box"); } @:bind(lbox, MouseEvent.RIGHT_CLICK) private function rightclickB(e) { trace("right click box"); //works } }
  • b

    bright-gpu-74537

    12/26/2022, 6:14 PM
    i think arbitrary right clicks arent a think in wx... but ill have to check and confirm that
  • f

    full-journalist-82607

    12/26/2022, 6:18 PM
    Yes, found a minimal case for the right click
    Copy code
    haxe
    
    @:xml('
    <hbox width="100%" height="100%">
    <hbox width="25%" height="100%" backgroundColor = "0xFF0000">
    </hbox>
    <hbox width="25%" height="100%" backgroundColor = "0x00FF00">
    </hbox>
    
    <textarea id="textArea" width="25%" height="100%" />
    <hbox id="lbox" width="25%" height="20%" backgroundColor = "0x00FFFF">
    </hbox>
    </hbox>')
    class A006 extends HBox {
    
    
        public function new() {
            
            super();
        }
        @:bind(this, MouseEvent.CLICK)
        private function leftclick(e) {
            trace("left click");
        }
    
        @:bind(this, MouseEvent.RIGHT_CLICK)
        private function rightclick(e) {
            trace("right click"); // doesn't work
        }
    
        @:bind(textArea, MouseEvent.CLICK)
        private function leftclickA(e) {
            trace("left click text area"); 
        }
    
        @:bind(textArea, MouseEvent.RIGHT_CLICK)
        private function rightclickA(e) {
            trace("right click textarea");  // doesn't work
        }
        @:bind(lbox, MouseEvent.CLICK)
        private function leftclickB(e) {
            trace("left click text box");
        }
    
        @:bind(lbox, MouseEvent.RIGHT_CLICK)
        private function rightclickB(e) {
            trace("right click box");  //works
        }
    }
  • f

    full-journalist-82607

    12/26/2022, 6:19 PM
    Sorry updated the post, and did a mistake ... Hmm maybe that's the case. There's also the Right click that doesn't work on a text area for example. For this, it's mayble because wx widgets has a default action ( opening a popup), but I think you force to do your action. In fact I want to right click on a text area to show a menu, but maybe you couldn't override the right click but only the context menu
  • b

    bright-gpu-74537

    12/26/2022, 6:21 PM
    cool - ill check them out πŸ‘
  • f

    fierce-soccer-8550

    12/26/2022, 9:15 PM
    In case its an interest to anyone, here is a really simple chatbot in js. I have not done it with HaxeUI yet, it's on my todo list for this week.
  • r

    refined-laptop-39041

    12/27/2022, 12:26 AM
    not sketchy at all
  • a

    ambitious-knife-25690

    12/27/2022, 12:35 AM
    It does seem odd to share a non haxe thing in a haxe server
  • a

    ambitious-knife-25690

    12/27/2022, 12:36 AM
    a trojan horse for Oracle Corp
  • a

    ambitious-knife-25690

    12/27/2022, 1:58 AM
    @straight-insurance-13961 https://mobile.twitter.com/IanHarrigan1982/status/1490334378794307587
  • s

    straight-insurance-13961

    12/27/2022, 2:09 AM
    wow, this looks powerful!
  • s

    straight-insurance-13961

    12/27/2022, 2:09 AM
    thanks!
  • r

    refined-laptop-39041

    12/27/2022, 2:51 AM
    Javascript isn't by Oracle tho
  • p

    purple-businessperson-14467

    12/27/2022, 8:56 PM
    @fierce-soccer-8550 I just pushed a chatbot in haxeui. Its a playground thing for me so no instructions or anything, and all canned responses (res/chatbot.json) output in build/html5 https://github.com/hoseyjoe/Haxeui_Chat
  • b

    bright-gpu-74537

    12/27/2022, 8:58 PM
    pushed where?
  • f

    famous-alarm-22563

    12/27/2022, 9:07 PM
    oh no! harrigan won't have time to answer our silly haxeui questions now ;-;
  • b

    bright-gpu-74537

    12/27/2022, 9:11 PM
    that'll never happen! πŸ˜‰ Is there such a thing as a silly [haxeui] question? I cant think of one πŸ™‚
  • p

    purple-businessperson-14467

    12/27/2022, 10:54 PM
    https://github.com/hoseyjoe/Haxeui_Chat
  • b

    bright-gpu-74537

    12/28/2022, 7:58 AM
    ah, yeah, i remember this now πŸ™‚
  • b

    bright-gpu-74537

    12/28/2022, 7:59 AM
    haha
  • b

    bright-gpu-74537

    12/28/2022, 9:43 AM
    so the issue with this seems to be that the hbox in the vbox is "stealing" the right click event... which is really strange as that doesnt happen with the left click πŸ€”
  • b

    bright-gpu-74537

    12/28/2022, 9:45 AM
    OK, so thats interesting: for click im actually capturing raw down / up events and but with right click im not
  • b

    bright-gpu-74537

    12/28/2022, 9:46 AM
    and actually im mapping wxRIGHT_UP to haxeui RIGHT_CLICK... weird
  • b

    bright-gpu-74537

    12/28/2022, 10:18 AM
    alright, should be working now... fix was really simple in the end
  • b

    bright-gpu-74537

    12/28/2022, 10:19 AM
    Copy code
    haxe
        @:bind(this, MouseEvent.RIGHT_CLICK)
        private function rightclick(e:MouseEvent) {
            trace("right click main");
            e.cancel();
            var menu = new MainMenu();
            menu.show();
        }
    
        @:bind(textArea, MouseEvent.RIGHT_CLICK)
        private function rightclickA(e:MouseEvent) {
            trace("right click textarea");
            e.cancel();
            var menu = new TextFieldMenu();
            menu.show();
        }
    
        @:bind(redBox, MouseEvent.RIGHT_CLICK)
        private function rightclickRed(e:MouseEvent) {
            trace("right click redBox");
            e.cancel();
            var menu = new RedMenu();
            menu.show();
        }
    
        @:bind(blueBox, MouseEvent.RIGHT_CLICK)
        private function rightclickBlue(e:MouseEvent) {
            trace("right click blueBox");
            e.cancel();
            var menu = new BlueMenu();
            menu.show();
        }
  • b

    bright-gpu-74537

    12/28/2022, 10:19 AM
    Copy code
    haxe
    @:xml('
        <menu>
            <menu-item text="Text field menu 1" />
            <menu-item text="Text field menu 2" />
            <menu-item text="Text field menu 3" />
        </menu>
    ')
    class TextFieldMenu extends Menu {}
1...135613571358...1687Latest