Search found 14 matches: nrgbblue

Return to advanced search

Re: Evaluate whether a color value is dark or light

... colors with only a difference of 1 colorstep From calculation nRGBColor := 0 nRed := nRGBRed( nValRGB0 ) nGreen := nRGBGreen( nValRGB0 ) nBlue := nRGBBlue( nValRGB0 ) IF 0.3*nRed + 0.6*nGreen + 0.1*nBlue < 128 nRGBColor := 16777215 // white ENDIF http://www.service-fivewin.de/IMAGES/Contrast1.jpg ...
by ukoenig
Mon Feb 15, 2021 9:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Evaluate whether a color value is dark or light
Replies: 9
Views: 1076

Re: New FWH 19.09

... ( GdiPlus ) //New( nTrans, nRed, nGreen, nBlue, nSize, lRound, lAlign ) //nRed := nRGBRed( nColor ) //nGreen := nRGBGreen( nColor ) //nBlue := nRGBBlue( nColor ) oPen := Pen():New( 255, 0, 0, 255 , 8 , .T.) will show a 3 mm pen 1 mm = 2.834645669 regards Uwe :D
by ukoenig
Wed Oct 23, 2019 12:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: New FWH 19.09
Replies: 36
Views: 6903

Re: XBROWSE Border on cells

... be defined once on top of Your prg like LOCAL lDel := .F. // status LOCAL oPen := Pen():New( 255, nRGBRed( 16777215 ), ; nRGBGreen( 16777215 ), ; nRGBBlue( 16777215 ), 5 ) don*t forget ACTIVATE DIALOG oDlg2 CENTER RELEASE FONT oFont, oFont1 oPen:Destroy() RETURN( NIL ) http://www.pflegeplus.com/IMAGES/Cellborder9.jpg ...
by ukoenig
Tue Apr 16, 2019 3:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE Border on cells
Replies: 27
Views: 4930

Re: Ayuda DLL

