FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Color del COMBOBOX?
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Color del COMBOBOX?
Posted: Fri Jan 12, 2018 06:07 PM

Hola amigos del foro:

Es posible cambiar el color del COMBOBOX cuando este toma el foco?

Saludos

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Color del COMBOBOX?
Posted: Fri Jan 12, 2018 06:17 PM
Armando

Try this code with the ON INIT clause ..
Code (fw): Select all Collapse
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
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: Color del COMBOBOX?
Posted: Fri Jan 12, 2018 06:49 PM

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

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Color del COMBOBOX?
Posted: Fri Jan 12, 2018 08:26 PM
Armando, tenta asi:

Code (fw): Select all Collapse
   SetCbxColorFocus( RGB( 202, 213, 251) )



Saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Color del COMBOBOX?
Posted: Fri Jan 12, 2018 08:28 PM

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.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: Color del COMBOBOX?
Posted: Fri Jan 12, 2018 10:17 PM

Karinha:

Algún ejemplo?

Saludos

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 163
Joined: Thu Mar 16, 2017 04:08 PM
Re: Color del COMBOBOX?
Posted: Sun Jan 14, 2018 01:49 AM

Estimado armando

Solo hay que colocar la función al inicio del programa y listo.

Saludos

Fernando Espinoza A.

Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: Color del COMBOBOX?
Posted: Sun Jan 14, 2018 02:25 AM

Fer:

Llevas razón, estaba probando con xHarbour FWH0810 y
parece que necesita Harbour :oops:

Saludos

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero

Continue the discussion