Page 1 of 1

New FTDN December/Diciembre 2016 (FWH 16.12)

PostPosted: Thu Dec 22, 2016 9:24 am
by Antonio Linares
December 2016
=============

* Enhancement: function MsgDate() increased used font:

viewtopic.php?p=196570#p196570

* Enhancement: samples\design.prg now support bitmaps controls too:

viewtopic.php?p=196228#p196228

* Enhancement: Class TBitmap Method cGenPRG() was missing.

* Fix: Classes TSay and TGet Method cGenPrg() were not using the
supplied parameter lDlgUnits. Now it is ok:

viewtopic.php?p=196242#p196242

* Enhancement: datarow.prg: Default dialog displays prompts fully
when the prompts contain CRLF.

* Enhancements: TPanel.prg: Now resizeable image brushes and
gradient brushes also work on tpanel.

* Fix: XImage: When ximage is created in another control or child
window/dialog, dragging ximage is moving the parent also. Fixed

* New: TFont class new METHOD Clone(). If a font is cloned, the
new cloned font has to be release separately.

* XBROWSE:
- Enhancement: Automatic Recalculation of Totals:
(a) When a column has an aggregate footer type (eg. AGGR_SUM)
and edited inline, that column's totals are recalculated
automatically. This recalculation is not compatible with programmer's
direct call to MakeTotals(). Now the incompatibility is removed.
(b) In the above case, only the changed column's totals were
beging recalculated. Now all depedent columns' totals are also
recomputed.

- New: DATA lSeekBar (default .f.)
DATA oFilterCol (default nil)
When lSeekBar is set to .T. and oBrw:oSeek is nil, oBrw:cSeek
is displayed in the header bar in the column being searched in
incremental seek mode. In case of incremental filter, the
programmer need to specify oFilterCol also in addition to
cFilterFld if cSeek is to be shown in the bar.

* FWMARIADB:

- Autoreconnection in case of lost connections:
If connection is lost during execution of a program
either due to timeout or network disconnection,
next sql execution automatically tries to reconnect
and proceed with the execution normally.
This new feature is under testing and further
improvement.

- Server variables can now be accessed and modified
like DATAs of connection object.
Examples:
? oCn:max_allowed_packet
if oCn:wait_timeout < 3600
oCn:wait_timeout := 3600
endif

- MySql native functions can be executed like METHODs
of connection object, using Harbour variables as
parameters.
? oCn:DATEDIFF( Date(), dOldDate )
? oCn:UTC_TIMESTAMP()

- Simpler way to open a table as rowset
oRs := oCn:customer
XBROWSER oRs

- METHOD HideServer(). If called, the details of server
name/address, user name are hidden from the application
program.

- New function: FW_DemoDB(). Connects to a demo MySql
server in the cloud for testing samples, when user does
not have access to his own server.

- New DATAs IsMySql and IsMariaDB
Whether the connected server is MySql server or MariaDB
server.
- New DATA nVersion: Server version in Numeric value
Eg Usage:

If oCn:IsMariaDB or oCn:nVersion >= 5.63
// do something
endif

- New: DATA bTrigger in Rowset: If assigned, the codeblock
is evaluated with the rowset object and the field name in
lowercase as parameters everytime any field is modified.
This can be used for automatic internal calculations.

- Fix: Incremental filter in xbrowse is not working when
oBrw:cFilterFld is assigned a value. Fixed.

Re: New FTDN December/Diciembre 2016 (FWH 16.12)

PostPosted: Thu Dec 22, 2016 5:53 pm
by lucasdebeltran
Hello,

FWMARIADB does support a build in server?.

Thank you!.

Re: New FTDN December/Diciembre 2016 (FWH 16.12)

PostPosted: Wed Jan 04, 2017 5:29 pm
by karinha
Cambios en window.prg no reportado:

FWH16.10

Code: Select all  Expand view

   // next 2 methods are still under development - FWHX1610
   METHOD SayText( cText, aRect, cAlign, oFont, aColor, nAddlStyle ) ;
         INLINE WndSayText( Self, cText, aRect, cAlign, oFont, aColor, nAddlStyle )
   


FWH16.12

Code: Select all  Expand view

   // nuevo/novo/new - Modificado em: 04/01/2017  - Joao - FWHX1612
   METHOD SayText( cText, aRect, cAlign, oFont, nClrText, nClrBack, lBorder, nAddlStyle ) ;
         INLINE FW_SayText( Self, cText, aRect, cAlign, oFont, nClrText, nClrBack, lBorder, nAddlStyle )

   



Re: New FTDN December/Diciembre 2016 (FWH 16.12)

PostPosted: Thu Jan 05, 2017 12:56 pm
by Enrico Maria Giordano
In TGraph there are still a couple of calls to Lfn2Sfn(), that is definitely an obsolete function. Can you remove it?

EMG

Re: New FTDN December/Diciembre 2016 (FWH 16.12)

PostPosted: Fri Jan 06, 2017 9:09 pm
by Antonio Linares
Enrico,

What to use as a replacement for Lfn2Sfn() ? thanks

Re: New FTDN December/Diciembre 2016 (FWH 16.12)

PostPosted: Fri Jan 06, 2017 10:09 pm
by Enrico Maria Giordano
You can just delete it. We don't need of short file names any longer.

EMG

Re: New FTDN December/Diciembre 2016 (FWH 16.12)

PostPosted: Sat Jan 07, 2017 8:33 am
by Antonio Linares
Implemented in next FWH version, thanks

When and why they stopped working ?

Re: New FTDN December/Diciembre 2016 (FWH 16.12)

PostPosted: Sat Jan 07, 2017 10:21 am
by Enrico Maria Giordano
Antonio Linares wrote:Implemented in next FWH version, thanks

When and why they stopped working ?


No, it didn't stop working, it's just obsolete. Or someone still using a Windows version without long file names support? Don't think so.

EMG

Re: New FTDN December/Diciembre 2016 (FWH 16.12)

PostPosted: Sat Jan 07, 2017 10:53 am
by Antonio Linares
But FWH apps may run on older Windows versions

Are we breaking backwards compatibility with this change ?

Re: New FTDN December/Diciembre 2016 (FWH 16.12)

PostPosted: Sat Jan 07, 2017 10:57 am
by Enrico Maria Giordano
Antonio Linares wrote:But FWH apps may run on older Windows versions

Are we breaking backwards compatibility with this change ?


From W95 we have long filenames support, if I remember correctly.

Anyway, keep in mind that the function LFN2SFN() is only used in TGraph. So yes, you safely remove it.

EMG

Re: New FTDN December/Diciembre 2016 (FWH 16.12)

PostPosted: Sun Jan 08, 2017 2:44 am
by nageswaragunupudi
karinha wrote:Cambios en window.prg no reportado:

FWH16.10

Code: Select all  Expand view

   // next 2 methods are still under development - FWHX1610
   METHOD SayText( cText, aRect, cAlign, oFont, aColor, nAddlStyle ) ;
         INLINE WndSayText( Self, cText, aRect, cAlign, oFont, aColor, nAddlStyle )
   


FWH16.12

Code: Select all  Expand view

   // nuevo/novo/new - Modificado em: 04/01/2017  - Joao - FWHX1612
   METHOD SayText( cText, aRect, cAlign, oFont, nClrText, nClrBack, lBorder, nAddlStyle ) ;
         INLINE FW_SayText( Self, cText, aRect, cAlign, oFont, nClrText, nClrBack, lBorder, nAddlStyle )

   



Whatsnew.txt of FWH 16.11 describes usage of the method and function.