Quantcast
Channel: Small Basic
Viewing all articles
Browse latest Browse all 669

How to Make a Check Box - Small Basic Featured Article

$
0
0

Today's featured article is from .

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


Viewing all articles
Browse latest Browse all 669

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>