Skip to content

Category: General

#1 on the Xojo Roadmap: Android

We’re hard at work on Xojo’s upcoming Android support — it is our top priority. As we’ve discussed previously, you can see in the current versions of Xojo that the latest iOS controls now start with “Mobile” in their name. Although Android and iOS will start off as different project types, implementing the “Mobile” prefix is an important step to complete so you will see similar controls when Android support is available.

Comments closed

2020: A Year of Change

Despite the uncertainty, 2020 has been a terrific year for Xojo by nearly every measure. We will continue to plan and be hopeful for the future and we look forward to seeing you in person at XDC London in October 2021. Best wishes to everyone for a happy and healthy 2021.

Comments closed

Top-Rounded Rectangle

On the forum a user asked if there was a way to create a rectangle with only the top left and top right corners being rounded. Xojo’s built-in RoundRectangle control draws with all four corners rounded, so that was not an option.

One solution is to use a GraphicsPath to draw exactly what you want. With a GraphicsPath you can use the AddArc() method to add rounded corners and then draw the lines for the rest of the rectangle.

Comments closed

Singletons and the Web

The singleton design pattern has its place in the desktop environment where there will be only one user running the application, and when that user quits the app the singleton is destroyed. This doesn’t fit the requirements of a multi-user environment such as the web where many users will be accessing the application at once. I recently came across this issue when porting a desktop app to the web which required me to design a singleton class that is session sensitive. Here’s a walk through of how I achieved my goal. Please note that scopes are particularly important when creating this class.

Comments closed