Recent

Author Topic: Beta Version of Super Gauge  (Read 437 times)

SandyG

  • Jr. Member
  • **
  • Posts: 94
Beta Version of Super Gauge
« on: December 07, 2024, 01:09:31 am »
Finally got enough of the code working to say the new version of the Gauge component is closer to being done.

Beta version included in the Test program (Program1.exe) on my google drive.

The test program tries to expose most all the properties of the gauge.

The program is broken down into tabs (well except for the main section on the left) where you can exercise various settings on the gauge. The main panel on the left is for changing the VALUE of the gauge so you can play with it. Buttons for quick settings and resetting things also provided for messing around.

On some of the tabs a memo exists with some info as well.

Drawing performance on the gauge (once rendered) is about 5x the original gauge component. The code base is still in need of cleaning, setting default values where appropriate, stuff like that, than finally remove all the TDTxxx and related naming too decouple from the existing component completely as it's not at all compatible with the old AnalogGauge. This will likely manifest as the SuperGauge component.

What I'm looking for is any bug reports or things that are just bad.
Not looking for is a discussion on decoupling the range of the gauge and the scale value, that is a design decisions.

Things that may still be pending is a way to allow the user to supply the scale externally so, for example, you could provide a log or other non linear scale. Not sure if I have the energy to tackle this one.

The code base started out as the Analog gauge with many fixes and optimizations but not much structural except for painting and new features following the same patterns. The downside is many of the drawing of parts of the gauge could be very useful for others, ie, pointers, the pointer caps, etc. These all should likely be 'objectified' and made as components for other components  :)

The test project (Project1.exe) can't be uploaded here as it's a too large, so I have it on my Google drive -

https://drive.google.com/file/d/1HUuXnto5RoRplUpNgIiAdmhDrnUAuNOK/view?usp=drive_link

Hope the link works, never tried using it. Project1.exe is in the Zipfile 'SuperGauge-beta.zip'

Let me know if this works for the download. File size is about 12Meg as I forgot to remove debugging info on the packages.

Sandy


lainz

  • Hero Member
  • *****
  • Posts: 4661
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: Beta Version of Super Gauge
« Reply #1 on: December 07, 2024, 04:09:32 pm »
Looking good  :)

 

TinyPortal © 2005-2018