Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Colors
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00222199
Message ID:
00222262
Views:
29
>>VFP5, latest update...
>>
>>I have a grid, and the client wants 4 different colors to show status. This is no problem for unselected cells, using DynamicForeColor and DynamicBackColor with SetAll().
>>
>>However, whenever the client selects a cell the color changes to the textbox backcolor/forecolor. They want to have the color in the active cell match the inactive cell colors so ONLY the cursor shows which cell is active. Whenever I try an IIF() statement in the forecolor I get an error. Any ideas? Have I missed something obvious?
>>
>>Also, since they MUST select the cells even though they are read-only, I need to have the same colors showing on selected text.
>>
>>TIA
>>Barbara
>
>
>In the GotFocus you can change the colors of BackColor and ForeColor to the same as the grid or do it in the Grids Init.

Thanks, Chuck. It works in the GotFocus, but in the INIT it sets the value to whatever is 'TRUE' in the IIF() statement when the grid is initialized. Almost always the last statement I found :-(( Too bad - I'd like to set it like the Dynamic.... properties.

Interestingly, I had to set the COLUMN forecolor but the TEXTBOX SelectedForeColor in the textbox GotFocus()

Thanks for pointing me in the right direction.

Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform