Creating custom controls

Xojo makes it possible for anyone to create custom controls for their projects. And its not really that hard. Yet many people don’t bother to take advantage of this capability and then try to place many independent instances on a layout and make several controls behave as though they are a single control.

This quick tutorial is aimed at trying to convince you that it really is worth investing the little bit of time required to create your own custom controls and then reuse them as many times as you want.… Read the rest

Subclasses are your friends

There are a LOT of things that you will hav a hard time doing if you only ever add instances of controls from the Library in Xojo to your layouts. And you will spend a LOT of time trying to sort out how to beat them into submission to do what you want with some combination of handling the events, properties and methods on your layout.… Read the rest

Why subclass ?

A recent discussion lead to an odd question. Why do you need to subclass things in Xojo ? Whats the point since they give you all these great controls and classes ? What would make you WANT to subclass things instead of just implementing the events of the existing controls ?

I was sort of surprised at this.… Read the rest

Try Catch Finally

Xojo supports the use of exceptions and the error handling machnisms that makes possible.

in order to use exceptions effectively you need to use a language feature called a Try block. It has several parts to it. First there is the initial TRY statement which opens a new scope level AND delimits where the TRY block starts.… Read the rest

Really ?

This is so annoying. I have no bluetooth mouse powered on but I do have a USB one and it works fine. And the mouse control panel says it cannot find it so I cannot change the tracking speed. System Report knows there’s a mouse connected as you can see.

Turn the bluetooth mouse on and the panel finds that and now I can adjust the tracking speed.… Read the rest

= vs IS

A good question on the discord server I participate in prompted a good question. It started with IS and = are just synonyms right?

It turns out that MOST times this may be true. But not always. And that little “but not always” can get you in trouble if you dont know when the difference is important.… Read the rest

WAY off topic but so what ????

It is my blog and this is something I’ve been working at for months.

I PASSED my on snow certifications for the Canadian Ski Patrol and now get to do a few shifts working with more senior patrollers before they turn me loose and I can patrol on my own !

What an awesome way to spend New Years Day !!!!!!… Read the rest