Search found 24 matches: ngreen

Return to advanced search

Re: para Antonio : Sobre BTNBMP... oBtn:bPainted

... debes usar la función SetTextColor( hDC, CLR_BLUE ) (los colores estan en colors.ch, ó cualquier combinación RGB usando la función nRgb( nRed, nGreen, nBlue ) y llamarias a esta función desde el codeblock antes de llamar a DrawText() Tambien puedes cambiar el font a usar, etc.
by Antonio Linares
Sun Jul 27, 2014 9:42 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: para Antonio : Sobre BTNBMP... oBtn:bPainted (RESUELTO)
Replies: 9
Views: 1227

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: 827

Re: Drawing PNG from Resources !!!

... BOOL DLL_CALLCONV FreeImage_IsLittleEndian(void); DLL_API BOOL DLL_CALLCONV FreeImage_LookupX11Color(const char *szColor, BYTE *nRed, BYTE *nGreen, BYTE *nBlue); DLL_API BOOL DLL_CALLCONV FreeImage_LookupSVGColor(const char *szColor, BYTE *nRed, BYTE *nGreen, BYTE *nBlue); // Pixel access ...
by ukoenig
Sat May 16, 2009 8:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing PNG from Resources !!!
Replies: 7
Views: 7177

... los botones 'Select' y 'Close'. Pulsando en el botón 'Select' se evalua el bloque de código bSelect. * Nuevo: Las funciones nRGBReset( nClr, nRed, nGreen, nBlue ) y nRGBAdd( nClr, nRed, nGreen, nBlue ). Nuevos colores pueden obtenerse a partir de los colores existentes cambiando o modificando los ...
by Antonio Linares
Fri Aug 29, 2008 7:22 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN August / Agosto 2008 (8.08)
Replies: 1
Views: 4734

Bitmaps

... yourself! ;-) That's exactly what I need. Do you have any code example to show this? redefine say oSay... oSay:setColor(COLOR_WINDOWTEXT,rgb(nRed,nGreen,nBlue)) Where nRed,nGreen,nBlue are the colors of the area. Of course, this will only work on dialogs with solid areas of color. -------------------------------------------------------------------------------- ...
by Antonio Linares
Wed Aug 27, 2008 7:34 am
 
Forum: Utilities / Utilidades
Topic: Boris Pekic - NG's archive
Replies: 27
Views: 93916

New FTDN August / Agosto 2008 (8.08)

... the screen, with buttons 'Select' and 'Close'. Click on 'Select' button evaluates the bSelect codeblock. * New: functions nRGBReset( nClr, nRed, nGreen, nBlue ) and nRGBAdd( nClr, nRed, nGreen, nBlue ) New colors can be derived from existing colors by chaging or modifiying individual color components. ...
by Antonio Linares
Wed Aug 20, 2008 6:23 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN August / Agosto 2008 (8.08)
Replies: 1
Views: 4734

Silvio,

If you are just trying to figure the color number, then:

nColor := rgb(nRed,nBlue,nGreen)
hBru := CreateSolidBrush( nColor )

RGB is just a #translate function in colors.ch.

James
by James Bott
Mon Sep 11, 2006 7:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Return ncolor
Replies: 4
Views: 1122

... oWnd:hWnd local aRect := GetClientRect( hWnd ) local oBrush, n local nTop := aRect[ 1 ] local nBottom := aRect[ 3 ] local nSteps Local nBlue,nRed,nGreen Local lPuro := .F. // LoadIniPure() // Si es puro no hay degradado // Color de degradado DEFAULT nColor := 123123122 // LoadIni("MADRE","DegraDialog") ...
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: 2049

... usando un control TWBrowse, puedes cambiar el color de las cabeceras cambiando estos valores: oBrowse:nClrBackHead = nRGBColor // nRGB( nRed, nGreen, nBlue ) oBrowse:nClrForeHead = nRGBColor // nRGB( nRed, nGreen, nBlue )
by Antonio Linares
Wed Mar 29, 2006 5:08 pm
 
Forum: FiveWin para CA-Clipper
Topic: Problemas con el TBrowse (LISTBOX)
Replies: 6
Views: 2407
Previous

Return to advanced search