Search found 31 matches: bcolor

Return to advanced search

Re: Readonly and/or disable GETs background color

Ok, bColorBlock (actually bColor) is evaluated inside paint event. So this is the only option, it seems. I would like to avoid using paint event.

EMG
by Enrico Maria Giordano
Fri Aug 05, 2022 1:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Readonly and/or disable GETs background color
Replies: 15
Views: 848

Re: Readonly and/or disable GETs background color

Si no se especifica lDisColors en false ni bColor, el color del panel disable lo genera con nClrP := GetSysColor( COLOR_WINDOW ) Yes, but I was referring to the fact that the background color of the readonly GETs is set inside the paint event, ...
by Enrico Maria Giordano
Fri Aug 05, 2022 12:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Readonly and/or disable GETs background color
Replies: 15
Views: 848

Re: Readonly and/or disable GETs background color

... the readonly GETs? Is it an internal Windows behaviour that can be change only using paint event? EMG Si no se especifica lDisColors en false ni bColor, el color del panel disable lo genera con nClrP := GetSysColor( COLOR_WINDOW )
by cmsoft
Fri Aug 05, 2022 12:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Readonly and/or disable GETs background color
Replies: 15
Views: 848

Re: color the cells of the xbrowse

... 1 nCount ++ aResult[ ii ] [ 3 ] := NumColor2RGB( nNumColor * nCount ) ENDIF NEXT return aBColors FUNCTION FindDupe(aResult,oCol) LOCAL nPosi LOCAL bColor := {255,255,255} LOCAL nCellValue nCellValue := oCol:value nPosi := ASCAN( aResult, { | e | e[ 1 ] = nCellValue } ) IF nPosi > 0 IF aResult[ ...
by Silvio.Falconi
Wed Apr 20, 2022 10:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: color the cells of the xbrowse
Replies: 11
Views: 825

Re: New FTDN December 2019 (FWH 19.12)

... especificar un bloque de código en la cláusula COLOR en lugar de la constante de color. Si se especifica un bloque de código, se asigna a oGet: bColor. El bloque de código se evalúa en cada actualización con el objeto get como parámetro. El bloque de código debe devolver una matriz de dos colores, ...
by Antonio Linares
Thu Jan 02, 2020 12:45 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN December 2019 (FWH 19.12)
Replies: 2
Views: 3030

New FTDN December 2019 (FWH 19.12)

... * TGet: - A codeblock can be specified in the COLOR clause instead of color constant. If a codeblock is specified, it is assigned to oGet:bColor. The codeblock is evaluated on every refresh with the get object as parameter. The codeblock should return an array of two colors, which will ...
by Antonio Linares
Sat Dec 21, 2019 5:59 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN December 2019 (FWH 19.12)
Replies: 2
Views: 3030

New FTDN February/Febrero 2018 (FWH 18.02)

... please apply this fix to tget.prg Pleae remove the following lines of code from methods New() and Redefine() ---- if ValType( nClrFore ) == 'B' ::bColor := nClrFore nClrFore := GetSysColor( COLOR_WINDOWTEXT ) endif ---- - If width and height are not specified, they are calculated automatically. ...
by Antonio Linares
Fri Mar 09, 2018 12:01 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN February/Febrero 2018 (FWH 18.02)
Replies: 0
Views: 1338

Re: Wbrowse cell edit - problem in TGET class

Anyway, the problem seems to be here in tget.prg, method Default():   if ::bColor != nil      tmp   := Eval( ::bColor, Self )      ::SetColor( tmp[ 1 ], tmp[ 2 ] )   endif If I'm not ...
by Enrico Maria Giordano
Wed Aug 23, 2017 9:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Wbrowse cell edit - problem in TGET class
Replies: 11
Views: 1991

Re: New FTDN May/Mayo 2017 (FWH 17.05)

... shows how to use pcode DLLs from our EXEs. * samples\TransFree.prg Other sample use function FW_TransLang from dialog * TGET: New DATA bColor If specified, bColor will be evaluated with oGet as parameter. The codeblock should return an array { nTextColor, nBackColor } TGet uses these ...
by Antonio Linares
Tue May 30, 2017 9:24 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN May/Mayo 2017 (FWH 17.05)
Replies: 1
Views: 2432

Re: xBrowse ERROR

... // xBROWSE Function XBRW_DB(nDBF,aDB,nFUN,nDES,nSRC,nSTA,nFIL,nBUT,oUSR,nSCH,nICO,bSALDO,nTAG,bCOLOR,bPOP,oFONT,bGO,nUFLT,bUKEY) Local oWIN,oICO,oXDBF,oBAR,oPOPEXP Local oBRW,nUSR:=0 Local oINS,oMOD,oCAN,oVIS,oANT,oSTA,oSRC,oFLT,oEXP Local nUNO:=StrTran(IIF(AT("/",nDES)>0,Left(nDES,Len(nDES)-2),nDES) ...
by vensanto
Thu Mar 13, 2014 4:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse ERROR
Replies: 14
Views: 2152

Re: errores FiveLinux

... que es potente, muy muy potente. La magia NO EXISTE. Muchas methods, DATA, etc... no están implementadas, por lo tanto, código del tipo oBrowse:bColor := {|o| iif( o:MiData, Esto, lo otro ) } te va a explotar en las manos. La impresión, oh! la impresión ;-) Creo que la gente de GTK, olvidó el ...
by thefull
Mon Sep 03, 2012 9:47 pm
 
