Search found 22 matches: wordbreak

Return to advanced search

Re: Create a Panel width a text

...  ) , .f. ) } which do NOT Show hole Text when e.g. TEXT are 4 Lines instead of 2 Lines also it does WORDBREAK while Default Style of FW_SayText are DT_VCENTER / DT_CENTER look at FUNCTION FW_SayText() in c:\fwh\source\function\imgtxtio.prg when using ...
by Silvio.Falconi
Sat Feb 24, 2024 11:30 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a Panel width a text
Replies: 29
Views: 3168

Re: Create a Panel width a text

...  ) , .f. ) } which do NOT Show hole Text when e.g. TEXT are 4 Lines instead of 2 Lines also it does WORDBREAK while Default Style of FW_SayText are DT_VCENTER / DT_CENTER look at FUNCTION FW_SayText() in c:\fwh\source\function\imgtxtio.prg when using ...
by Jimmy
Sat Feb 24, 2024 5:22 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a Panel width a text
Replies: 29
Views: 3168

Re: Richedit

hi,

"Normal" you have to add Style DT_WORDBREAK
but it seem that assign .T. to hScroll did the Job
by Jimmy
Sat Jan 21, 2023 4:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Richedit
Replies: 3
Views: 304

Re: Wrong Tooltip

To get a structured text, I added in method METHOD PaintBody( hDC, rc ) CLASS TC5ToolTip DrawText( hDC, AllTrim( ::cBody ), ::aRight,; nOr( If( ::lRightAlignBody, DT_RIGHT, DT_LEFT ), ; DT_EXPANDTABS , DT_WORDBREAK ) ) now the < body > works the same like a standard tooltip I still have to loo...
by ukoenig
Thu Apr 02, 2020 7:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Wrong Tooltip
Replies: 9
Views: 1425

Re: Wrong Tooltip

Could it be possible to use the same logic on TC5ToolTip :?: Tabs are ignored :( I think the problem belongs to these sections in CLASS TC5Tooltip FROM TWindow : DrawText( hDC, ::cHeader2, { ::aHeader2[ 1 ] + 1, ::aHeader2[ 2 ] + 20,; ::aHeader2[ 3 ], ::aHeader2[ 4 ] - 2 }, nOR( DT_WORDBREAK, 8192 )...
by ukoenig
Wed Apr 01, 2020 5:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Wrong Tooltip
Replies: 9
Views: 1425

Re: resize a column to multiline in xbrowse

Rao,

When I try your XbrColMaxHeight() function, I always get 1 for DrawTextEx( hDC, cData, aRect, nOr( DT_CALCRECT, DT_WORDBREAK ) ) eventhough cData does contains varying length of strings. How to fix this?
by hua
Mon Mar 09, 2015 4:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: resize a column to multiline in xbrowse
Replies: 23
Views: 7361

Re: para Antonio : Sobre BTNBMP... oBtn:bPainted

Alveiro, No, asi no hace, puesto que así estarias creando un nuevo control TSay cada vez que se pintase el botón, y eso consumiría muchos recursos y al final incluso podria tirar la aplicación. La forma de escribir texto es usando la función DrawText() ó tambien serviría la función ExtTextOut(): oBt...
by Antonio Linares
Sun Jul 27, 2014 9:42 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: para Antonio : Sobre BTNBMP... oBtn:bPainted (RESUELTO)
Replies: 9
Views: 1159

Re: Ayuda -imprimir factura con columna texto tipo memo

Tengo un documento con Tprinter, don he sustituido un campo caracter por otro Memo (mas grande) y logicamente no funciona con el siguiente código: oPrn:CmSay ( nFilReg+0.5, 4.5, mcomer->NOTAS, oFon3, , ROJO ) Si le pongo ancho,se puede ver solo la primera linea del memo oPrn:CmSay ( nFilReg+0.5,...
by Manuel Valdenebro
Tue Apr 22, 2014 5:36 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda -imprimir factura con columna texto tipo memo
Replies: 19
Views: 4681

Re: Ayuda -imprimir factura con columna texto tipo memo

Tengo un documento con Tprinter, don he sustituido un campo caracter por otro Memo (mas grande) y logicamente no funciona con el siguiente código: oPrn:CmSay ( nFilReg+0.5, 4.5, mcomer->NOTAS, oFon3, , ROJO ) Si le pongo ancho,se puede ver solo la primera linea del memo oPrn:CmSay ( nFilReg+0.5, ...
by Manuel Valdenebro
Fri Apr 18, 2014 4:51 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda -imprimir factura con columna texto tipo memo
Replies: 19
Views: 4681

Re: Ayuda -imprimir factura con columna texto tipo memo

Jose Luis, En el código fuente de FWH se usa en diversos sitios. Un ejemplo: #define DT_TOP 0x00000000 #define DT_LEFT 0x00000000 #define DT_CENTER 0x00000001 #define DT_RIGHT 0x00000002 #define DT_VCENTER 0x00000004 #define DT_BOTTOM 0x00000008 #define DT_WORDBREAK 0x00000010 #define DT_SINGLELINE ...
by Antonio Linares
Wed Sep 11, 2013 7:48 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda -imprimir factura con columna texto tipo memo
Replies: 19
Views: 4681

Re: Ayuda -imprimir factura con columna texto tipo memo

Carlos, Puedes usar la función DrawText() del API de Windows incluida en FWH http://msdn.microsoft.com/en-us/library/windows/desktop/dd162498(v=vs.85).aspx prueba con el flag DT_WORDBREAK Antonio: ¿Como se usaría desde fivewin?. veo esta función muy interesante,mas cuando he ten...
by groiss
Wed Sep 11, 2013 5:06 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda -imprimir factura con columna texto tipo memo
Replies: 19
Views: 4681

Re: Ayuda -imprimir factura con columna texto tipo memo

Carlos,

Puedes usar la función DrawText() del API de Windows incluida en FWH

http://msdn.microsoft.com/en-us/library/windows/desktop/dd162498(v=vs.85).aspx

prueba con el flag DT_WORDBREAK
by Antonio Linares
Tue Sep 10, 2013 8:42 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda -imprimir factura con columna texto tipo memo
Replies: 19
Views: 4681

Re: justify a text

Hello Otto, I had a look at Your function, but it does just a WORDBREAK no textadjust. Also the function I'm just testing, doesn't work 100 % because it just includes blanks, to make shorter lines equal to the longest line. The only way will be, to change ...
by ukoenig
Fri May 25, 2012 6:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: justify a text
Replies: 12
Views: 5423

Re: resize a column to multiline in xbrowse

Rao Your code works great for setting the depth ot the row .. I did have to find the references for DT_CALCRECT and DT_WORDBREAK ( in \bcc55\include\winuser.h ) .. I just added the two lines : #define DT_CALCRECT 0x00000200 #define DT_WORDBREAK 0x00000010 Unfortunately the text in the column does no...
by Rick Lipkin
Thu May 26, 2011 3:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: resize a column to multiline in xbrowse
Replies: 23
Views: 7361

Re: FWH/xHarbour Menus

* DIALOG.PRG (Modified for using a brush to standard window color dialogs) * The brush is called WPAPER2 and it should be included in the .RC file ! // Add this line to your .RC file // WPAPER2 BITMAP "./Bitmaps/WPAPER2.BMP" #include "FiveWin.ch" #include "Constant.ch" ...
by E. Bartzokas
Mon May 25, 2009 3:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH/xHarbour Menus
Replies: 20
Views: 7757
Next

Return to advanced search