Hi,
I have recently updated to Nice Label version 10.
I was wondering is it still not possible to change the form background based on a variable event?
Currently I am getting around this by placing a different coloured frame that is only visible when the variable is changed to a certain value, this however looks messy in design mode and would be much cleaner if I could program the form colour to change.
Thanks
Ryan
Form Background
Moderators: Georges, milos, NiceLabel Support Team
- Mytch
- NiceLabel Support
- Posts: 304
- Joined: Fri Jul 13, 2018 10:26 pm
- Location: Milwaukee, Wisconsin
- Contact:
Re: Form Background
Ryan,
Form background color is still a static property and not likely to change. This is the case for all label and form properties currently. Again, this is realistically not going to change in the near-future.
Instead of conditional visibility of multiple objects (or layers), you can use Variable Event with "Set Object Property" action. You can set Frame color to variable data source using HEX RGBA color code. E.g. white is "#FFFFFFFF". When setting color property for Frame object, just know this is setting the border color. You can "trick" Frame into changing color by having a really thick border and use "Set Object Property" as described.
Regards,
Mytch
Form background color is still a static property and not likely to change. This is the case for all label and form properties currently. Again, this is realistically not going to change in the near-future.
Instead of conditional visibility of multiple objects (or layers), you can use Variable Event with "Set Object Property" action. You can set Frame color to variable data source using HEX RGBA color code. E.g. white is "#FFFFFFFF". When setting color property for Frame object, just know this is setting the border color. You can "trick" Frame into changing color by having a really thick border and use "Set Object Property" as described.
Regards,
Mytch