Demo : QuadClicks by Bill Jennings

Home

Maintaining checkbox states
Tidbits from the community
Liberty Basic 4
New Alternate Forum
Using the Tsunami Database
Wizard Framework
Links to LB Sites
Update on 10th Anniversary Contest
Extracting Icons And Saving Them As Bitmaps
Applying Symbolic Logic
QuadClicks
Simple Math For Moving Objects
Event Driven Programming - Part 2
The Beginners Series - Part 1

 

Bill has created a very ingenious demonstration here which can detect mouse clicks in non-rectangular areas. Here is what he says:

QuadClicks.bas - a demo for free use.
Detect left mouse click within a quadrilateral (4-sided figure).
A quad can be irregular (not necessarily rectangular).
Complex figures can be made of several overlapping quads.
Useful for odd-shaped bitmaps.

Coordinates of the four corners of the quad are defined in a Data line.
Any corner can be first and the others can be listed clockwise or
counter-clockwise, but define them consecutively (no jumping around).
Bill Jennings, Dec 2002.

Thanks Bill. I was concerned that the source code would suffer too much damage due to line wraps if I simply appended it to the newsletter in raw text form, so I have chosen to send the demo as an attached file in the newsletter archive. The source code for the demo is called QuadClicks.bas.

Home

Maintaining checkbox states
Tidbits from the community
Liberty Basic 4
New Alternate Forum
Using the Tsunami Database
Wizard Framework
Links to LB Sites
Update on 10th Anniversary Contest
Extracting Icons And Saving Them As Bitmaps
Applying Symbolic Logic
QuadClicks
Simple Math For Moving Objects
Event Driven Programming - Part 2
The Beginners Series - Part 1