05-08-2024 07:47 AM - edited 05-08-2024 07:55 AM
@paul_a_cardinale wrote:
This is very risky. The bit meanings of Basic Object Flags can, and sometimes do, change between versions of LabVIEW.
No Risk — no Fun. Any official alternative?
05-08-2024 08:04 AM - edited 05-08-2024 08:05 AM
There is an INI key that helps with these boolean operations.
enableSecretPopups=True
Christina talks about it a bit here on LAVA. After enabling it when you go to customize a boolean you'll have a bunch of new popups for things like centering text, or having the boolean decal grow with the button resize. This one is particularly useful for vector based images like WMF.
It is an undocumented and unsupported INI file so it is possible you can create a boolean that crashes LabVIEW, or does weird stuff, so tread lightly.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-08-2024 08:22 AM
@Hooovahh wrote:
There is an INI key that helps with these boolean operations.
enableSecretPopups=True
Christina talks about it a bit here on LAVA. After enabling it when you go to customize a boolean you'll have a bunch of new popups for things like centering text, or having the boolean decal grow with the button resize. This one is particularly useful for vector based images like WMF.
It is an undocumented and unsupported INI file so it is possible you can create a boolean that crashes LabVIEW, or does weird stuff, so tread lightly.
Yes, that was my initial idea, but in this particular case the options looks exactly the same for both "original" and "modified" controls, so I wasn't able to revert "Size to Text" back with this (played only a little bit):
On the other hand, this is undocumented, you're right, may be some additional menu or option exists, who knows.
05-08-2024 09:47 AM
@Andrey_Dmitriev wrote:Unfortunately this will help only partially, because "Size to Text" will remain inactive, in aditional, this will cause overlap with icon if Boolean Text should be not centered absolutely:
You can define your own "center" in Customize Mode by move an already centered Boolean Text to a new position.
The LockBoolText property node will not move the Boolean Text back to the original center.
05-08-2024 09:57 AM
@zou wrote:
@Andrey_Dmitriev wrote:Unfortunately this will help only partially, because "Size to Text" will remain inactive, in aditional, this will cause overlap with icon if Boolean Text should be not centered absolutely:
You can define your own "center" in Customize Mode by move an already centered Boolean Text to a new position.
The LockBoolText property node will not move the Boolean Text back to the original center.
This is true, you're perfectly right, but this will not help to "grow" the string in attempt to put longer text like it growing when Size to Text Option set (like Labels/Captions) for example. As result I should not only move it, but also resize to maximal possible length, which is quite inconvenient, especially for localized application, where length may vary. I have had already "trimmed" text in rare cases where Boolean text was touched occasionally.
05-08-2024 10:19 AM
05-08-2024 04:18 PM - edited 05-08-2024 04:38 PM
@Andrey_Dmitriev wrote:
@paul_a_cardinale wrote:
This is very risky. The bit meanings of Basic Object Flags can, and sometimes do, change between versions of LabVIEW.
No Risk — no Fun. Any official alternative?
The attached is much less risky.
05-08-2024 04:34 PM
@paul_a_cardinale wrote:This is very risky. The bit meanings of Basic Object Flags can, and sometimes do, change between versions of LabVIEW.
For instance, on LV 2021 BOF returns 60000 hex regardless of whether STT is True or False.
My mistake. It's still the same in LV 2021.
05-08-2024 10:58 PM