Search found 322 matches: bpainted

Return to advanced search

Re: Create a Panel width a text

... = GetLabelDim( oPanel2:hWnd, cMessage , oFont:hFont ) oPanel:setsize(aDim[ 1 ] + 60, aDim[ 2 ] + 50) oPanel:SetColor( "N/W*" ) oPanel:bPainted = { | hDC | DrawTextTransparent( hDC, cMessage , { 10, 10, aDim[ 1 ] + 100, aDim[ 2 ] + 100 }, 1 ) } ENDIF the Panel is modified and also the ...
by Silvio.Falconi
Sat Jan 06, 2024 6:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a Panel width a text
Replies: 29
Views: 3192

Re: Create a Panel width a text

I tried also with oPanel1:bPainted := { |hDc| Mostra_testo_boxed(cMessageMemo,oPanel1) } Function Mostra_testo_Boxed(cMessageMemo,oPanel1)   local oItem1,oItem2   local old_Height:= oPanel1:nBodyHeight   local nLineswidth:= 250  ...
by Silvio.Falconi
Sat Jan 06, 2024 2:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a Panel width a text
Replies: 29
Views: 3192

Re: Moving the dialog

Thank you, Antonio! I'll try to figure it out. It was the code block :bPainted that caused delays when
pulling the window out from behind the screen. I needed an understanding of when to execute this block of code and when not to
by Natter
Mon Oct 23, 2023 1:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Moving the dialog
Replies: 8
Views: 497

Re: Moving the dialog

Dear Yuri, when a window, dialog or control is painted, FWH evals oWnd:bPainted if defined from METHOD Paint() CLASS TWindow      if ValType( ::bPainted ) == "B"         uVal = Eval( ::bPainted, ::hDC, ::cPS, Self )      endif ::cPS ...
by Antonio Linares
Mon Oct 23, 2023 12:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Moving the dialog
Replies: 8
Views: 497

Re: lIncrFilter + MDI

... WINDOW oWnd MDI DEFINE BUTTONBAR oBar OF oWnd SIZE 45,45 2007 DEFINE BUTTON OF oBar PROMPT "TEST" CENTER ACTION Test() oWnd:oWndClient:bPainted := {||oWnd:oWndClient:DrawImage( "c:\fwh\bitmaps\logo.bmp", "BR" )} ACTIVATE WINDOW oWnd return nil Function Test() local ...
by cpheraclio
Sun Jun 04, 2023 11:22 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: lIncrFilter + MDI
Replies: 4
Views: 370

Re: SAY dentro de BUTTOMBAR??

... ,; ,; (aacciones[i][4]),; ,; (aacciones[i][3]),; ,; ,; ,; .F. ) next AEVAL(oBar:aControls,{|o,n|o:SetColor(CLR_BLACK,CLR_BLUE)}) oBar:bPainted := {|| oBar:SayText( "Prueba", nil, "R" ) } //* los 2 primeros array marcan los colores del boton al pasar por el, los ...
by José Camilo
Sat Jun 03, 2023 6:22 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: SAY dentro de BUTTOMBAR??
Replies: 4
Views: 213

Re: Numeric alignment with oPrn:SayText( )

... SayText( cText, aRect, cAlign, oFont, nClrText, nClrBack, lBorder ) Applies to all derived classes like dialogs and controls To be used in o:bPainted. function FW_SayText( hDC or oWnd, cText, aRect, cAlign, oFont, nClrText, nClrBack, lBorder ) Can be used with Printer DC also FW_SayText( ...
by Marc Venken
Wed May 17, 2023 10:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Numeric alignment with oPrn:SayText( )
Replies: 8
Views: 537

Re: Bad look btnbmp disable()

... ) DiagCross SetBrush( "DIAGCROSS", nRGB( 0, 100, 255 ) ) then to remake the border use the Uwe's solution DEFINE DIALOG oDlg..... oDlg:bPainted := < |hDC| oBtn:setsize(20,17.6) // this because the obtn is more big with png DRAWBORDER( hDC, oBtn:nLeft-2, oBtn:ntop-2,; oBtn:nWidth+2, ...
by Silvio.Falconi
Thu Mar 09, 2023 9:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bad look btnbmp disable()
Replies: 9
Views: 723

Re: Problem Xbrowser Border

... I saw a Uwe post https://forums.fivetechsupport.com/viewtopic.php?f=3&t=36937&start=0&hilit=xbrowse+border and I resolved with oDlg:bPainted := < |hDC| DRAWBORDER( hDC, oBrw:nLeft-2, oBrw:ntop-2,; oBrw:nWidth+2, oBrw:nHeight+62 , 0, 1, Rgb(195,195,185), .t. ) RETURN NIL > why ...
by Silvio.Falconi
Fri Mar 03, 2023 10:04 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem Xbrowser Border
Replies: 11
Views: 1011

Re: REDEFINE SAY on Buttonbar

Antonio,

I tried but it fails. The actual bar object is oBarInv

oBar does not exist so the error says there is no exported variable bPainted ...

Tim
by TimStone
Tue Dec 06, 2022 8:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: REDEFINE SAY on Buttonbar
Replies: 33
Views: 1982

Re: REDEFINE SAY on Buttonbar

Dear Tim,

Instead of:

oDiw:oBarInv:bPainted = { || oDiw:oBarInv:Say( 5, 200, cIAMsg, , , , .T., .T. ) }

use:

oDiw:oBar:bPainted = { || oDiw:oBar:Say( 5, 200, cIAMsg, , , , .T., .T. ) }
by Antonio Linares
Tue Dec 06, 2022 8:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: REDEFINE SAY on Buttonbar
Replies: 33
Views: 1982

Re: REDEFINE SAY on Buttonbar

bPainted is executed when the control (the buttonbar in this case) needs to be repainted.
by Enrico Maria Giordano
Tue Dec 06, 2022 10:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: REDEFINE SAY on Buttonbar
Replies: 33
Views: 1982

Re: REDEFINE SAY on Buttonbar

Enrico Maria Giordano wrote:What's wrong with mine? At least it is simpler. Both codes use bPainted codeblock so they are equivalent.


It is working indeed... But I wonder why bPainted is needed ? What does it do ?
by Marc Venken
Tue Dec 06, 2022 10:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: REDEFINE SAY on Buttonbar
Replies: 33
Views: 1982

Re: REDEFINE SAY on Buttonbar

What's wrong with mine? At least it is simpler. Both codes use bPainted codeblock so they are equivalent.
by Enrico Maria Giordano
Tue Dec 06, 2022 10:04 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: REDEFINE SAY on Buttonbar
Replies: 33
Views: 1982

Re: cyclometric circle

Antonio, I tried also with ::bPainted := { |hDC|FillRectEx( ::hDC, aPoints, aGrad) } or ::bPainted := { |hDC|FloodFill( ::hDC, aPoints [1][1], aPoints [5][1], nil, nColor ) } or local hBru := CreateSolidBrush( nColor ) local hOld := SelectObject( ...
by Silvio.Falconi
Sat Dec 03, 2022 3:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cyclometric circle
Replies: 46
Views: 3032
Next

Return to advanced search