jaegen Posted March 9, 2007 Report Share Posted March 9, 2007 Hello, I understand/accept that certain properties of the "Dialog" style controls are not modifiable. However, with a "Dialog Table", I can modify the colour of the text in a cell using the font drop-down box, but the "Cell BG Color" property doesn't work programmatically. Anyone know how I can do this? Is there no way of getting a reference to an individual cell, or its text properties? Thanks, Jaegen Quote Link to comment
Michael Aivaliotis Posted March 14, 2007 Report Share Posted March 14, 2007 Dialog tables are limited. You cannot change them. You will need to create your own. I did something like this for an MCL. Perhaps you can do this for a table too: Alternating Row colors in Multicolumn Listbox Quote Link to comment
jaegen Posted March 14, 2007 Author Report Share Posted March 14, 2007 QUOTE(Michael_Aivaliotis @ Mar 12 2007, 05:02 PM) Dialog tables are limited. You cannot change them. You will need to create your own. I did something like this for an MCL. Perhaps you can do this for a table too:Alternating Row colors in Multicolumn Listbox Thanks Michael, that's exactly what I ended up doing. The only reason I brought this up was that it seems inconsistent to me to allow modification of the text colour at development time (via the font drop-down), but not programmatically. The other issue that may rear its ugly head is this (normal controls suddenly become "system" controls if you've used a "system" element in them and try to open in a later version of LV). Jaegen Quote Link to comment
Aristos Queue Posted March 14, 2007 Report Share Posted March 14, 2007 QUOTE(jaegen @ Mar 13 2007, 10:38 AM) Thanks Michael, that's exactly what I ended up doing. The only reason I brought this up was that it seems inconsistent to me to allow modification of the text colour at development time (via the font drop-down), but not programmatically. It could be that the bg color is all the OS allows us to change. That would almost make sense -- I know that with the selected text, when you set the bg color in the system table, then the selected text color is calculated from the background to always be a visible color. I don't know about the unselected fg text, but it seems reasonable that it would be a calculated value as well. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.