What changed with canvas?

Hello,

I am really an occasional programmer and I have a program I wrote back in 2010 (RealBasic), then recompiled in 2018 in 64 bit.

One (not really important) element is a small picture on the main window. I had done that with canvas.

I am now trying to modify the user interface a little (using 2025r3), and everything works except that canvas. Everything looks OK in the development window, but when I run (or compile) the program the graphic is gone.

The same code (except text size) compiled with the graphics with 2024r4 this spring.

The graphic is set as a backdrop to the canvas.

I can’t figure out what has changed, or if I should change or add some property so that the picture shows again.

I’m thankful for any suggestion,

Thierry

Going from 2018 to 2025R3 is a huge jump

There is just so much to guess at from API1 to API2

Best bet is to zip up a demo and upload it here so others can test and help

2 Likes

Screenshot between old and new?

Maybe newer version respects resolution of the file and shows it smaller/bigger.

1 Like

As I said everything works with 2024r2 (Linux) and the pictures don’t show with 2025r3.

So here in the zip file:

Version 0.9.9 runs and compiles correctly with Xojo 2024r2

Same code, loaded in Xojo 2025r3 and saved as version 1.0.0 runs a first time correctly (with images), once saved with 2025r3 no mor images in the run or build.

NO change in the code, just saving - so there must be something changed in Xojo that I dont figure out.

Thierry

XojoCode.zip (1.7 MB)

Your ZIP file is missing the images - include them and re-upload, please.

Could you use an ImageViewer instead?

Here they are

XojoCode.zip (1.7 MB)

Sorry, answered the wrong reply


As to the ImageViewer, I tried, same thing: the pictures don’t show.

This is how it looks on my iMac:

Thank you. So it works on a Mac. May be either a problem on Linux, or on “my” Linux. I’ll try experimenting on Ubuntu as that seems to be Xojo’s Linux base.

Thierry

Have you tried the paint event instead of using a backdrop?

4 Likes

maybe disable the hi dpi option in project, where you need multiple images for one.

Oh
 make sure the resolution of the pictures you dragged into the images are correct. macOS is very forgiving but the other platforms may not be. The 1x image should be 72ppi and the 2x image should be 144ppi.

2 Likes

Sorry, I was busy and made some tests. Here are the results:

  • Linux: everything is fine with 2024r4.2; Pictures do not display with 2025r3. none of the suggestions worked, maybe it’s related to the distribution I use (MX, not Ubuntu).
  • Windows (run only, no compile (no license): the program runs and displays images both on 2024r4.2 and 2025r3.
  • MacOS: Michael Hussmann has shown that it displays the images correctly.

So the problem seems “Linux only”. Can’t call that “solved” but it’s an answer. I don’t need 2025r3 for what I do so I’ll simply remain at 2024R4.2.

My idea was to look if the program would compile with the actual version, in case we should want a Windows version - but anyway at the new prices I don’t think my club would put $500 to compile the program (and I will continue using it on Linux).

Thank you all for the help, it did clear the matter (mostly).

Thierry

have you tried saveing the pictures into a new format with a paint app?
was the source of pictures www?

No, I have not. The pictures where processed through the Gimp, the original was home made by someone of the club.

Once again, it does work until 2024r4.2, it does not with 2025r3 (on Linux), and my question was “what changed”. Seems no one knows, but something did.

I’m not going to search more at the moment as there is nothing in 2025r3 that justifies it (for me). The windows version does work, there the problem is the license price, so if someone wants a windows version of the software, they’ll have to finance it (and I doubt they would).

Thierry

I had a look at your provided project files on my MX Linux 25 with Xfce and Xojo 2025r3.

  • The version 0.9.9 showed the images, both on Window1 and InfoWin
  • Version 1.0.0 did not show any images on either window
  • Version 0.9.9 did show the images, even after it has been saved and reloaded, with and without altering it first.

So, I conclude the project file for 1.0.0 is somehow corrupted. I tried to find, what’s actually wrong, but I could not find anything suspicious.

I finally changed the Linux App Name and that “solved” the issue. It turns out, Xojo does not like dots ‘.’ in that name :roll_eyes: .

(You should create an issue)

2 Likes

You are perfectly right! Thank you!

Wow, I’d never have thought it could be the name! How did you think of that?

I’ll try to create an issue, but its a perfectly usable “workaround” for the time.

Thierry