Skip to content

Tag: Beginner Tips

Creating a Number Class

In this tutorial I will show you how to create a Number class that can tell you when its value has been actually set, along with other methods to manage how it is used while demonstrating some common object-oriented techniques and features such as operator overloading. You’ll be able to create a Number from an Integer, Double or String.

Comments closed

Filtering the Debugger

Starting with Xojo 2023r1 you’ll find a new feature in Xojo’s Debugger panel that allows you to filter the objects and variables displayed, even between different project runs! This lets you stay focused on the more important objects and variables instead of scrolling through the list of all entries.

Comments closed

Testing REST-based Web Services

Using Xojo’s URLConnection to communicate with web services is pretty straightforward. But testing the actual REST API calls can get tricky. To make it easier to test and experiment with REST API calls, Paul created a app in Xojo for doing just this. He called it RESTy in its original format back in 2015. You can download the updated project here built with Xojo 2022r4.1.

Comments closed

Quick Tip: Opening, Shown, Closing and Closed

Knowing the firing order of the Opening event in Xojo Desktop and Mobile apps, and the Shown event for Xojo Web apps, is important to using these correctly for a control’s initialization. The same can be said for Closing and Closed events. Read on for a breakdown of this order for Desktop, Web and Mobile apps developed in Xojo.

Comments closed

Using Emojis in Xojo

Xojo has very good graphics support. You can drop images into your project and use them with several controls. You can use the various Paint events to draw your own graphics. And there’s another source of graphics you may not have considered: emojis. Emojis can be used anywhere that text can be used because they are simply Unicode characters. That means they can be used in textfields, buttons, labels, popup menus, listboxes and more.

Comments closed

Rotate that Picture!

Sometimes we need to rotate a Picture from portrait to landscape and vice versa. Since the introduction of the Graphics methods Translate and Rotate this is pretty simple to do! Continue reading and I will show you how to create a Method Extension for the Picture class that will be able to do that. This will work on Desktop and iOS projects by only copying and pasting the code, but you will need to make some changes to the example project for the Web version because of the need to convert Picture to WebPicture and back.

Comments closed