Color del COMBOBOX?

Color del COMBOBOX?

Postby Armando » Fri Jan 12, 2018 6: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
User avatar
Armando
 
Posts: 3242
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: Color del COMBOBOX?

Postby Rick Lipkin » Fri Jan 12, 2018 6:17 pm

Armando

Try this code with the ON INIT clause ..
Code: Select all  Expand view  RUN

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
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Color del COMBOBOX?

Postby Armando » Fri Jan 12, 2018 6: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
User avatar
Armando
 
Posts: 3242
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: Color del COMBOBOX?

Postby karinha » Fri Jan 12, 2018 8:26 pm

Armando, tenta asi:

Code: Select all  Expand view  RUN

   SetCbxColorFocus( RGB( 202, 213, 251) )
 



Saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7872
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Color del COMBOBOX?

Postby karinha » Fri Jan 12, 2018 8: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
User avatar
karinha
 
Posts: 7872
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Color del COMBOBOX?

Postby Armando » 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
User avatar
Armando
 
Posts: 3242
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: Color del COMBOBOX?

Postby nanoespinoza » Sun Jan 14, 2018 1:49 am

Estimado armando

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

Saludos

Fernando Espinoza A.
nanoespinoza
 
Posts: 141
Joined: Thu Mar 16, 2017 4:08 pm
Location: Ecuador

Re: Color del COMBOBOX?

Postby Armando » Sun Jan 14, 2018 2: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
User avatar
Armando
 
Posts: 3242
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 89 guests