New FTDN July/Julio 2020 (FWH 20.07)
Posted: Sat Aug 01, 2020 5:40 pm
July 2020
=========
* New Samples:
xbrbar.prg: shows inbuilt buttonbar in xbrowse.
* XBROWSE:
- When a column header is clicked, the header is painted in the topbar area
fixed.
http://forums.fivetechsupport.com/viewt ... 85#p233785
- oCol:cHeader can be assigned with a codeblock also.
- When oBrw:oRightCol:lFullHeight is .t., clicking anywhere on the righ col
was moving the row pointer. Fixed.
- sqlrdd: When an application program closes the dbf before the xbrowse is
destroyed, unexpected errors might result. An example is here:
http://forums.fivetechsupport.com/viewt ... =6&t=39196
A small workaround is adopted to avoid runtime error in such cases.
- New method SetOrderNatural(): Sets sort order of the database to natural order
and refreshes the browse.
- New methods: ShowRecSelRecNo() and ShowRecSelKeyNo(): Displays RecNo/KeyNo on
the recordselector and total records in the footer, if footer is enabled.
- New DATA: bOnSort: If specified, evaluated when a column is sorted with browse
and column objects as parameters. When oBrw:SetOrderNatural is executed, this
codeblock is evaluated with browse object only.
* Function SelectClipRgn() in imgtxtio.prg enhanced. If 3rd parameter 'mode' is
specified, works like ExtSelectClipRgn()
* Function CreateRectRgn( nLeft, nTop, nBottom, nRight ) --> hRgn
can now use array also eg CreateRectRgn( { nTop, nLeft, nBottom, nRight } )
source\winapi\regions.c
* RPreview.prg: Nonmodal preview in MDI environment is shown in a new MDICHILD
window, which is maximzed. When the preview is closed, the existing windows are
left maximized. This is fixed. Now the other windows are restored to their
previous state.
http://forums.fivetechsupport.com/viewt ... 60#p233860
* New function JpgDim( cFileOrcBuffer ) --> { nWidth, nHeight }
Returns the dimensions without loading the image.
source\function\imgtxtio.prg
* New ADO functions: (source\function\adofuncs.prg)
FW_AdoCurrentDB( oCn ) --> Current selected database/catalog
FW_AdoSelectDB( oCn, cNewDB ) --> lSuccess
* Enhanced ADO function FW_AdoTables( oCn, [cDB] ) --> aTables
Now a database/catalog name other than the current database can be
specified in the second parameter to get tables in the other databae.
* Fix: Ado function FW_AdoCatalogs(). Fixed runtime error in the case of
ADO connections that do not support catalogs/databases, eg. Dbase, Access
* Datarow class: Default edit dialog now displays button to show/hide password
in case of password gets.
* New sample: xbxlsel.prg: how to export selected rows to excel.
* HaruPDF:
FWH1909 made it possible to generate native pdf documents using harupdf.
What all is required is to use commands
PRINT TO oPrn FILE "name.pdf"
REPORT oRep PREVIEW TO FILE ("name.pdf" )
and continue programming like normal print/report program. This generates
output to pdf instead to preview/printer.
But to save preview to harupdf, some extra programming was required. This
made it difficult in case of already existing reports.
From FWH 2007, no extra programming is required. If TPrinter():lUseHaruPDF is
set to .t., any preview of any existing print/report saves pdf in native
format using harupdf.
Please see changes in samples\pdfharu1.prg, pdfharu2.prg, print01.prg and print02.prg
Notes:
a) Link harupdf using "REQUEST FWHARU" in any module of the project
b) Any output using TPrinter's hDC/hDCOut is not saved to pdf.
c) HaruPDF does not support Unicode text. Programs using Unicode text should
not set TPrinter():lUseHaruPdf to .t.
* EasyReport and HaruPdf:
When TPrinter():lUseHaruPDF is set to .t., preview of easyreport also saves
pdf using harupdf.
* Fix: TArrayData class (tarrdata.prg)
- Memofields are not working. Fixed.
http://forums.fivetechsupport.com/viewt ... 16#p234116
- Constructor fromQry() not working unless the sql starts with SELECT.
Fixed.
* TPrinter and FWHPdf classes: cText in method SayText can be a codeblock.
See samples\pdfharu1.prg
* TMsgItem: Now prompt can be a codeblock also.
* FWMariaRowSet:
- Method Rowset is not accepting SQL statements starting with
parenthesis. Fixed.
- Method SetOrder( corder, u, lDescend ): lDescend is defaulting to previous
setting. Fixed. Now defaults to .f.
=========
* New Samples:
xbrbar.prg: shows inbuilt buttonbar in xbrowse.
* XBROWSE:
- When a column header is clicked, the header is painted in the topbar area
fixed.
http://forums.fivetechsupport.com/viewt ... 85#p233785
- oCol:cHeader can be assigned with a codeblock also.
- When oBrw:oRightCol:lFullHeight is .t., clicking anywhere on the righ col
was moving the row pointer. Fixed.
- sqlrdd: When an application program closes the dbf before the xbrowse is
destroyed, unexpected errors might result. An example is here:
http://forums.fivetechsupport.com/viewt ... =6&t=39196
A small workaround is adopted to avoid runtime error in such cases.
- New method SetOrderNatural(): Sets sort order of the database to natural order
and refreshes the browse.
- New methods: ShowRecSelRecNo() and ShowRecSelKeyNo(): Displays RecNo/KeyNo on
the recordselector and total records in the footer, if footer is enabled.
- New DATA: bOnSort: If specified, evaluated when a column is sorted with browse
and column objects as parameters. When oBrw:SetOrderNatural is executed, this
codeblock is evaluated with browse object only.
* Function SelectClipRgn() in imgtxtio.prg enhanced. If 3rd parameter 'mode' is
specified, works like ExtSelectClipRgn()
* Function CreateRectRgn( nLeft, nTop, nBottom, nRight ) --> hRgn
can now use array also eg CreateRectRgn( { nTop, nLeft, nBottom, nRight } )
source\winapi\regions.c
* RPreview.prg: Nonmodal preview in MDI environment is shown in a new MDICHILD
window, which is maximzed. When the preview is closed, the existing windows are
left maximized. This is fixed. Now the other windows are restored to their
previous state.
http://forums.fivetechsupport.com/viewt ... 60#p233860
* New function JpgDim( cFileOrcBuffer ) --> { nWidth, nHeight }
Returns the dimensions without loading the image.
source\function\imgtxtio.prg
* New ADO functions: (source\function\adofuncs.prg)
FW_AdoCurrentDB( oCn ) --> Current selected database/catalog
FW_AdoSelectDB( oCn, cNewDB ) --> lSuccess
* Enhanced ADO function FW_AdoTables( oCn, [cDB] ) --> aTables
Now a database/catalog name other than the current database can be
specified in the second parameter to get tables in the other databae.
* Fix: Ado function FW_AdoCatalogs(). Fixed runtime error in the case of
ADO connections that do not support catalogs/databases, eg. Dbase, Access
* Datarow class: Default edit dialog now displays button to show/hide password
in case of password gets.
* New sample: xbxlsel.prg: how to export selected rows to excel.
* HaruPDF:
FWH1909 made it possible to generate native pdf documents using harupdf.
What all is required is to use commands
PRINT TO oPrn FILE "name.pdf"
REPORT oRep PREVIEW TO FILE ("name.pdf" )
and continue programming like normal print/report program. This generates
output to pdf instead to preview/printer.
But to save preview to harupdf, some extra programming was required. This
made it difficult in case of already existing reports.
From FWH 2007, no extra programming is required. If TPrinter():lUseHaruPDF is
set to .t., any preview of any existing print/report saves pdf in native
format using harupdf.
Please see changes in samples\pdfharu1.prg, pdfharu2.prg, print01.prg and print02.prg
Notes:
a) Link harupdf using "REQUEST FWHARU" in any module of the project
b) Any output using TPrinter's hDC/hDCOut is not saved to pdf.
c) HaruPDF does not support Unicode text. Programs using Unicode text should
not set TPrinter():lUseHaruPdf to .t.
* EasyReport and HaruPdf:
When TPrinter():lUseHaruPDF is set to .t., preview of easyreport also saves
pdf using harupdf.
* Fix: TArrayData class (tarrdata.prg)
- Memofields are not working. Fixed.
http://forums.fivetechsupport.com/viewt ... 16#p234116
- Constructor fromQry() not working unless the sql starts with SELECT.
Fixed.
* TPrinter and FWHPdf classes: cText in method SayText can be a codeblock.
See samples\pdfharu1.prg
* TMsgItem: Now prompt can be a codeblock also.
* FWMariaRowSet:
- Method Rowset is not accepting SQL statements starting with
parenthesis. Fixed.
- Method SetOrder( corder, u, lDescend ): lDescend is defaulting to previous
setting. Fixed. Now defaults to .f.