Search found 24 matches: nclrfocus

Searched query: nclrfocus

by Armando
Mon Jan 27, 2025 11:52 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Color de fondo y texto a los campos TEXTO (MEMO)
Replies: 5
Views: 824

Color de fondo y texto a los campos TEXTO (MEMO)

Foreros:

Con el siguiente código en el MAIN, se define el color de los GET al tomar el foco y al perderlo

Code: Select all | Expand

   TGet():lClrFocus := (.T.)
   TGet():nClrFocus := nRGB( 213, 219, 255 )
Pero para los campos TEXT (MEMO) no funciona, hay forma?

Saludos
by Antonio Linares
Fri Jan 17, 2025 11:11 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Using new Class TDeepSeek for documenting
Replies: 29
Views: 4828

Re: Using new Class TDeepSeek for documenting

... box.

25. **`lClrFocus`**:
- **Type**: Logical
- **Description**: Indicates whether the color changes when the combo box gets focus.

26. **`nClrFocus`**:
- **Type**: Numeric
- **Description**: Color to use when the combo box is focused.

27. **`aProperties`**:
- **Type**: Array ...
by Armando
Thu Jun 27, 2024 5:34 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Contraste de colores?
Replies: 23
Views: 3205

Re: Contraste de colores?

Mr. Rao:

It's an excellent sample, but I have several dialogs with several SAY (text) and I looking for
a global solution as Tget():nClrFocus := RGB( 168, 211, 255 ) for GET controls, if it's possible

With best regards
by Marc Venken
Wed Mar 24, 2021 10:55 pm
Forum: FiveWin for Harbour/xHarbour
Topic: TGet():nClrFocus no me cambia el color
Replies: 3
Views: 427

Re: TGet():nClrFocus no me cambia el color

TGet():bColorBlock := { |oGet| IF( oGet:lFocused, { CLR_WHITE, CLR_HBLUE }, IF( .NOT. oGet:lActive, {CLR_BLACK, CLR_HGRAY}, {CLR_BLACK, CLR_WHITE} )) }
by Marc Venken
Wed Mar 24, 2021 10:47 pm
Forum: FiveWin for Harbour/xHarbour
Topic: TGet():nClrFocus no me cambia el color
Replies: 3
Views: 427

Re: TGet():nClrFocus no me cambia el color

For global setting it is

setgetcolorfocus(rgb(209,224,252))

so maybe the nRgb should be rgb(40,255,255)
by goosfancito
Wed Mar 24, 2021 8:39 pm
Forum: FiveWin for Harbour/xHarbour
Topic: TGet():nClrFocus no me cambia el color
Replies: 3
Views: 427

TGet():nClrFocus no me cambia el color

Buenas buenas gente!

Intente con nRGB y RGB y no me cambia el color del foco. que hago mal?

Code: Select all | Expand

  TGet():nClrFocus      := nRGB( 40, 255, 255)
 


Gracias!
by karinha
Fri Jan 12, 2018 8:28 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Color del COMBOBOX?
Replies: 7
Views: 1388

Re: Color del COMBOBOX?

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.
by karinha
Thu Dec 15, 2016 6:28 pm
Forum: FiveWin para Harbour/xHarbour
Topic: SetCbxColorFocus( nClrFocus )
Replies: 3
Views: 465

Re: SetCbxColorFocus( nClrFocus )

Thanks master. Perfecto!

// adhemar.prg#include "FiveWin.ch"  function Main()   LOCAL oDlg, oCbx, cDia   LOCAL nOldColor   DEFINE DIALOG oDlg   @ 1, 3 COMBOBOX oCbx VAR cDia OF oDlg SIZE 100, 300 UPDATE           &nbsp ...
by cnavarro
Thu Dec 15, 2016 5:01 pm
Forum: FiveWin para Harbour/xHarbour
Topic: SetCbxColorFocus( nClrFocus )
Replies: 3
Views: 465

Re: SetCbxColorFocus( nClrFocus )

Try

   local nOldColor   .../... @ 10, 10 COMBOBOX oCbx VAR cItem ITEMS { "Testing", "this", "ComboBox" } SIZE 200, 460 OF oDlg PIXEL HEIGHTGET 18 UPDATE//; nOldColor   := SetCbxColorFocus( CLR_YELLOW )   .../...
by karinha
Thu Dec 15, 2016 4:37 pm
Forum: FiveWin para Harbour/xHarbour
Topic: SetCbxColorFocus( nClrFocus )
Replies: 3
Views: 465

SetCbxColorFocus( nClrFocus )

Code: Select all | Expand


   SetCbxColorFocus( nClrFocus )
 


Algun ejemplo?
by Antonio Linares
Fri Mar 20, 2015 10:22 am
Forum: WhatsNew / Novedades
Topic: New FTDN March/Marzo 2015 (FWH 15.03)
Replies: 16
Views: 9595

New FTDN March/Marzo 2015 (FWH 15.03)

March 2015
==========

* New: function SetMGetColorFocus( nClrFocus ) same as SetGetColorFocus() but for GETs
multilines.

* Enhancement: Class TMultiGet support for color change on focus gain/loose.

* New: function SetCbxColorFocus( nClrFocus ) same as SetGetColorFocus() but for
ComboBoxes. We ...
by Gale FORd
Thu Feb 16, 2012 8:38 pm
Forum: FiveWin for Harbour/xHarbour
Topic: ReadOnly Clause does not respect Color on Get or Say
Replies: 8
Views: 3914

Re: ReadOnly Clause does not respect Color on Get or Say

... for disable colors and select colors
TGet():lDisColors := .f. // Do Not Use standard disabled colors
// I like to have light blue background on focused gets so next line is un-commented.
// TGet():nClrFocus := 16577214 // use light blue color to use when GET is focused and lClrFocus is .T.
by HunterEC
Mon Jan 23, 2012 7:11 am
Forum: FiveWin for Harbour/xHarbour
Topic: Finding out colors
Replies: 4
Views: 1511

Finding out colors

... FW can display / use and get back the parameters or values to use it in out programs ? For example, if I want to pass the SetGetColorFocus([nClrFocus]) function a number that represent the old Clipper color "BG+/N" how do I find out the correct value ? Is like a Clipper color value to FW ...