I ran into a situation where I really needed a rotated column header for a table due to having long column header names and not enough space.
After doing a bunch of looking around, it didn't really seem like this capability existed anywhere for LabVIEW, so I'm sharing a little piece of code that I created for this here.
LabVIEW doesn't natively support rotated strings, so that wasn't an option.
LabVIEW 2D picture controls would theoretically let you write, and then rotate text. But LabVIEW 2D picture controls don't support aliasing, so I didn't perceive this to be an option.
@hooovahh recently posted a fun .NET picture control library to VIPM, and that inspired me to go down the .NET picture control rabbit hole.
Having to deal with opening and closing all the .NET references is a bit of a hassle, but I'm surprised by how much capability exists with the .NET picture control. High complexity ceiling.
Looking back, I wonder if I should have tried the LabVIEW 3D picture control instead.
Anyways, this demo provides the following capability:
- rotated column headers by specified angle
- anti-aliased text
- column headers size to table column width/positions
RotatedColumnHeader.zip