General information
Category:
Forms & Form designer
Hi Marcia,
Here is a copy of this thread, maybe you can think of
somthing I did not see.
Thanks
Doron
The condition method changes the color of the column
based on different conditions found within the Condition
Method below:
Within the init method of the grid I have the following:
This.SetAll("DynamicBackColor","This.Condition()","Column")
It is working fine at development time whenever I run
the form by itself. But when I compile it as an app or
an exe file, it does not function properly.
I have 10 columns and 5 can be seen at the time.
When I scroll to the right colors are not displayed
properly. When I scroll back to the left colors are
displayed properly. When I expand the entire form
to display the entire grid this problem does not exist.
Colors are displayed properly even though those colors
were wrong since I scrolled to the right.
I think the DynamicBackColor property is not functioning
when the grid is scroll to the right. I tried even to enter
within the Scroll method This.Refresh() and nothing happen.
Any input is appreciated.
Thanks
Doron
Condition Method:
-------------------
IF PctDist.lPct_Cancelled
*** Blue
*** If Cancelled
RETURN RGB(0,255,255)
ENDIF
LOCAL m.ldSystemDate,m.lcIsItValid
m.ldSystemDate=IIF(Employee.cPay_Cycle==;
"S",System.dSys_PayS_Dlu,System.dSys_PayW_Dlu)
m.lcIsItValid=;
BETWEEN(m.ldSystemDate,PctDist.dPct_Start,PctDist.dPct_End)
DO CASE
CASE m.ldSystemDate ***Yellow
*** For future LDI
RETURN RGB(255,255,0)
CASE m.lcIsItValid
*** Green
*** Curren LDI
RETURN RGB(0,255,64)
CASE ! m.lcIsItValid
*** Red
*** Expired LDI
RETURN RGB(255,128,128)
ENDCASE
RETURN RGB(255,255,255)
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only