hallowed-ocean-84954
06/25/2022, 2:03 AM<textfield id="ypixels" placeholder="256"/>
error:
....haxelib/haxeui-core/git/haxe/ui/macros/ComponentMacros.hx:778: characters 40-78 : Int should be String
....haxelib/haxeui-core/git/haxe/ui/macros/ComponentMacros.hx:778: characters 40-78 : ... For function argument 'value'
source/MainView.hx:9: lines 9-48 : ... Defined in this class
Is there a w/a ? Do I need to convert the int to a string somehow ?hallowed-ocean-84954
06/25/2022, 2:10 AMbright-gpu-74537
06/25/2022, 7:37 AMbright-gpu-74537
06/25/2022, 7:40 AMplaceholder="'256'" or placeholder="${Std.string(256)}" and b) you shouldnt have to, haxeui should be converting between these things automatically (it looks up the target property type and does the conversion), so something wrong is happening with placeholder, or int -> stringbright-gpu-74537
06/25/2022, 8:26 AMsilly-alligator-51979
06/25/2022, 10:09 AMdialog.options = {
readContents: true,
multiple: true,
readAsBinary: false
};
haxe 4.2.5
haxeui-core 1.4.0
haxeui-hxwidgets 1.4.0
hxWidgets 1.9.0
wxWidgets 3.1.5silly-alligator-51979
06/25/2022, 10:20 AMicy-zebra-52882
06/25/2022, 10:46 AMDialogs.openFile or something with that kind of namesilly-alligator-51979
06/25/2022, 10:57 AMsilly-alligator-51979
06/25/2022, 10:57 AMbright-gpu-74537
06/25/2022, 10:57 AMbright-gpu-74537
06/25/2022, 10:58 AMbright-gpu-74537
06/25/2022, 11:00 AMsilly-alligator-51979
06/25/2022, 11:04 AMsilly-alligator-51979
06/25/2022, 11:04 AMbright-gpu-74537
06/25/2022, 11:09 AMthis you could use Screen.instance.frame. But keep in mind this is all very specific to hxWidgets. If you use the haxeui methods then you don't have to think about any of this and your app will be cross framework / platformbright-gpu-74537
06/25/2022, 11:15 AMhaxelib git haxeui-core https://github.com/haxeui/haxeui-core
haxelib git haxeui-hxwidgets https://github.com/haxeui/haxeui-hxwidgets
haxelib git hxWidgets https://github.com/haxeui/hxWidgetsbright-gpu-74537
06/25/2022, 11:16 AMbright-gpu-74537
06/25/2022, 11:16 AMbright-gpu-74537
06/25/2022, 11:17 AMhaxe
Dialogs.openBinaryFile("Open Image File", FileDialogTypes.IMAGES, function(selectedFile) {
trace(selectedFile.bytes.length);
});bright-gpu-74537
06/25/2022, 11:23 AMFileDialogTypes.IMAGES is just a helper and is basically just: [{label: "Image Files", extension: "png, gif, jpeg, jpg, bmp"}]bright-gpu-74537
06/25/2022, 11:25 AM[{label: "Image Files", extensions: ["png", "gif", "jpeg", "jpg", "bmp"]}]silly-alligator-51979
06/25/2022, 11:35 AMbright-gpu-74537
06/25/2022, 11:47 AMbright-gpu-74537
06/25/2022, 11:48 AMbright-gpu-74537
06/25/2022, 12:22 PMbright-gpu-74537
06/25/2022, 12:23 PMhaxe
Screen.instance.frame.dragAcceptFiles(true);
Screen.instance.frame.bind(hx.widgets.EventType.DROP_FILES, function(e:hx.widgets.Event) {
var dfe = e.convertTo(hx.widgets.DropFilesEvent);
trace("on dropped - " + dfe.numberOfFiles);
theLabel.text = dfe.files.join("\n");
});silly-alligator-51979
06/25/2022, 12:23 PMbright-gpu-74537
06/25/2022, 12:24 PM#if haxeui_hxwidgets)silly-alligator-51979
06/25/2022, 12:52 PM