Page 1 of 1
Color del COMBOBOX?
Posted:
Fri Jan 12, 2018 6:07 pm
by Armando
Hola amigos del foro:
Es posible cambiar el color del COMBOBOX cuando este toma el foco?
Saludos
Re: Color del COMBOBOX?
Posted:
Fri Jan 12, 2018 6:17 pm
by Rick Lipkin
Armando
Try this code with the ON INIT clause ..
- Code: Select all Expand view
ON INIT ( oDlg:PostMsg( WM_KEYDOWN, VK_TAB ), ;
This will allow you to see the combobox as you tab thru your fields ...
Let me know if this is the effect you are looking for ..
Rick Lipkin
Re: Color del COMBOBOX?
Posted:
Fri Jan 12, 2018 6:49 pm
by Armando
Rick:
Thanks for your kind and quick response, but no, it's not what I need.
I need to change the color of the combobox when it has the focus
With best regards
Re: Color del COMBOBOX?
Posted:
Fri Jan 12, 2018 8:26 pm
by karinha
Armando, tenta asi:
- Code: Select all Expand view
SetCbxColorFocus( RGB( 202, 213, 251) )
Saludos.
Re: Color del COMBOBOX?
Posted:
Fri Jan 12, 2018 8:28 pm
by karinha
March 2015
==========
* New: function SetCbxColorFocus( nClrFocus ) same as SetGetColorFocus() but for
ComboBoxes. We tried to take these functions into Class TControl may there are
many side effects for other controls.
* Enhancement: Class TComboBox support for color change on focus gain/loose.
Re: Color del COMBOBOX?
Posted:
Fri Jan 12, 2018 10:17 pm
by Armando
Karinha:
Algún ejemplo?
Saludos
Re: Color del COMBOBOX?
Posted:
Sun Jan 14, 2018 1:49 am
by nanoespinoza
Estimado armando
Solo hay que colocar la función al inicio del programa y listo.
Saludos
Fernando Espinoza A.
Re: Color del COMBOBOX?
Posted:
Sun Jan 14, 2018 2:25 am
by Armando
Fer:
Llevas razón, estaba probando con xHarbour FWH0810 y
parece que necesita Harbour
Saludos