Antonio buenos dias, gracias por la ayuda Agrego la VM.LIB (xharbour), y me manda estos errorres :( :( Proyecto: Kept5, Entorno: BorlandDLL: [1]:Harbour.Exe Source\Tseguro.prg /m /n /es2 /ki /iP:\32bits\xharbour\include;P:\32bits\FWH\INCLUDE /i /oObj\Tseguro.c xHarbour Compiler build 1.2.1 (SimpLex)...
by ricardog
Thu Aug 31, 2017 2:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 7723

Re: How to keep a appl. on top of the dialog on resize ?

... .. .. DEFINE TIMER oTimer OF oWnd ; INTERVAL 70 ACTION ( nRGB := GetColor(), ; nRed := nRGBRed( nRGB ), ; nGreen := nRGBGreen( nRGB ), ; nBlue := nRGBBlue( nRGB ), ; cRGB := "nRGB( " + ALLTRIM(STR(nRed)) + ", " + ; ALLTRIM(STR(nGreen)) + ", " + ; ALLTRIM(STR(nBlue)) ...
by ukoenig
Sat Aug 01, 2015 7:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to keep a appl. on top of the dlg on resize ? (solved)
Replies: 5
Views: 2663

Re: Mixing colors. Mr. Ukoenig

... like : FUNCTION GET_BRIGHT( nColor ) LOCAL nRGBProz := 0, nBlue, nGreen, nRed nRed := nRGBRed( nColor ) nGreen := nRGBGreen( nColor ) nBlue := nRGBBlue( nColor ) nBrightness := INT( 0.299 * nRed ; + 0.587 * nGreen ; + 0.114 * nBlue ) // MsgAlert( nColor, "Color" ) // MsgAlert( nBrightness, ...
by ukoenig
Mon Aug 04, 2014 6:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Mixing colors. Mr. Ukoenig
Replies: 4
Views: 818

Re: Guardar color de texto en dbf

Jairo nColor:=ChooseColor() nRedText:=nRGBRed(nColor) nGreenText:=nRGBGreen(nColor) nBlueText:=nRGBBlue(nColor) remplazas en tu dbf afile->Rojo := nRedText afile->Verde := nGreenText afile->Azul := nBlueText y cuando quieras verlo REDEFINE SAY PROMPT "color ...
by Francisco Horta
Thu Mar 29, 2012 4:54 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Guardar color de texto en dbf
Replies: 7
Views: 1114

Re: Se necesita ayuda en el wiki !

... nHiWord() nIcons() nLoByte() nLoWord() nMakeLong() nMciOpen() nMciPlay() nMciWindow() nMidiDevices() nMsgBox() nNot() nOr() nRandom() nRGB() nRGBBlue() nRGBGreen() nRGBRed() nSerialA() nSerialHD() nStrCrc() nStrHash() nTcwRow() NtxPos() nTxtLines() nWindows() nWndChrHeight() nWRow() nWRows() ...
by Cgallegoa
Sun Feb 21, 2010 10:35 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Se necesita ayuda en el wiki !
Replies: 12
Views: 5823

Re: Como convertir Getsyscolor() a RGB

Vladimir,

nRed = nRGBRed( nRGBColor )
nGreen = nRGBGreen( nRGBColor )
nBlue = nRGBBlue( nRGBColor )
by Antonio Linares
Wed Jan 27, 2010 7:15 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como convertir Getsyscolor() a RGB
Replies: 4
Views: 857

... "Seleccione nuevo Arbitro" REDEFINE SAY oSay ID 1422 OF oDlgING COLOR RGB(255,0,0),RGB(nRGBRed(oDlgING:nClrPane),nRGBGreen(oDlgING:nClrPane),nRGBBlue(oDlgING:nClrPane)) REDEFINE COMBOBOX oCom[5] VAR EDC[6] ITEMS EQUIPO ID 1421 OF oDlgING ON CHANGE CambiaBMP(EDC[6]) MESSAGE "Seleccionar Equipo" ...
by fespinoza
Tue Jan 08, 2008 4:12 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con un "Harbour Exception Error"
Replies: 11
Views: 3010

... if lPuro == .T. oWnd:SetColor( 0, nColor ) oWnd:Refresh() else lPuro := .F. endif if !lPuro // El color no es puro, entonces degradado nBlue := nRGBBlue( nColor ) nRed := nRGBRed( nColor ) nGreen := nRGBGreen( nColor) DEFAULT nSaltos := 3 nSteps := ( aRect[ 3 ] - aRect[ 1 ] ) / nSaltos oWnd:GetDC() ...
by karinha
Thu Apr 13, 2006 11:44 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Diferentes degrados de color en ToolBar y dialogo
Replies: 4
Views: 2159

... ) => ; RGB( MAX(0,nRGBRed( <nColor> )-<nVar> ) , ; MAX(0,nRGBGreen( <nColor> )-<nVar> ) , ; MAX(0,nRGBBlue( <nColor> )-<nVar> ) ) #xTranslate ACLARO( <nColor>,<nVar> ) => ; RGB( MIN(255,nRGBRed( <nColor> )+<nVar> ...
by manuramos
Mon Feb 20, 2006 7:56 pm
 
Forum: Utilities / Utilidades
Topic: Nuevo SAY Sensible y Editable
Replies: 12
Views: 7322

Gama de colores para todos

... ) => ; RGB( MAX(0,nRGBRed( <nColor> )-<nVar> ) , ; MAX(0,nRGBGreen( <nColor> )-<nVar> ) , ; MAX(0,nRGBBlue( <nColor> )-<nVar> ) ) #xTranslate ACLARO( <nColor>,<nVar> ) => ; RGB( MIN(255,nRGBRed( <nColor> )+<nVar> ...
by manuramos
Sat Feb 04, 2006 9:06 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Gama de colores para todos
Replies: 0
Views: 622

Gama de colores para todos

... ) => ; RGB( MAX(0,nRGBRed( <nColor> )-<nVar> ) , ; MAX(0,nRGBGreen( <nColor> )-<nVar> ) , ; MAX(0,nRGBBlue( <nColor> )-<nVar> ) ) #xTranslate ACLARO( <nColor>,<nVar> ) => ; RGB( MIN(255,nRGBRed( <nColor> )+<nVar> ...
by manuramos
Sat Feb 04, 2006 9:05 pm
 
Forum: FiveWin para CA-Clipper
Topic: Gama de colores para todos
Replies: 4
Views: 1497

Return to advanced search