Search found 164 matches: hfont

Return to advanced search

Re: Create a Panel width a text

If I made IF oDlgBacheca:nresult == IDOK aDim = 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 ] ...
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: 2897

Re: What is better

Dear Uwe,

static hFonts := {=>}

hFont[ "SAY" ] = TFONT() :NEW( "Segoe UI", 0, -12 , .F., .T. )
hFont[ "GET" ] = TFONT() :NEW( "Segoe UI", 0, -12 , .F., .T. )
...

... FONT hFont[ "SAY" ]
by Antonio Linares
Sat May 27, 2023 1:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: What is better
Replies: 1
Views: 207

Re: using PUBLIC FONT in DIALOG

hi, i got this in *.LOG 14.05.2023 21:03:46: MAIN( 624 ) "Start" = "Start" 14.05.2023 21:04:29: EXCESS RELEASE OF FONT TAHOMA[ hFont : 0] ( nCount : 0 ) <-TFONT:END(303) <-TCONTROL:DESTROY(2318) <-TBTNBMP:DESTROY(1111) <-TWINDOW:HANDLEEVENT(0) <-TCONTROL:HANDLEEVENT(1857) ...
by nageswaragunupudi
Mon May 15, 2023 2:36 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: using PUBLIC FONT in DIALOG
Replies: 3
Views: 220

using PUBLIC FONT in DIALOG

hi, i got this in *.LOG 14.05.2023 21:03:46: MAIN( 624 ) "Start" = "Start" 14.05.2023 21:04:29: EXCESS RELEASE OF FONT TAHOMA[ hFont : 0] ( nCount : 0 ) <-TFONT:END(303) <-TCONTROL:DESTROY(2318) <-TBTNBMP:DESTROY(1111) <-TWINDOW:HANDLEEVENT(0) <-TCONTROL:HANDLEEVENT(1857) ...
by Jimmy
Sun May 14, 2023 7:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: using PUBLIC FONT in DIALOG
Replies: 3
Views: 220

Re: none PIXEL calculation

Is that what you mean ?

GetTextWidth(NIL, "calculate", oFont:hFont)
by Natter
Fri Apr 14, 2023 8:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: none PIXEL calculation
Replies: 6
Views: 315

Re: Child OF oWnd

... 9437200}, {HBITMAP, 0}, {HBMPORGL, 0}, {NCOUNT, 6}, {NRGBCOLOR, 16777215}, {LSYSTEM, .T.}, {USOURCE, CLR_WHITE}}}, {OFONT, {{CFACENAME, TAHOMA}, {HFONT, 1242174205}, {HFONTOLD, 0}, {LBOLD, .F.}, {LITALIC, .F.}, {LUNDERLINE, .F.}, {LSTRIKEOUT, .F.}, {NINPHEIGHT, -20}, {NINPWIDTH, 0}, {NESCAPEMENT, ...
by Jimmy
Thu Nov 10, 2022 5:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Child OF oWnd
Replies: 7
Views: 341

Re: Google pixels versus characters

Dear Marc,

FWH provides function GetTextWidth( hDC, szText [,hFont], [@nHeight] ) --> nPixelsWidth
by Antonio Linares
Thu Oct 06, 2022 2:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Google pixels versus characters
Replies: 1
Views: 164

Error log location

... appname.log being written to the same folder as the executable, with contents such as this: 2021/06/24 13:37:37: EXCESS RELEASE OF FONT ARIAL[ hFont : 0] ( nCount : -1 ) <-TFONT:END(0) <-TBUTTON:DESTROY(0) <-TWINDOW:HANDLEEVENT(0) <-TBUTTON:HANDLEEVENT(0) <-_FWH(0) <-SENDMESSAGE(0) ...
by rhlawek
Thu Jun 24, 2021 5:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error log location
Replies: 4
Views: 427

Re: ACTIVATE FONT

Jose Vicente, realmente lo que haces con ese comando es llamar a la function SelectObject( hDC, oFont:hFont ), para seleccionar el font definido cuando creas el font. Particularmente no he tenido necesidad de usarlo referido a un font definido por mi, pero si tuvieras que ...
by cnavarro
Sun Apr 11, 2021 9:54 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ACTIVATE FONT (SOLUCIONADO)
Replies: 5
Views: 638

Al compiliar sbrowse TSBFUNCS.C me marca errores

... #ifndef __HARBOUR__ CLIPPER aTSBrwPosR() // ect( hWnd, nRow, nCol, nWidth, hFont, nHeightCell, // nHeightHead, nHeightSuper ) #else HARBOUR HB_FUN_ATSBRWPOSRECT( PARAMS ) #endif { HWND hWnd = (HWND) ; _parni( 1 ) ; int wRow ...
by noe aburto
Thu Aug 27, 2020 6:26 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Al compiliar sbrowse TSBFUNCS.C me marca errores
Replies: 1
Views: 277

Re: Como Calcular Ancho en Pixeles de una Variable "FrancicoA"

... el refresh después de establecer el nuevo ancho ? ANTES AEval(aoSay,{|o,n| o:Refresh() ,o:nWidth := GetTextWidth( 0, Alltrim(o:cCaption), o:oFont:hFont ) + if(alBorder[n],6,0) }) AHORA AEval(aoSay,{|o,n| o:nWidth := GetTextWidth( 0, Alltrim(o:cCaption), o:oFont:hFont ) + if(alBorder[n],6,0), o:Refresh()
by JESUS MARIN
Mon Jun 15, 2020 10:16 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como Calcular Ancho en Pixeles de una Variable "FrancicoA"
Replies: 21
Views: 2672

Re: Como Calcular Ancho en Pixeles de una Variable

DEFINE FONT oFont6 NAME "TAHOMA" SIZE 0,-14 BOLD @ 200,160 SAY oSay1 Var Profe->Nom_Pro SIZE GetTextWidth(0,Profe->Nom_Pro,oFont6:hFont),20 PIXEL OF oDlg2 PICTURE "@!" COLOR RGB(0,0,128), RGB(159,233,255) Antonio, así debería funcionarte:  @ 105,160 SAY oSay2 PROMPT  Profe->Nom_Pro ...
by FranciscoA
Fri Jun 12, 2020 8:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como Calcular Ancho en Pixeles de una Variable "FrancicoA"
Replies: 21
Views: 2672

Haru PDF in Mod_Harbour

... in HaruPdf? My vague attempt: hPdf := HPDF_New() cFont := HPDF_LoadTTFontFromFile( hPdf,"c:\mcsweb\lido2020\fonts\cour.ttf",HPDF_TRUE ) hFont := HPDF_GetFont( hPdf,cFont ) HPDF_SetCurrentEncoder( hPdf,"CP1250") hPage := HPDF_AddPage( hPdf ) HPDF_Page_SetSize( hPage,HPDF_PAGE_SIZE_LETTER,HPDF_PAGE_LANDSCAPE ...
by byron.hopp
Thu Mar 26, 2020 7:30 am
 
Forum: mod_harbour
Topic: Haru PDF in Mod_Harbour
Replies: 0
Views: 237

CheckRes()

... si es así como lo soluciono 03/09/2020 09:32:46: DeleteObject( ::hBrush ) failed from TBrush:End() 437262946 03/09/2020 09:32:46: DeleteObject( ::hFont ) failed from TFont:End() -2029381914 0 .T. 03/09/2020 09:32:46: DeleteObject( ::hBrush ) failed from TBrush:End() 420485739 03/09/2020 09:32:46: ...
by russimicro
Mon Mar 09, 2020 2:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: CheckRes()
Replies: 22
Views: 3679
Next

Return to advanced search