Hi Dave:
I've tested a new form with a grid with a blue selected row, and it looks the same in development and in EXE.
Here is the form converted to text with FoxBin2Prg, so you can regenerate the binary if you want. Look closely the properties I've used for the grid:
*-------------------------------------------------------------------------------------------------------------------------------------------------------- * (ES) AUTOGENERADO - ¡¡ATENCIÓN!! - ¡¡NO PENSADO PARA EJECUTAR!! USAR SOLAMENTE PARA INTEGRAR CAMBIOS Y ALMACENAR CON HERRAMIENTAS SCM!! * (EN) AUTOGENERATED - ATTENTION!! - NOT INTENDED FOR EXECUTION!! USE ONLY FOR MERGING CHANGES AND STORING WITH SCM TOOLS!! *-------------------------------------------------------------------------------------------------------------------------------------------------------- *< FOXBIN2PRG: Version="1.19" SourceFile="test_resaltargrid.scx" /> (Solo para binarios VFP 9 / Only for VFP 9 binaries) * * DEFINE CLASS dataenvironment AS dataenvironment *< CLASSDATA: Baseclass="dataenvironment" Timestamp="" Scale="" Uniqueid="" ClassIcon="2" />
DataSource = .NULL. Height = 0 Left = 0 Name = "Dataenvironment" Top = 0 Width = 0
ENDDEFINE
DEFINE CLASS form1 AS form *< CLASSDATA: Baseclass="form" Timestamp="" Scale="" Uniqueid="" />
*-- OBJECTDATA items order determines ZOrder / El orden de los items OBJECTDATA determina el ZOrder *< OBJECTDATA: ObjPath="Grid1" UniqueID="" Timestamp="" /> *< OBJECTDATA: ObjPath="Grid1.Column1.Header1" UniqueID="" Timestamp="" /> *< OBJECTDATA: ObjPath="Grid1.Column1.Text1" UniqueID="" Timestamp="" />
Caption = "Form1" DataSession = 2 DoCreate = .T. Height = 249 Left = 0 Name = "Form1" Top = 0 Width = 452 WindowType = 1
ADD OBJECT 'Grid1' AS grid WITH ; ColumnCount = 1, ; Height = 145, ; HighlightStyle = 2, ; Left = 36, ; Name = "Grid1", ; Panel = 1, ; RecordSource = "c_txt", ; SelectedItemBackColor = 0,0,255, ; Themes = .F., ; Top = 52, ; Width = 381, ; Column1.ControlSource = "texto", ; Column1.Name = "Column1", ; Column1.Width = 335 *< END OBJECT: BaseClass="grid" />
ADD OBJECT 'Grid1.Column1.Header1' AS header WITH ; Caption = "Header1", ; Name = "Header1" *< END OBJECT: BaseClass="header" />
ADD OBJECT 'Grid1.Column1.Text1' AS textbox WITH ; BackColor = 255,255,255, ; BorderStyle = 0, ; ForeColor = 0,0,0, ; Margin = 0, ; Name = "Text1", ; SelectedBackColor = 0,0,255 *< END OBJECT: BaseClass="textbox" />
PROCEDURE Load CREATE CURSOR c_txt (texto C(50)) INSERT INTO c_txt (texto) VALUES ("algo para resaltar 1") INSERT INTO c_txt (texto) VALUES ("algo para resaltar 2") INSERT INTO c_txt (texto) VALUES ("algo para resaltar 3") INSERT INTO c_txt (texto) VALUES ("algo para resaltar 4") INSERT INTO c_txt (texto) VALUES ("algo para resaltar 5") GO TOP
ENDPROC
ENDDEFINE
2016-01-28 12:53 GMT+01:00 Dave Crozier DaveC@flexipol.co.uk:
Gentlemen, Just had an observation by one of our users about the "wish wash" colous used in grids to highlight the current row.
In development mode these are fine as I specify row highlichting with visual persistence and rcb(0,0,255) as the highlightbackcolor for the grid and a white forecolour so it stands out really well as dark blue background with white writing. No problem there...
However, when the program is compiled up into an exe the row highlighting appears a s really light blus back colour with white writing which is almost indistinguishable due to lack of contrast.
Has anyone else come across this phaenomena? In al my years I have never noticed it but it has obviously happened.
Luckily all the grids we use are subclassed so I can change the look accordingly but the same thing happens when I specify green as the highlight back colour.
I appreciate that certain monitors give different "colour hues" but I am running the dev program and the compiled program on the same monitor and still get the different colours... weird!
Any ideas?
A somewhat confused Dave
[excessive quoting removed by server]