Search found 126 matches: rect

Return to advanced search

Re: Create a Panel width a text

Dear Silvio, You can use Windows API DrawText() using the flag DT_CALCRECT to calculate the dimensions of the text rectangle without actually drawing the text. it will take into account the font you are using, etc. The resulting width and height are stored in the rect structure. ...
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: 3171

Re: Create a Panel width a text

Dear Silvio, You can use Windows API DrawText() using the flag DT_CALCRECT to calculate the dimensions of the text rectangle without actually drawing the text. it will take into account the font you are using, etc. The resulting width and height are stored in the rect structure. ...
by Antonio Linares
Fri Jan 05, 2024 7:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a Panel width a text
Replies: 29
Views: 3171

Re: Numeric alignment with oPrn:SayText( )

From Whatnew * TWindow Method 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, ...
by Marc Venken
Wed May 17, 2023 10:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Numeric alignment with oPrn:SayText( )
Replies: 8
Views: 527

Print this character &

... don't. There are more... When I clicked on button "acrobat", the PDF file I created show me the roundbox whith the 4 corners round and rect. (I usually use tUtilprn, thanks to Rafa TheFull) This was working FWH 22.12 Saludos Ruben Fernandez
by D.Fernandez
Thu Feb 02, 2023 4:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Print this character &
Replies: 2
Views: 247

Re: New FTDN October/Octure (FWH 22.10)

... utilizarla para imprimir la imagen. Ejemplo: cImage := FIELD->IMAGE @ r,c PRINT TO oPrn IMAGE cImage SIZE w,h INCHES ahora podemos utilizar directamente la variable de campo. Ejemplo: @ r,c PRINT TO oPrn IMAGE FIELD->IMAGE SIZE w,h INCHES * oAdoRecordset en XBROWSER estaba dando un error ...
by Antonio Linares
Mon Nov 07, 2022 9:38 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN October/Octure (FWH 22.10)
Replies: 2
Views: 862

New FTDN October/Octure (FWH 22.10)

... variable and then use it to print the image. eg., cImage := FIELD->IMAGE @ r,c PRINT TO oPrn IMAGE cImage SIZE w,h INCHES now we can directly use the field variable. eg., @ r,c PRINT TO oPrn IMAGE FIELD->IMAGE SIZE w,h INCHES * XBROWSER oAdoRecordset was giving runtime error due ...
by Antonio Linares
Wed Nov 02, 2022 11:55 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN October/Octure (FWH 22.10)
Replies: 2
Views: 862

Richedit5 SendMsg

... quieren pegar. He intentado que se pueda marcar la posición de inicio y la de final que se quiere seleccionar, añadiendo un array que contine un rect, guardando las coordenadas cuando hacen doble click (en el método LDblClick) y luego cuando hacen click (en el método LButtonDown) de manera que ...
by Sebastián Almirón
Wed Aug 11, 2021 5:20 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Richedit5 SendMsg
Replies: 5
Views: 759

About TCalendar

... that I would implement in this way: //----------------------------------------------------------------------------//HB_FUNC( MONTHCAL_GETMINREQRECT )     //  hWnd  -->  { nTop, nLeft, nBottom, nRight }{   HWND hWnd = ( HWND ) fw_parH( 1 );   RECT rct;   rct.top   ...
by AntoninoP
Mon Dec 07, 2020 10:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: About TCalendar
Replies: 16
Views: 2769

Al compiliar sbrowse TSBFUNCS.C me marca errores

... 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 = _parni( 2 ) ; int wCol = _parni( 3 ) ; int wWidth = _parni( 4 ) ; HFONT hFont ...
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: 287

Re: TButton Icon Alignment

Try specifying oBtn:aBmpRect := { t, l, b, r } in pixels.
Then bitmap will be positioned inside the specified rectangle.
Specify the same rect to all the buttons.
by nageswaragunupudi
Wed Jul 29, 2020 2:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TButton Icon Alignment
Replies: 6
Views: 1405

Re: Consulta FreeImage.dll

... MENUITEM FWString("Fit Height")   ACTION ::FitHeight()      MENUITEM FWString("Fit In Rect")  ACTION ::FitRect()      SEPARATOR      MENUITEM FWString("Crop")   ...
by MOISES
Sun Apr 26, 2020 4:00 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta FreeImage.dll
Replies: 11
Views: 1573

FW_TextToBitmap

... how do you create a bitmap with round corners? there is a function similar to FillRectEx that builds a rect with round angles ? I tried with this ( inserting it at 2046 line) RectRound( hDC2, 0, 0, nWidth,nHeight, 20, 20 ) but not run
by Silvio.Falconi
Fri Feb 28, 2020 10:36 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_TextToBitmap
Replies: 0
Views: 237

Re: Sobre TRbtn y BtnBmp (solucionado)

oBtn:aBmpRect := { nTop, nLeft, nBottom, nRight } in pixels relative to the BtnBmp's rect. Should work with resources also. Yes, it works with resources. Hola lo siento pero no entiendo como lo haceis. a ver yo tengo en recursos un BtnBmp situado en X Position : 180 ...
by AngelSalom
Thu Jun 20, 2019 1:25 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Sobre TRbtn y BtnBmp (solucionado)
Replies: 13
Views: 1250

Re: Sobre TRbtn y BtnBmp (solucionado)

oBtn:aBmpRect := { nTop, nLeft, nBottom, nRight } in pixels relative to the BtnBmp's rect. Should work with resources also. Yes, it works with resources. Hola lo siento pero no entiendo como lo haceis. a ver yo tengo en recursos un BtnBmp situado en X Position : 180 ...
by jvtecheto
Thu Jun 20, 2019 10:42 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Sobre TRbtn y BtnBmp (solucionado)
Replies: 13
Views: 1250

Re: Sobre TRbtn y BtnBmp (solucionado)

nageswaragunupudi wrote:oBtn:aBmpRect := { nTop, nLeft, nBottom, nRight }
in pixels relative to the BtnBmp's rect.

Should work with resources also.


Yes, it works with resources.
by AngelSalom
Thu Jun 20, 2019 7:06 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Sobre TRbtn y BtnBmp (solucionado)
Replies: 13
Views: 1250
Next

Return to advanced search