Search found 452 matches: calculate

Return to advanced search

Re: Count xbrowse records

... // kee this index tag also? OrdKeyCount(0) - OrdKeyCount( "DELS" ) Nages, is there a function in Xbrowse to calculate how many records are visible in xbrowse? I explain to you: at the bottom of the Xbrowse I want to insert two buttons to move the records and ...
by Silvio.Falconi
Fri Feb 23, 2024 1:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Count xbrowse records
Replies: 5
Views: 246

Re: Create a Panel width a text

... my problem is another Initially the message is made up of two lines, when the message is modified in the ShareBoard() function the procedure must calculate the right height and resize the panel (oPanel2) and in turn oPaneltext where the text of the message is located. Finally the procedure must ...
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: 3163

Re: Resolution of monitor

I hope you understand now. I use different resolutions using RESOURCES, I calculate the coordinates in WORKSHOP.exe Espero que lo entiendas ahora. Utilizo diferentes resoluciones usando RECURSOS, calculo las coordenadas en WORKSHOP.exe // C:\FWH\SAMPLES\SILVRESO.PRG#include ...
by karinha
Wed Jan 10, 2024 12:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Resolution of monitor
Replies: 29
Views: 2523

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 ...
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: 3163

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 ...
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: 3163

Re: Create a Panel width a text

... text @ 5,o10 SAY oMemo VAR cMessageMemo of oItem2 ; SIZE oItem2:nwidth-40,oItem2:nBottom-10 PIXEL ; FONT oFontText TRANSPARENT UPDATE How I can calculate the nbottom of all tpanels with nTotRows ?
by Silvio.Falconi
Thu Jan 04, 2024 10:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a Panel width a text
Replies: 29
Views: 3163

Re: Calculate total pages

thanks Rao Would this also work if I use the browse setup? example oBrw:Report( cTitle, , , ; { |oRep, oBrw| MySetUp( oRep, oBrw, oDbf,aGroup,nGroup,lEject,aCampi ) } ) static function MySetUp( oRep, oBrw, oDbf,aGroup,nGroup,lEject,afields ) local cFooter := "Progetto Magazzino - " local c...
by Silvio.Falconi
Tue Nov 28, 2023 8:39 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 5849

Re: Calculate total pages

In XBrowse.prg Please make this change in METHOD Report(...) Replace these lines   REPORT oRep TITLE cTitle ;          FOOTER FWString( "Page" ) + " : " + cValToChar( oRep:nPage ) CENTER ;          FONT oFont,oBold ;          TO DEVICE oPrn  with   REPORT oRep TIT...
by nageswaragunupudi
Mon Nov 27, 2023 5:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 5849

Re: Calculate total pages

Mr. Silvio Please make only this one change in the report.prg: In the Method Activate(), locate these lines:      if !::lHaru .and. Empty( ::oDevice:cFile ) .and. !PrintQueue()         Eval( ::bPreview, ::oDevice )      e...
by nageswaragunupudi
Mon Nov 27, 2023 5:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 5849

Re: Calculate total pages

nageswaragunupudi wrote:One caution.
Length of the WideString ( utf16le ) should not change.


Of course.
by Enrico Maria Giordano
Mon Nov 27, 2023 4:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 5849

Re: Calculate total pages

Mr. Silvio
We will get back to you soon.
by nageswaragunupudi
Mon Nov 27, 2023 4:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 5849

Re: Calculate total pages

One caution.
Length of the WideString ( utf16le ) should not change.
by nageswaragunupudi
Mon Nov 27, 2023 4:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 5849

Re: Calculate total pages

It works, thank you!
by Enrico Maria Giordano
Mon Nov 27, 2023 12:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 5849

Re: Calculate total pages

Yes, true. But the text we print is stored in wide format. If we printed "Name", it is stored as AnsiToWide( "Name" ), i.e., "N" + Chr(0) + "a" + Chr(0) + "m" + Chr( 0 ) + "e" + Chr( 0 ). In other words the text is encoded in UTF16LE format...
by nageswaragunupudi
Mon Nov 27, 2023 12:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 5849

Re: Calculate total pages

nageswaragunupudi wrote:For now, we can do this test.
First let us make a few modifications to the Printer.prg:


Great idea, but the EMF that is produced here are pure binaries, no readable text inside them. What am I doing wrong?
by Enrico Maria Giordano
Mon Nov 27, 2023 10:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 5849
Next

Return to advanced search