New FTDN February 2016 (FWH 16.02)

New FTDN February 2016 (FWH 16.02)

Postby Antonio Linares » Tue Mar 01, 2016 9:15 am

February 2016
=========

* Fix: Say.prg: Say with picture clause created on dialog is not
displayed correctly, since FWH15.09. Fixed.
Similary Say with picture clause is not displayed correctly if
oSay:VarPut() is used. Fixed.

* Enhancement: function cFileSubDir() now support UNC paths and
does not return the drive in Windows:

viewtopic.php?p=186442#p186442

* New: function ISDUPLEXPRINTER() --> lYesNo checks if the current
selected printer supports DUPLEX:
viewtopic.php?p=186749#p186749

* Fix: TMenuItem: height of font bold in menuitem
* Fix: TMenuItem: width in Win XP, for modification in function cWinVersion
* New: TMenu.prg: Add BREAK in menuitems separators with prompt
* New: clausule INDEX in TMenuItem for bitmaps with listimages ( MENU.CH )
[ INDEX <nIndex> ]
* New: clausule ROUND in TMenu for rounded items selected ( MENU.CH )
[ ROUND <nRound> ] // Only for items menubar

* New functions in GDIPLUS.CPP ( Thanks to Manuel Alvarez )
- GDIPLUSIMAGEPIXGETRED
- GDIPLUSIMAGEPIXGETGREEN
- GDIPLUSIMAGEPIXGETBLUE
- GDIPLUSIMAGEPIXGETALPHA
- GDIPLUSIMAGEMATRIXCUSTOM
- GDIPLUSPIXELCOLORTOALPHA
- GDIPLUSIMAGECROP
- GDIPLUSIMAGEROTATEANGLE

* New methods and functions in TGDIPLUS.PRG ( Thanks to Manuel Alvarez )
- METHOD GetRedPix( nX, nY )
- METHOD GetGreenPix( nX, nY )
- METHOD GetBluePix( nX, nY )
- METHOD ConverColortoColor( nAlphaI, nRedI, nGreenI, nBlueI, nAlphaF, nRedF, nGreenF, nBlueF )
- METHOD GetAlphaPix( nX, nY ) INLINE GdiPlusImagePixGetAlpha ( ::hbmp, nX, nY )
- METHOD SetRecolorColorMatrix( nRed, nGreen, nBlue )
- METHOD SetColorMatrix( aMatrix )
- METHOD IsAlphaChannel()
- METHOD GetRecolorColorMatrix( nRed, nGreen, nBlue )
- METHOD SetPixeltoAlpha( x, y )
- METHOD CreateFromRes( Hbitmap, hPalette )
- METHOD ConverToGray()
- METHOD ImageRotate( nDegrees, lAdjust )
- Function GetImgFromList( uResBmp, nParts, nOrd, nW, nH, nPartsV, nOrdV )

* Enhancement: METHOD Save ( TGDIPLUS.PRG )
and functions GDIPLUSIMAGESAVE, GDIPLUSIMAGESAVEQUALITY ( GDIPLUS.CPP )
RETURN TRUE / FALSE if the action was successful

* Fix bugs: TGDIPLUS.PRG:
viewtopic.php?f=3&t=31989#p187086

* New: DBCOMBO - Implemented clausule [ HEIGHTGET <nHGet> ], height items

* Enhancement: TTOOLBAR - Styles 2007, 2010, 2013 and 2015 and in Fivewin.ch
#xcommand DEFINE TOOLBAR <oTlb> ;
[ <wnd: OF, WINDOW, DIALOG> <oWnd> ] ;
[ SIZE <nWidth>, <nHeight> ] ;
[ IMAGELIST <oImg> ] ;
[ <balloon: BALLOON > ] ;
[ BRUSH <oBrush> ];
[ <l2007: 2007, _2007> ] ;
[ <l2010: 2010, _2010> ] ;
[ <l2013: 2013, _2013> ] ;
[ <l2015: 2015, _2015> ] ;
=> ;
<oTlb> := TToolBar():New( <oWnd>, [<nWidth>], [<nHeight>], [<oImg>],;
[<.balloon.>],, <oBrush>, <.l2007.>, ;
<.l2010.>, <.l2013.>, <.l2015.> )

