AdvancedHMI Software

General Category => Additional Components => Topic started by: Archie on December 27, 2016, 07:01:16 PM

Title: Label with Rotatable Text
Post by: Archie on December 27, 2016, 07:01:16 PM
This is merely a modified version taken from here:

http://stackoverflow.com/questions/416897/how-do-i-rotate-a-label-in-c

- Download the attached file
- Open AdvancedHMI in Visual Studio
- In Solution Explorer expand down the AdvancedHMIControls project
- Right click the Support folder and select Add->Existing
- Browse to the file you downloaded from this thread
- Rebuild the solution
- you will now have an OrientedTextLabel in the Toolbox

IMPORTANT NOTE: If you change the rotation, you will also have to change the AutoSize property to False
Title: Re: Label with Rotatable Text
Post by: Godra on December 29, 2016, 08:53:46 PM
The attached control in this post is a modified version of Archie's code.

The old AntiClockwise text direction was renamed to Mirrored and the new version of the AntiClockwise is actually a readable text (check the attached picture).

This control also sets the AutoSize property to False on creation.
Title: Re: Label with Rotatable Text
Post by: Godra on February 23, 2019, 07:01:48 PM
It is possible to manipulate these labels to be used as connecting/diagram lines.

Attached picture shows a somewhat silly example.

Also, an unrelated suggestion for Archie to apply the option "None" for legend plates of the Momentary/Mushroom button controls and maybe make their back color as Black.
Title: Re: Label with Rotatable Text
Post by: Archie on February 23, 2019, 08:30:18 PM
Also an unrelated suggestion for Archie to apply the option "None" for legend plates of the Momentary/Mushroom button controls and maybe make their back color as Black.
This change will be in the next update.
Title: Re: Label with Rotatable Text
Post by: Godra on February 26, 2019, 08:43:12 PM
This is now fine with the Momentary button control.

Can the same be applied to the Mushroom button control?
Title: Re: Label with Rotatable Text
Post by: Archie on February 26, 2019, 09:18:16 PM
Can the same be applied to the Mushroom button control?
Consider it done
Title: Re: Label with Rotatable Text
Post by: Godra on March 02, 2019, 03:05:24 PM
This is now fine with the Mushroom button control as well.