Author Topic: [InForm Demo] ClickTheVoid  (Read 24414 times)

0 Members and 1 Guest are viewing this topic.

FellippeHeitor

  • Guest
[InForm Demo] ClickTheVoid
« on: June 05, 2018, 03:12:12 pm »
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.
clickthevoid.PNG
* clickthevoid.PNG (Filesize: 156.92 KB, Dimensions: 396x420, Views: 826)
* ClickTheVoid.zip (Filesize: 77.41 KB, Downloads: 529)
« Last Edit: June 05, 2018, 04:18:55 pm by FellippeHeitor »

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: [InForm Demo] ClickTheVoid
« Reply #1 on: June 06, 2018, 10:08:12 am »
  • Best Answer
  • Dang! I am only getting max of 72 or so, though I can see it start at higher numbers.

    FellippeHeitor

    • Guest
    Re: [InForm Demo] ClickTheVoid
    « Reply #2 on: June 06, 2018, 10:13:10 am »
  • Best Answer
  • Try setting the frame rate to maximum and click clear so it'll reset the counter and give a more realistic number.

    Offline bplus

    • Global Moderator
    • Forum Resident
    • Posts: 8053
    • b = b + ...
      • View Profile
    Re: [InForm Demo] ClickTheVoid
    « Reply #3 on: June 06, 2018, 10:37:21 am »
  • Best Answer
  • Yes, did that.( intel core i5 7th gen) with browser on

    Offline johnno56

    • Forum Resident
    • Posts: 1270
    • Live long and prosper.
      • View Profile
    Re: [InForm Demo] ClickTheVoid
    « Reply #4 on: June 06, 2018, 08:21:58 pm »
  • Best Answer
  • Yeah. I cranked mine up to the max fps and got 81. But, I did notice, if I did nothing the fps count would increment automatically by one after a few seconds.
    (IntelCore i5-4460 CPU @ 3.2GHz x 4)

    J
    Logic is the beginning of wisdom.