* XBROWSE:
(1) Backward Compatibility issues in 15.12 and 16.01 fixed now:
(a) Automatic calculation of column widths in case of browses created other than with COLUMNS clause.
Fixed.
(b) When header containing white spaces could not be accommodated within the column width, trailing
words were not painted. Fixed.
(c) In some cases last character of header was partly painted. Fixed.
(2) Improvements in column width calculations:
Column widths are calculated on the basis of contents of the first row. In some cases, this results
in narrower column width.
(a) EditListTxt: When first row contains a shorter prompt, subsequent rows are not fully covered.
Now the width is calculated to accommodated the largest prompt.
(b) Some formats like dd-mmmm-yyyy. Adequate widths are now provided to accommodate the maximum
possible value.
viewtopic.php?f=3&t=31899

(d) New Method: oBrw:AutoFit( [aCols], [nRowsOrlVisible], [lDataOnly] )
oCol:AutoFit( [nRowsOrlVisible], [lDataOnly] )
Similar to Excel, these methods reset the column widths of the selected column[s] to fit the
trimmed values in all rows (default) or specified number of rows or visible rows (to be called
during runtime only). Mostly useful in case of data sources with variable width fields like
arrays, recordsets, etc. (Not desirable to be used with fixed width fields like DBF partculary
when inline editing is enabled)
(e) Improvement: Fast Edit now works with MarqueeStyle MARQSTYLE_HIGHLROWRC also.
(f) New DATA oBrw:nColorBox Default CLR_BLACK
(nRGBColor or hPen or Codeblock returning same. Evaluated with Col object)
Used to draw oCol:Box() when Marqueestyle is MARQSTYLE_SOLIDCELL or MARQSTYLE_HIGHLROWRC

* Buttnbar and buttons: (bar.prg and btnbmp.prg)
NOBORDER clause used with buttons on buttonbar with 3dlook was being ignored since ver 15.04. Fixed
viewtopic.php?f=6&t=31999

* fwh\samples\ximage01.prg: Revised to display unicode filenames and their image contents when used
with Harbour.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New FTDN February 2016 (FWH 16.02)

Postby cnavarro » Tue Mar 01, 2016 11:09 am

Falta incluir en Fivewin.ch

Code: Select all  Expand view


#xcommand DEFINE TOOLBAR <oTlb> ;
             [ <wnd: OF, WINDOW, DIALOG> <oWnd> ] ;
             [ SIZE <nWidth>, <nHeight> ] ;
             [ IMAGELIST <oImg> ] ;
             [ <balloon: BALLOON > ] ;
             [ BRUSH <oBrush> ];
             [ <l2007: 2007, _2007> ] ;
             [ <l2010: 2010, _2010> ] ;
             [ <l2013: 2013, _2013> ] ;
             [ <l2015: 2015, _2015> ] ;
       => ;
          <oTlb> := TToolBar():New( <oWnd>, [<nWidth>], [<nHeight>], [<oImg>],;
                                   [<.balloon.>],, <oBrush>, <.l2007.>, ;
                                   <.l2010.>, <.l2013.>, <.l2015.> )
 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6548
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: New FTDN February 2016 (FWH 16.02)

Postby cnavarro » Thu Mar 03, 2016 1:36 pm

Bug in gdiplus.cpp

Code: Select all  Expand view


HB_FUNC( GDIPLUSCREATECOLOR )
{
   Color clr = Color( hb_parnl( 1 ), hb_parnl( 2 ), hb_parnl( 3 ), hb_parnl( 3 ) );
....

// with

 Color clr = Color( hb_parnl( 1 ), hb_parnl( 2 ), hb_parnl( 3 ), hb_parnl( 4 ) );

 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6548
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Return to WhatsNew / Novedades

Who is online

Users browsing this forum: No registered users and 5 guests