Search found 15 matches: gettextheight

Return to advanced search

Re: Ayuda DLL

Antonio, aquí la segunda parte: Error: Unresolved external '_HB_FUN_DRAWTHEMED' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DIALOG Error: Unresolved external '_HB_FUN_GETDLGBASEUNITS' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DIALOG Error: Unresolved external '_HB_FUN_CDLG2CHR' referenced from P...
by ricardog
Thu Aug 31, 2017 2:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 6358

Re: Larghezza testo in BUTTON/BTNBMP

Romeo,

Romeo wrote:xtesto:=GetTextWidth(0,cvar,ofont)
ytesto:=GetTextHeight(0,cvar,ofont)


Code: Select all  Expand view
xtesto:=GetTextWidth(0,cvar,ofont:hFont)


Mentre non mi risulta una GetTextHeight() analoga alla GetTextWidth().

EMG
by Enrico Maria Giordano
Thu Feb 06, 2014 6:53 pm
 
Forum: All products support
Topic: Larghezza testo in BUTTON/BTNBMP
Replies: 1
Views: 588

Larghezza testo in BUTTON/BTNBMP

... @10,10 BUTTON obtn prompt cvar of ownd size a,b font ofont pixel xbutt:=obtn:nWidth ybutt:=obtn:nHeight xtesto:=GetTextWidth(0,cvar,ofont) ytesto:=GetTextHeight(0,cvar,ofont)  E poi proseguo con i test x capire se ci stà il cvar nel button, ma canno da qualche parte !??!? Grazie Romeo/Zingoni
by Romeo
Thu Feb 06, 2014 3:26 pm
 
Forum: All products support
Topic: Larghezza testo in BUTTON/BTNBMP
Replies: 1
Views: 588

Re: DRAW A TEXT ON A BITMAP

... nRow := nTop local cLine, nFontHt, nAt nAt := AT( CRLF, cText ) IF nAt > 0 cLine := Left( cText, nAt - 1 ) oBold:Activate( hDC ) nFontHt := GetTextHeight( oCol:oBrw:hWnd, hDC ) DRAWTEXTEX( hDC, cLine, { nRow, nLeft, nRow + nFontHt + 4, nRight }, 1 ) //oCol:nDataStyle ) oBold:DeActivate( ...
by ukoenig
Tue Jul 02, 2013 3:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DRAW A TEXT ON A BITMAP
Replies: 35
Views: 9011

Re: Saber la longitud de una cadena en píxeles

Nadie sabe ???? De todas maneras muchas gracias Publicaste el post un domingo (en la tarde por tu ubicacion, en la noche para europa), muchos no trabajan ese dia, y solo han pasado 14 horas para adentramos al lunes, por lo menos en la parte de america es bastante temprano, la proxima vez ten un poc...
by Daniel Garcia-Gil
Mon Jan 16, 2012 11:35 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Saber la longitud de una cadena en píxeles
Replies: 4
Views: 694

Problem printing on 12 inch form

... SIZE 0,-10 OF oPrinter // Init... Mwidth = oPrinter:nHorzRes() Mheight = oPrinter:nVertRes() Mrow = 0 M_col = 0 nCol = 0 nHgt = oPrinter:GetTextHeight("X", oFont1 ) nCopy = 2 FOR nPrt=1 TO nCopy /* Start Printing Page */ PAGE // Init... Mrow = 0 M_col = 0 // Print data _IntlAwb( ...
by cdmmaui
Wed Aug 03, 2011 2:36 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem printing on 12 inch form
Replies: 2
Views: 675

Re: Paper size problems

... OF oPrn DEFINE FONT oFont4 NAME "Arial" SIZE 0,-8 OF oPrn // Init... Mwidth = oPrn:nHorzRes() Mheight = oPrn:nVertRes() M_hgt = oPrn:GetTextHeight("X", oFont3 ) SELECT (cTmpDb) GO TOP DO WHILE ! EOF() IF EMPTY( (cTmpdb)->prt ) SKIP LOOP ENDIF // Start... PAGE M_row = ...
by cdmmaui
Sat Apr 24, 2010 2:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Paper size problems
Replies: 9
Views: 2429

Paper size problems

... FONT oFont4 NAME "Arial" SIZE 0,-8 OF oPrinter // Init... Mwidth = oPrinter:nHorzRes() Mheight = oPrinter:nVertRes() M_hgt = oPrinter:GetTextHeight("X", oFont3 ) SELECT (cTmpDb) GO TOP DO WHILE ! EOF() IF EMPTY( (cTmpdb)->prt ) SKIP LOOP ENDIF // Start... PAGE M_row = ...
by cdmmaui
Fri Apr 23, 2010 4:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Paper size problems
Replies: 9
Views: 2429

