tryphotino / photino.NET

https://tryphotino.io
Apache License 2.0
884 stars 73 forks source link

ShowWindow doesn't seem to display text or title properly on MacOS or Linux #189

Closed raddevus closed 3 months ago

raddevus commented 3 months ago

I'm atttempting to use the following, very simple, ShowWindow() call in my sample Photino app: I'm using Photino.NET --version 3.0.14 and associated Photino.Native (>= 3.0.20) compiled & running on .NET Core 8.x

window.ShowMessage("first test","this is my text",PhotinoDialogButtons.OkCancel,PhotinoDialogIcon.Warning);

The ShowMessage looks correct in every way, except it doesn't display the entire title or text. Instead, it only displays the first letter of each of the Strings. Here's snapshot of the issue (running on macOS). It looks the same running on Linux. I don't have Windows available to try it there.

showWindowDialog
raddevus commented 3 months ago

Looks like window.ShowSaveFile() also exhibits a similar behavior. In this case I call the method and the default window title value is supposed to be "Save file" but as you can see (in the image below), it only displays the first character : S.

showSaveFile
MikeYeager commented 3 months ago

Thank you for finding this. We had a pull request a while back affecting .NET 7 and up that used some new features when doing DDLIMPORTs. So it's been broken for .NET 7 and up for a while now. It's fixed and will be in the next release of Photino.NET.