Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CGridlist
Message
From
08/05/1999 21:34:58
 
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00216411
Message ID:
00216486
Views:
30
>*---------------------------------------
>*--- Set the column controls' BackColor,
>*--- ForeColor and SelectedBackColor
>*---------------------------------------
> FOR lnColumn = 1 TO THIS.COLUMNCOUNT
> loControl = EVAL("This.columns[lncolumn]." + THIS.COLUMNS[lnColumn].CURRENTCONTROL)
> loControl.BACKCOLOR = THIS.nSelectedBackColor
> loControl.FORECOLOR = THIS.nSelectedForeColor
> IF THIS.HasSelectedBackColor(loControl)
> loControl.SELECTEDBACKCOLOR = THIS.nSelectedBackColor
> ENDIF
> ENDFOR

Wouldn't it be easier to use pemstatus:
IF PEMSTATUS( loControl, 'SelectedBackColor', 5)
   loControl.SELECTEDBACKCOLOR = THIS.nSelectedBackColor
ENDIF
BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform