Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CGridlist
Message
From
09/05/1999 00:28:22
 
 
To
08/05/1999 21:34:58
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00216411
Message ID:
00216497
Views:
34
>>*---------------------------------------
>>*--- 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

It sure would! Thanks BOb.
Previous
Reply
Map
View

Click here to load this message in the networking platform