I searched through the forum for how to dynamically set the background color for a field, and came up with this thread... http://forums.nicelabel.com/viewtopic.p ... olor#p2113
Are form objects still not exposed in the current version of Nicelabel? I wanted to set a field to have a background color of red when its variable is < 0. Of course when the variable is > 0 the background color would be change back to white. Is this possible with vbscript in Niceform?
Thanks,
Richard
Dynamically Change Background Color - Niceform
Moderators: Georges, milos, NiceLabel Support Team
Re: Dynamically Change Background Color - Niceform
No, still not possible.
Still on the wish list.
You might use the workaround with the Picture objects.
You could place a Picture object beneath another object and assign the image name to it. From VB script you can control which value (=image from the disk) the Picture object will display.
See the following sample.
"c:\Program Files (x86)\EuroPlus\NiceLabel 5\Samples\Forms\Print.xff"
The selected edit field blinks, but not because that would be built-in feature, but because behind the edit field is a Picture object that has been assigned with the animated GIF. If the object is not selected, it does not blink.

Still on the wish list.
You might use the workaround with the Picture objects.
You could place a Picture object beneath another object and assign the image name to it. From VB script you can control which value (=image from the disk) the Picture object will display.
See the following sample.
"c:\Program Files (x86)\EuroPlus\NiceLabel 5\Samples\Forms\Print.xff"
The selected edit field blinks, but not because that would be built-in feature, but because behind the edit field is a Picture object that has been assigned with the animated GIF. If the object is not selected, it does not blink.
Saso Fleiser
Senior Technical Product Specialist
Senior Technical Product Specialist