Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic backcolor of shape
Message
From
14/07/2006 05:05:41
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Dynamic backcolor of shape
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01136308
Message ID:
01136308
Views:
52
Hello Everybody !

I have a report with 4 columns. Cursor = listwahl (each record has day1-day31,kz1-kz31,amount1-amount31,datum1-datum31)

Each report column has 31 x 3 Fields to print

day kz amount
1 x 5
2 z 12
.
.
30 x 6
31 q 7


If the day is on weekend or public holiday i change the background color (depending from the datum column in my cursor)
Code at user data of day1,kz1,amount1:
*:LISTENER BACKCOLOR = icase(listwahl.datum1 = 'SA' or listwahl.datum1 = 'SO', #ROSA#,listwahl.datum1= 'FF' , #RED#,#WHITE#)
...
Code at user data of day30,kz30,amount30:
*:LISTENER BACKCOLOR = icase(listwahl.datum30 = 'SA' or listwahl.datum30 = 'SO', #ROSA#,listwahl.datum30= 'FF' , #RED#,#WHITE#)
Everything works as wanted !
But when kzn = empty the changing of the backcolor does not work! (backcolor of text, when not text!!)

Therefor i decide to put a shape around the 3 fields per day
_______________
| 1 x 5 | sorry for the stupid drawing ;-)
---------------
_______________
| 2 z 12 |
---------------
At userdata of each shape i put the same code that what worked in my original version:
*:LISTENER BACKCOLOR = icase(listwahl.datum1 = 'SA' or listwahl.datum1 = 'SO', #ROSA#,listwahl.datum1= 'FF' , #RED#,#WHITE#)

But this doesn't work ??????
The background of the shapes never gets rosa or red ????

What am i missing ???
Any help welcomed

Best regards
Albert
Next
Reply
Map
View

Click here to load this message in the networking platform