AdvancedHMI Software
General Category => Additional Components => Topic started 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
-
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.
-
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.
-
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.
-
This is now fine with the Momentary button control.
Can the same be applied to the Mushroom button control?
-
Can the same be applied to the Mushroom button control?
Consider it done
-
This is now fine with the Mushroom button control as well.