How to Make a Check Box - Small Basic Featured Article

Today's featured article is from Nonki Takahashi.

We're going to explain the design of the check box and a sample here.

To get the code, latest version, and the full explanation, see the Wiki article:

Small Basic: How to Make a Check Box

 

Design

To make a check box, we need a box, a check mark, and mouse event handler.  A box can be drawn with GraphicsWindow.FillRectangle().  A check mark can be drawn with Shapes.AddText() and "Wingdings 2" font.  In mouse event handler, let's check whether mouse is clicked in the box or not and change the state of the check box.

Sample Program

I uploaded a sample program as TCX734 .  This program can generate a PIN code.  Including alphabet or not can be select with our check box.

    

 

Other Languages

 This article is also available in French:

 

To get the code, latest version, and the full explanation, see the Wiki article:

Small Basic: How to Make a Check Box

  

Enjoy!

Small and Basically yours,

   - Ninja Ed