Dynamically Change Background Color - Niceform

Issues related to label design (working with databases, data processing, RFID encoding etc.) and printing (from NiceLabel Express, NiceLabel Pro, NiceForm and NicePrint)

Moderators: Georges, milos, NiceLabel Support Team

Post Reply
Posts: 11
Joined: Wed Dec 14, 2011 8:48 pm

Dynamically Change Background Color - Niceform

Post by rlmeyer » Thu Dec 15, 2011 8:38 pm

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?


User avatar
Posts: 2988
Joined: Mon Sep 04, 2006 8:09 am

Re: Dynamically Change Background Color - Niceform

Post by Saso » Thu Dec 15, 2011 8:47 pm

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.
Saso Fleiser
Senior Technical Product Specialist

Post Reply