=Custom Controls in a Box ([[user:lbjoseph]])= 
===Making your own custom control with a graphicbox in Liberty BASIC.=== 

Throughout the ages, mankind has sought after customization and personalization. Now, with the power of Liberty BASIC 4, you can create your very own custom control inside of a simple graphicbox. The following article expects you to be familiar with the Liberty BASIC language, as well as with Liberty BASIC's native [[http://www.libertybasicuniversity.com/lb4help/0D14N5.htm|drawing commands]].

In this article, we will discuss the techniques that I ([[user:lbjoseph]]) think are necessary to creating a good custom control.

==Part the First: The Container== 
First of all, we need some sort of object that we can manipulate to turn into our own object. The Liberty BASIC [[http://www.libertybasicuniversity.com/lb4help/13BQ1SK.htm|graphicbox]] is just the thing. Not only does it let you draw on it with LB's native drawing commands, but it lets you set event handlers to branch labels or subs when it is clicked, etc. This allows you to make a click-able control that looks beautiful to the eyes (some sarcasm implied).