The sample in the attachment showcases the detection of clicks inside a picturebox control, the use of BeginDraw/EndDraw methods as well as the use of the SetFrameRate method.
Notice that even though the track bar allows you to set the frameRate up to 1000 frames per second (minimum is 30, maximum is not capped), the real refresh rate will be capped by your system resources. On my end, the maximum I could observe with this program was ~92fps.
Compile it, run it and then click the black picturebox control.
PS: Distributing a program that uses the InForm library requires you to ship your own
.bas and
.frm files and any extra files your program uses as well as the extra files you will find in the zip below. They are:
- falcon.h: c++ library to render fonts without clipping glitches.
- InForm/InForm.ui: the library itself.
- InForm/xp.uitheme: the rendering engine with Windows XP's imagery for controls.
- InForm/InFormVersion.bas: where the current version of the library is defined.
However, if you distribute a compiled binary, you don't need to ship any of these files, as none are needed at runtime.