Search found 1145 matches: hdc

Return to advanced search

New FTDN April 2024 (FWH 24.04)

... lReadOnly: lReadOnly can be toggled during runtime also. * function RoundBox() new 11th parameter nPenStyle, default PS_SOLID Syntax: RoundBox( hDC, nLeft, nTop, nRight, nBottom, ; nRound1, nRound2, nPenColor, nPenSize, ; nFillColor, nPenStyle ) * BtnBmp: Alpha Color support Support for alpha ...
by Antonio Linares
Wed Apr 24, 2024 7:14 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN April 2024 (FWH 24.04)
Replies: 0
Views: 43

Re: Ayuda C++ : SOLUCIONADO

... -> "c:\temp\salida.pdf" // la impresora por defecto no pueder ser PDF24 O PDFCREATOR (VIRTUALES) HB_FUNC_STATIC( STARTDOC ) { HDC hDC = (HDC) hb_parnl(1) ; LPDOCINFO sDoc = NULL; BOOL Result = FALSE ; if (hDC ) { sDoc = (LPDOCINFO) hb_xgrab(sizeof(DOCINFO)); sDoc->cbSize= ...
by russimicro
Fri Apr 19, 2024 9:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda C++ : SOLUCIONADO
Replies: 12
Views: 325

Re: Create a Panel width a text

... fw_saytext function works well in fact it shows the initial message then if you see well I replaced the getlabeldim function with CalcTextHeight( hDC, cText, oFont, nWidth ) corrected by Nageswarao On your sample: oPaneltext cannot be the same name of a Panel I propose to usare oTExt MEMOTEXT ...
by Silvio.Falconi
Mon Feb 26, 2024 8:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a Panel width a text
Replies: 29
Views: 3191

Re: Create a Panel width a text

function CalcTextHeight( hDC, cText, oFont, nWidth )   local oWnd, nHt   DEFAULT hDC := GetDC( 0 )   if HB_ISOBJECT( hDC )      oWnd     := hDC      hDC      := oWnd:GetDC()      DEFAULT oFont := oWnd:oFont, ...
by Silvio.Falconi
Fri Feb 23, 2024 12:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a Panel width a text
Replies: 29
Views: 3191

Re: Create a Panel width a text

function CalcTextHeight( hDC, cText, oFont, nWidth )   local oWnd, nHt   DEFAULT hDC := GetDC( 0 )   if HB_ISOBJECT( hDC )      oWnd     := hDC      hDC      := oWnd:GetDC()      DEFAULT oFont := oWnd:oFont, ...
by nageswaragunupudi
Fri Feb 23, 2024 3:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a Panel width a text
Replies: 29
Views: 3191

Re: Create a Panel width a text

... 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 cMsg but 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: 3191

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   local ...
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: 3191

Re: Create a Panel width a text

... height are stored in the rect structure. Please look for DT_CALCRECT in FWH *.prg source code for code examples yes, I allredy found DrawTextEx( ::hDC, cMessage , {nTop,nLeft,nBottom,nRight} ) but when I have the new cMessage ( edited) I must modify 3 controls on line 1. the TaskPanel 2. the first ...
by Silvio.Falconi
Fri Jan 05, 2024 10:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a Panel width a text
Replies: 29
Views: 3191

Re: Calculate total pages

... Mr.Otto said. I save an emf file and then reopen add the number and print it. We can modify an emf file in two ways: 1. Open the emf file into hDC and directly overprint the new text and save. But this has to be done by the programmer. 2. For very minor changes, like over-writing the number ...
by nageswaragunupudi
Sat Nov 25, 2023 8:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 5878

Re: Calculate total pages

...   cUniqueID := cUniqueID()       CursorWait()       DeleteDC( oDevice:hDC)      oDevice := NIL                            //cDoc, ...
by Otto
Fri Nov 24, 2023 6:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 5878

Re: Tget /tsay disable/enable

If you want to paint on the dialog then you must use the hDC of the dialog, don't use the hDC of the control Function MakeBox(oControl,oDlgEdit)   local oBox   local aRect := GetClientRect(oControl:hWnd )   local ...
by Silvio.Falconi
Thu Nov 09, 2023 10:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tget /tsay disable/enable
Replies: 5
Views: 367

Re: Tget /tsay disable/enable

If you want to paint on the dialog then you must use the hDC of the dialog, don't use the hDC of the control
by Antonio Linares
Thu Nov 09, 2023 10:04 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tget /tsay disable/enable
Replies: 5
Views: 367

Dificultad con METERS

... local nhoja := 0 .... if lsigo PRINT oPrn NAME "Ventas de Formularios" PREVIEW MODAL if Empty( oPrn:hDC ) MsgStop( "Impresora Fuera de Linea" ) return nil endif .... while !CliFor->(Eof()) cMensaje := left(CliFor->RazonSoc,15) oMensaje:Refresh() ...
by José Camilo
Tue Aug 22, 2023 12:22 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Dificultad con METERS
Replies: 5
Views: 257

Re: numeric get

Dear Detlef,

Please modify this line in tget.prg this way:

FW_SayText( ::hDC, If( Empty( Eval( ::bSetGet ) ), "", Transform( Eval( ::bSetGet ), ::cPicture ) ), aRect, "R", ::oFont, ::nClrText )

now it works as you need :-)
by Antonio Linares
Thu Jul 20, 2023 11:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: numeric get
Replies: 8
Views: 322

Re: UTF8 SQL and FW_SetUnicode() / hb_cdpSelect()

hi, Sign are from SQL-Server, which is configure as UTF-8, are paint into hDC "as it is" and display UTF-8 "same" Data display in XBROWSER show Sign "right" as DEWIN so "somewhere" must be a "translate" ... but ...
by Jimmy
Thu Jul 06, 2023 8:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: UTF8 SQL and FW_SetUnicode() / hb_cdpSelect()
Replies: 2
Views: 305
Next

Return to advanced search