I’m currently using Xojo mainly to create Windows programmes and am in the process of replacing some of my work-related database-driven VB.NET programmes with it (switching from Access to SQLite). As well as Xojo’s simplicity, it also suits us that we can create a macOS version for each programme, as we’re seeing more and more Mac laptops in our classes.
Unfortunately, I do get the impression that the Windows compiler is being somewhat neglected.
At the moment, I’m working on a problem with the Windows DesktopRectangle. I use this to group controls (no, the GroupBox is not an alternative!).
Unfortunately, the ‘Border’ property appears to be faulty. When I specify a border of 1 or 2 pixels, it appears differently on each of the four sides of the box.
I’ve also tried to solve this using a custom control with the DesktopCanvas. Unfortunately, the DesktopCanvas is very slow in the Paint method.
Does anyone have a solution to this problem?
Canvas is incredibly fast. If you skip ahead to 16 seconds in this video, this entire UI is one giant canvas. It’s handling audio waveforms, mouse clicks and drags, logical breaking up of track elements, animations and more all in a canvas. You’d probably be able to create a whole video game in a Canvas and get playable frame rates.
I’d highly encourage you to experiment more and see what is slowing down your code, because canvases are lightning fast when properly implemented.