Re: GPF error

Hello Antonio I have a casual GPF error and don't know how to resolve . The message is :Offset : 001fb5f and this is the section of the MAP file 0001:0001F02C c611_0 0001:0001F02C __SetAcceleratorTable 0001:0001F047 _HB_FUN_SETIDLEACT 0001:0001F04C _HB_FUN___GENGPF 0001:0001F058 _HB_FUN_WINRUN 0001...
by Patrizio
Tue Apr 20, 2010 6:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: GPF error
Replies: 11
Views: 2558

Re: Se necesita ayuda en el wiki !

... GetStockObject() GetSubMenu() GetSysColor() GetSysDir() GetSysFont() GetSysMetrics() GetSystemMenu() GetTasks() GetTextAlign() GetTextColor() GetTextHeight() GetTextWidth() GetTickCount() GetVersion() GetWinDir() GetWindowWord() GetWinFlags() GetWinTxtLength() GetWndApp() GetWndFrame() GetWndRect() ...
by Cgallegoa
Sun Feb 21, 2010 10:35 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Se necesita ayuda en el wiki !
Replies: 12
Views: 5504

GPF error

Hello Antonio I have a casual GPF error and don't know how to resolve . The message is :Offset : 001fb5f and this is the section of the MAP file 0001:0001F02C c611_0 0001:0001F02C __SetAcceleratorTable 0001:0001F047 _HB_FUN_SETIDLEACT 0001:0001F04C _HB_FUN___GENGPF 0001:0001F058 _HB_FUN_WINRUN 0001:...
by Maurizio
Mon Jul 20, 2009 4:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GPF error
Replies: 11
Views: 2558

... ::nAlign, TA_BOTTOM ) == TA_BOTTOM if ::oFont != nil ::SetFont( ::oFont ) else ::SetFont( ::oWnd:oFont ) endif ::nTxtWidth = 0 ::nTxtHeight = GetTextHeight( ::hWnd, 0 ) ::aCaption = Array( MLCount( ::cCaption, 254 ) ) AEval( ::aCaption, {|c, n| ::aCaption[ n ] := Trim( MemoLine( ::cCaption, ...
by karinha
Tue Sep 23, 2008 7:47 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Para Karinha
Replies: 17
Views: 3700

tsbutton+xbrowse done a google like app help

... := aCoord[ 3 ], nRight := aCoord[ 4 ] local nRow := nTop local cLine, nFontHt SetTextColor( hDC, CLR_HBLUE) ofont1:Activate( hDC ) nFontHt := GetTextHeight( oCol:oBrw:hWnd, hDC ) DrawTextEx( hDC, ALLTRIM(odb1:ctitle), { nRow, nLeft, nRow + nFontHt + 4, nRight }, oCol:nDataStyle ) ofont1:DeActivate( ...
by ShumingWang
Thu Jul 24, 2008 10:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: tsbutton+xbrowse done a google like app help
Replies: 1
Views: 871

... hDC = ::hDC SetBkMode( hDc, 1 ) SetTextColor( hDC,::nClrText ) SelectObject( hDC, If( ::oFont != nil, ::oFont:hFont, 0 ) ) nTxtHeight := Max(14, GetTextHeight( ::hWnd )-2) FOR nX := 1 TO len(::cCaption) IF substr(::cCaption,nX,1) == " " // or seek for a CRLF TextOut( hDC,nR * nTxtHeight , 1 , ...
by Maurizio
Mon Apr 02, 2007 4:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Multiline in TBtnBmp and color in TreeView
Replies: 6
Views: 1534

Como se convierte font de Twindows a FONT DE TPRINTER

... naltura, nColorIndex, lVertAdjust ) METHOD CheckSpelling() METHOD End() METHOD EndPage() METHOD FillRect( aRect, oBrush ) METHOD GetTextHeight( oFont ) METHOD GetTextWidth(cText, oFont) METHOD GoBottom() INLINE ::oTexto:Invoke( 'EndKey', 6) METHOD GoTop() INLINE ::oTexto:Invoke( ...
by Vladimir Zorrilla
Tue Apr 18, 2006 6:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como se convierte font de Twindows a FONT DE TPRINTER
Replies: 5
Views: 3777

Return to advanced search