Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 2.1

COLUMN

Ask The Experts

Issue: 2.1 (August/September 2003)
Author: Seth Willits with Thomas Reed
Article Description: No description available.
Article Length (in bytes): 4,286
Starting Page Number: 32
Article Number: 2115
Resource File(s):

Download Icon 2115.zip Updated: 2013-03-10 14:50:56

Related Link(s): None

Excerpt of article text...

Q: How can I set the alignment of an Editfield? I can't to work if I select the text and use .SelAlignment, or even if I simply use the Alignment property in the properties window. How do I do it?

An Editfield must be of the multiline variety in order to support text alignment. An annoying limitation, yes, but if you want a single line editfield, it's really easy to work around.

In the KeyDown event of the field (you should probably make an EditField subclass so you can reuse it in many different projects without having to recreate this for every field in every project) place the following code:

...End of Excerpt. Please purchase the magazine to read the full article.