Skip to content

Category: Tutorials

tutorials, longer instructional posts, how to’s

Graphics: Right and Center Aligned Text

The DrawText method from the Graphics class offers a simple way to left-align text at the given X and Y coordinates, even applying a wrap value to wrap every line of the text block at the provided width value. Wouldn’t it be great to be able to do the same thing while aligning blocks of text to the right and center? Continue reading and I will show you a technique you can use as the starting point which you can fine-tune to your specific needs.

Comments closed

Simplified: Adding User Interface Controls at Runtime

The process of adding new controls to windows (or containers) at runtime has been greatly simplified. Instead of having to deal with control arrays, when you use Xojo 2021r3 or later you can call the new AddControl method on the DesktopWindow (or DesktopContainer) where you want to add the new control. Continue reading and I will show you how!

Comments closed

PDFDocument: Adding PDF Forms

Added to PDFDocument in Xojo 2021r3 is the ability to create PDF Forms (aka AcroForms) in your PDFs. This means that it is possible to add the following Form controls to a PDF: PDFButton, PDFTextField, PDFTextArea, PDFCheckBox, PDFRadioButton, PDFPopupMenu, PDFComboBox, PDFListBox

Comments closed