Make a Gauge with MicroHelp’s Controls

Make a Gauge with MicroHelp’s Controls

You can make a beautiful gauge by combining two MicroHelp controls.Place a Mh3d control onto your form and set the inner bevel just insideof the outer bevel. Place a Mh3dCommand as a child of the Mh3d controlwith it’s top, left , and bottom just inside of the inner bevel of theMh3d control and its .Width set to 0. Set the .Picture property of theMh3dCommand to WINLOGO.BMP, set the .WallPaper property to 2 – Replicate,set the .FontStyle property to 3 – Lowered, and set the .Alignment propertyto 2 – Center. Now add this function to a global module:

 Sub SetGauge (Ctrl1 As MhThreed, _ Ctrl2 As Mh3dCommand, percent As Integer) MaxWidth = Ctrl1.Width - (Ctrl2.Left * 2) Ctrl2.Width = MaxWidth * percent / 100 Ctrl2.Caption = Str$(percent) + "%" End Sub 

You can call this function to set the % fill on the gauge fromanywhere. The end effect is a gauge that appears to be engraved in marble.You can use your own bitmaps for other textures such as wood and granite.

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of