nutritious-father-64388
08/16/2021, 4:31 PMbright-gpu-74537
08/16/2021, 6:00 PMnutritious-father-64388
08/16/2021, 6:03 PMuser
08/16/2021, 7:47 PMuser
08/16/2021, 8:28 PMnutritious-father-64388
08/16/2021, 9:45 PMsilly-pizza-19516
08/17/2021, 3:46 AMInvalid Object error and closes.
Second, tab indentation doesn't render at all. I thought this might be fixable by encapsulating all the text inside of <textformat> tag but that doesn't seem to have worked.
Finally, tabs aren't registered as valid input within the textarea, so tab indentation can't be input by the user. This doesn't work even with the focus navigation disabled.
Again apologies if this is the wrong channel, and thank you so far for all the help 😄bright-gpu-74537
08/17/2021, 5:00 AMbright-gpu-74537
08/17/2021, 5:02 AMuser
08/17/2021, 5:06 AMpopupMenu()
But I didn't find any haxeui API to do it, had to add some things to bind thatuser
08/17/2021, 5:06 AMbright-gpu-74537
08/17/2021, 5:07 AMbright-gpu-74537
08/17/2021, 5:07 AMuser
08/17/2021, 5:07 AMbright-gpu-74537
08/17/2021, 5:07 AMuser
08/17/2021, 5:07 AMbright-gpu-74537
08/17/2021, 5:08 AMbright-gpu-74537
08/17/2021, 5:08 AMuser
08/17/2021, 5:08 AMbright-gpu-74537
08/17/2021, 5:22 AMbright-gpu-74537
08/17/2021, 5:22 AMhaxe
@:bind(this, MouseEvent.RIGHT_CLICK)
private function onRightClick(e:MouseEvent) {
var menu = ComponentBuilder.fromFile("assets/menu1.xml");
menu.left = e.screenX;
menu.top = e.screenY;
Screen.instance.addComponent(menu);
}bright-gpu-74537
08/17/2021, 5:22 AMbright-gpu-74537
08/17/2021, 5:24 AMbright-gpu-74537
08/17/2021, 5:29 AMbright-gpu-74537
08/17/2021, 5:37 AMhaxe
@:bind(this, MouseEvent.RIGHT_CLICK)
private function onMyButton(e:MouseEvent) {
trace("right click");
var menu = ComponentBuilder.fromFile("assets/menu1.xml");
menu.left = e.screenX;
menu.top = e.screenY;
menu.ready(); // <------ this shouldnt be needed!
menu.show();
}bright-gpu-74537
08/17/2021, 5:39 AMuser
08/17/2021, 5:44 AMbright-gpu-74537
08/17/2021, 5:46 AMuser
08/17/2021, 5:46 AMbox.window.bind(EventType.CONTEXT_MENU, function(e) {
var menuObject = new hx.widgets.Menu();
// ... create items, keep references for menuObject.bind(EventType.MENU, ...), etc.
box.window.popupMenu(menuObject);
});bright-gpu-74537
08/17/2021, 5:47 AM