Skip to content

Category: Tips

sort code tips and tricks

Web Tip: Blocking the Back Button

You are navigating Xojo web 2.0 apps and your use the browser’s back button to return to the previous page of the app. But rather than taking you to the previous page, you get a message that the app lost connection to the sever. This is even more common on a mobile device where we tend to use the back gesture to return to the previous page.

Comments closed

A Gem in Xojo 2021r2

The ability to specify “White Space” for the trim functions was introduced and largely ignored apart from the release notes. Using Trim (or LTrim or RTrim) will remove spaces from the beginning, end or both of your string. The new function allows you to specify what you want to trim.

Comments closed

New Additions to PDFDocument

Xojo 2021r2 brings more enhancements, new features and a bunch of bug fixes to the PDFDocument class. Among these, probably the most important is the arrival of PDFDocument for iOS. But you’ll also find new features like adding annotations and links to your PDFs, new PDF viewer options and the ability to jump to a specific page in a PDF.

Comments closed

Enumeration Enhancements

Xojo 2021r2 introduces a couple of enhancements to Enumerations in Xojo. The enumeration editor now shows a preview of what the value will be so there’s no more guessing or counting. In addition, we’ve added a new Binary option which allows you to automatically create sets that aren’t mutually exclusive.

Comments closed

Tip: Setting the Background Color in WebDialogs

I was recently asked how to set the background color in a WebDialog. There are a few approaches you can take to accomplish this. The simplest one is to add a rectangle as a layer of the WebDialog and set a color to it. In this tutorial you’ll learn how to set the background color by accessing the style property of the object in the DOM model and setting it there. 

Comments closed