Jump to content
Software FX Community

Question about modifing labels for step


Recommended Posts

I have a HorizontalGauge with this property set:

[color= blue]Private[/color] _timeLGauge [color= blue]As[/color] [color= blue]New[/color] [color= #2b91af]HorizontalGauge[/color]
[color= #2b91af]
_timeLGauge.MainScale.Min = 0_timeLGauge.MainScale.Max = 360
[/color]_timeLGauge.MainScale.Tickmarks.Major.Step = 60


When this get generated, there are 6 Major Tickmarks with the values of {360, 300, 240, 180, 120, 60, 0} written above the Tickmarks.

How can I change these values to something more custom? Maybe like {'A-360', 'B-300', 'C-240', 'D-180', 'E-120', 'F-60', 'G-0'}




Link to comment
Share on other sites

Looks like an answer might be:

_timeLGauge.MainScale.Tickmarks.Format.FormatCustom = "A-#" _timeLGauge.MainScale.Tickmarks.Format.FormatType = ValueFormatType.Custom

But what if I wanted to convert those values to Hours:Minutes? So the set of {360, 300, 240, 180, 120, 60, 0}

now appear as {06:00, 05:00, 04:00, 03:00, 02:00, 01:00, 00:00}?




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...