Forum: FiveLinux / FiveDroid (Android)
Topic: errores FiveLinux
Replies: 16
Views: 6277

TSBROWSE 9.0

... := .f. obRW2:lDrawHeaders:= .t. obRW2:lNoChangeOrd:= .t. obRW2:lFooting := .t. obRW2:lNoMoveCols := .t. obRW2:lNoHScroll := .t. obRW2:nFreeze := 2 bColor := {|| If(oBrw2:nLogicPos() % 2 = 0,CLR_LGRAY,CLR_LGREEN) } obRW2:SetColor( { 1, 3, 4, 5, 6, 9, 10, 13, 15, 11, 12, 14 }, ; { CLR_BLACK,; CLR_BLACK,; ...
by MGA
Mon Jan 04, 2010 10:44 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: TSBROWSE 9.0
Replies: 2
Views: 1218

Sr. Manuel - TSBROWSE incremental search!

... := .t. obRW2:lDrawHeaders:= .t. obRW2:lNoChangeOrd:= .t. obRW2:lFooting := .f. obRW2:lNoMoveCols := .f. obRW2:lNoHScroll := .t. obRW2:nFreeze := 4 bColor := {|| If(oBrw2:nLogicPos() % 2 = 0,CLR_LGRAY,CLR_LGREEN) } obRW2:bKeyDown := {|nKey| if(nKey==VK_INSERT,fwhtradicmanut(.t.,oBrw2),; if(nKey==VK_RETURN,fwhtradicmanut(.f.,oBrw2),; ...
by MGA
Tue Oct 13, 2009 10:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Sr. Manuel - TSBROWSE incremental search!
Replies: 3
Views: 783

Iconos en Ventanas

... icon1 DEFINE ICON ICON1 name "cliente" define window oWnd2 title "Fichero de Clientes" MDICHILD ICON ICON1 of oWnd color 25,bcolor ... en otra función local icon1 DEFINE ICON ICON1 name "factura" define window oWnd2 title "Facturas" MDICHILD ICON ICON1 ...
by alvaro533
Fri Aug 07, 2009 11:45 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Iconos en Ventanas
Replies: 13
Views: 1956

TSBROWSE ARRAY C/BTNGET

... ? ADD COLUMN TO BROWSE oLbx DATA ARRAY ELEMENT 1; TITLE "Col 1" ; SIZE 120 EDITABLE check; // this column is editable COLORS CLR_BLACK, bColor; // background color from a Code Block 3DLOOK TRUE, TRUE, TRUE; // cells, titles, footers MOVE DT_MOVE_NEXT; // cursor goes to next editable ...
by Sdo
Sat Apr 11, 2009 3:34 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TSBROWSE ARRAY C/BTNGET
Replies: 3
Views: 679
Next

Return to advanced search

cron