Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic backcolor of shape
Message
 
 
To
14/07/2006 05:05:41
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01136308
Message ID:
01136741
Views:
18
This message has been marked as the solution to the initial question of the thread.
Hi Albert,

You didn't provide any details about your ReportListner. My guess is the it uses EvaluateContents() event to handle its directives. The event only fires for Expression type report elements and shape is not one of them. You can try to put following into kzN field.
IIF(EMPTY(kzN), CHR(160), kzN)
>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 ????
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform