FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index WhatsNew / Novedades New FTDN December/Diciembre 2016 (FWH 16.12)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
New FTDN December/Diciembre 2016 (FWH 16.12)
Posted: Thu Dec 22, 2016 09:24 AM

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.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1303
Joined: Tue Jul 21, 2009 08:12 AM
Re: New FTDN December/Diciembre 2016 (FWH 16.12)
Posted: Thu Dec 22, 2016 05:53 PM

Hello,

FWMARIADB does support a build in server?.

Thank you!.

Muchas gracias. Many thanks.



Un saludo, Best regards,



Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]



Implementando MSVC 2010, FWH64 y ADO.



Abandonando uso xHarbour y SQLRDD.
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: New FTDN December/Diciembre 2016 (FWH 16.12)
Posted: Wed Jan 04, 2017 05:29 PM
Cambios en window.prg no reportado:

FWH16.10

Code (fw): Select all Collapse
   // 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 (fw): Select all Collapse
   // 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 )


João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: New FTDN December/Diciembre 2016 (FWH 16.12)
Posted: Thu Jan 05, 2017 12:56 PM

In TGraph there are still a couple of calls to Lfn2Sfn(), that is definitely an obsolete function. Can you remove it?

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FTDN December/Diciembre 2016 (FWH 16.12)
Posted: Fri Jan 06, 2017 09:09 PM

Enrico,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: New FTDN December/Diciembre 2016 (FWH 16.12)
Posted: Fri Jan 06, 2017 10:09 PM

You can just delete it. We don't need of short file names any longer.

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FTDN December/Diciembre 2016 (FWH 16.12)
Posted: Sat Jan 07, 2017 08:33 AM

Implemented in next FWH version, thanks

When and why they stopped working ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: New FTDN December/Diciembre 2016 (FWH 16.12)
Posted: Sat Jan 07, 2017 10:21 AM
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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FTDN December/Diciembre 2016 (FWH 16.12)
Posted: Sat Jan 07, 2017 10:53 AM

But FWH apps may run on older Windows versions

Are we breaking backwards compatibility with this change ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: New FTDN December/Diciembre 2016 (FWH 16.12)
Posted: Sat Jan 07, 2017 10:57 AM
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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: New FTDN December/Diciembre 2016 (FWH 16.12)
Posted: Sun Jan 08, 2017 02:44 AM
karinha wrote:Cambios en window.prg no reportado:

FWH16.10

Code (fw): Select all Collapse
   // 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 (fw): Select all Collapse
   // 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.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion