Page 1 of 2

New FTDN March/Marzo 2015 (FWH 15.03)

Posted: Fri Mar 20, 2015 10:22 am
by Antonio Linares
March 2015
==========

* New: function SetMGetColorFocus( nClrFocus ) same as SetGetColorFocus() but for GETs
multilines.

* Enhancement: Class TMultiGet support for color change on focus gain/loose.

* New: function SetCbxColorFocus( nClrFocus ) same as SetGetColorFocus() but for
ComboBoxes. We tried to take these functions into Class TControl may there are
many side effects for other controls.

* Enhancement: Class TComboBox support for color change on focus gain/loose.

* XBrowser: Browse size now fits exactly the existing rows.

* XBrowse:
- Improvement: Improved painting of buttons when oCol:lBtnTransparent := .t.
- Fix: Pressing Ctrl-C or Ctrl-R when there is no vertical scroll bar
raises a runtime error because of unnecessary code handling K_PGUP and
K_PGDN in method KeyChar(). This code is removed.
- New Data lTabLikeExcel (default .f.). When set to .t. TAB key moves cursor
to right as in Excel
- New: Pivot Table Support:
XBrowse automatically recognizes pivot-table array generated by
FW_AdoPivotArray(...) function and properly displays pivot table.
Syntax:
@ r,c XBROWSE <clauses> DATASOURCE FW_AdoPivotArray(...) <other clauses>
oBrw:SetArray( FW_AdoPivotArray(...) )
oBrw:SetArray( aData, , , cPivotHead )
See fwh\samples\pivotdbf.prg
New Method: oBrw:InvertPivot() Inverts Pivot Browse
-Datatypes +,= are recognized as readonly

* BtnBmp:
- Micro-alignment of prompts: When Layout is TOP,BOTTOM,LEFT,RIGHT,CENTER
the prompts are aligned Bottom-Center, Top-Center, Right Justified, Left
justified and centered vertically and horizontally.
It is now possible to adjust the horizontal alignment within the prompt area.
Padding space(s) on left right justifies, padding on right left justifies and
padding on both sides centers horizontally within the area meant for the
prompt.

- With the combination of aBmpRect this offers greater possibilities to
manage sizing and placement of bitmaps and prompts in the button area.

- Now supports vertical fonts, though they are more meaningful in LEFT and
RIGHT layouts.

- If nClrText is a codeblock, it is now evaluated with two parameters,
oBtn:lMOver and oBtn object. This enables changing colors on different
states of the button.

- New FLAT clause in the command: This creates the button similar to
flatbtn.

- When defining the button if width or height or both or ommitted,
they are auto-calculated which may suit many occassions, mostly
for LEFT and RIGHT layouts.

* Fix: When FW_SetTruePixel is set to .T., some dialogs in fwh library
are not displayed properly. Fixed: in all prgs of the library

* Fix: Clause TRUEPIXEL of DEFINE DIALOG command is not setting Data
lTruePixel to .T.. The command translate is fixed in dialog.ch

* TruePixel behavior: When a dialog is created with TRUEPIXEL clause,
the global setting of lTruePixel was set to .T., applying the
setting to all dialogs in the project. This makes it impossible
to selectively set the feature to newly created dialogs in an
existing project. Now TRUEPIXEL clause affects only the dialog
created with the clause and does not disturb other dialogs.
However if FW_SetTruePixel( .t. ) is set to .T., then the
setting applies to all dialogs created subsequently, irrespective
of TRUEPIXEL clause till FW_SetTruePixel() is turned off.
Now it is possible to use truepixel feature for new dialogs in
an existing project without disturbing the existing code.

* New: Pivot Tables (Crosstab).
New functions in source\function\adofuncs.prg:
FW_AdoPivotRS( oCn, cTable, cRowFld, cColFld, cValFld, [cAggrFunc] ) --> Ado RecordSet
FW_AdoPivotArray( oCn, cTable, cRowFld, cColFld, cValFld, [cAggrFunc] ) --> Array
with first row as headers
Note: Field names containing reserved words are properly escaped.
cRowFld and cColFld can contain simple expressions valid for the
database. Eg: "YEAR(SALEDATE) AS YEAR".

* Enhancement: Implemented required FWStrings() use in printer.prg

* Fix: bitmap.prg: The new hbitmap object created when resizign is
necessary is not being destroyed. Fixed now
http://forums.fivetechsupport.com/viewt ... =3&t=30352

* Fix: Class TGet Methods CreateButton(), GotFocus() and LostFocus() have
been modified so a GET button (clause ACTION) with a WHEN .F. get the focus:

http://forums.fivetechsupport.com/viewt ... 59#p174059

Many thanks to Alexandre Pereira!

* Fix: Class TUrlLink Method Destroy was missing so it was leaking
bitmaps handles. Now it is ok. Thanks to Daniel!

Re: New FTDN March/Marzo 2015 (FWH 15.03)

Posted: Mon Mar 23, 2015 4:06 pm
by russimicro
Fix: Pressing Ctrl-C or Ctrl-R when there is no vertical scroll bar
raises a runtime error because of unnecessary code handling K_PGUP and
K_PGDN in method KeyChar(). This code is removed.

Antonio... tengo ese error en mi versión 15.01... como puedo corregir el xbrowse

Jonsson Russi

Re: New FTDN March/Marzo 2015 (FWH 15.03)

Posted: Mon Mar 23, 2015 4:25 pm
by AntoninoP
russimicro wrote:Fix: Pressing Ctrl-C or Ctrl-R when there is no vertical scroll bar
raises a runtime error because of unnecessary code handling K_PGUP and
K_PGDN in method KeyChar(). This code is removed.

Antonio... tengo ese error en mi versión 15.01... como puedo corregir el xbrowse

Jonsson Russi
http://forums.fivetechsupport.com/viewt ... =3&t=30284

Re: New FTDN March/Marzo 2015 (FWH 15.03)

Posted: Fri Apr 03, 2015 3:13 am
by luisduque
Error con fivewin 15.03 MSVC++ con la 15.02 no da esas advertencias

simplemente al querer crear el wecam.exe que esta en fwh\samples

con buildh32

Re: New FTDN March/Marzo 2015 (FWH 15.03)

Posted: Fri Apr 03, 2015 6:25 am
by Antonio Linares
Luis,

Imagino que lo estás haciendo asi:

buildh32 webcam

Puedes copiar aqui los mensajes que te aparecen ? gracias

Re: New FTDN March/Marzo 2015 (FWH 15.03)

Posted: Fri Apr 03, 2015 7:24 am
by luisduque
C:\fwh\samples>buildh32 webcam

┌────────────────────────────────────────────────────────────────────────────┐
│ FiveWin for Harbour 15.03 (MSVC++) Mar. 2015 Harbour development power │▄
│ (c) FiveTech, 1993-2015 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8 │█
└────────────────────────────────────────────────────────────────────────────┘█
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Compiling...
Harbour 3.2.0dev (r1412151448)
Copyright (c) 1999-2014, http://harbour-project.org/
Compiling 'webcam.prg' and generating preprocessed output to 'webcam.ppo'...
Lines 4405, Functions/Procedures 2
Generating C source output to 'webcam.c'... Done.
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

webcam.c
Creating library webcam.lib and object webcam.exp
FiveHC32.lib(SCINTILC.obj) : warning LNK4217: locally defined symbol _fclose imported in function _HB_FUN_SCI_OPENFILE
FiveHC32.lib(SCINTILC.obj) : warning LNK4217: locally defined symbol _fopen imported in function _HB_FUN_SCI_OPENFILE
FiveHC32.lib(SCINTILC.obj) : warning LNK4217: locally defined symbol _fread imported in function _HB_FUN_SCI_OPENFILE
FiveHC32.lib(WEBCAM.obj) : error LNK2019: unresolved external symbol _capCreateCaptureWindowA@32 referenced in function _HB_FUN_WEBCAM_CAPTUREWINDOW
FiveHC32.lib(WEBCAM.obj) : error LNK2019: unresolved external symbol _capGetDriverDescriptionA@20 referenced in function _HB_FUN_WEBCAM_GETDRIVERDESCRIPTION
webcam.exe : fatal error LNK1120: 2 unresolved externals
* Linking errors *

Re: New FTDN March/Marzo 2015 (FWH 15.03)

Posted: Fri Apr 03, 2015 11:10 am
by Antonio Linares
Luis,

ok, solucionado.

te envio por email las librerias corregidas.

Hay que enlazar tambien la libreria vfw32.lib de Microsoft. He modificado buildh32.bat añadiendo esta línea:

echo vfw32.lib >> msvc.tmp

muchas gracias :-)

Re: New FTDN March/Marzo 2015 (FWH 15.03)

Posted: Fri Apr 03, 2015 11:57 am
by luisduque
Gracias Maestro Antonio Solucionado

Re: New FTDN March/Marzo 2015 (FWH 15.03)

Posted: Sat Apr 04, 2015 5:05 am
by luisduque
Maestro Antonio

fwh 15.03 MSVC 2012 y harbour 3.2
en 32 bits trabaja bien
harbour_3.2_32bits_MSVC2013_20142906

en 64 bits
harbour_3.2_64bits_MSVC2013_20142906

al probar testimg y tesimg2
con fwh64

build64 tesimg
crea el ejecutable bien, pero al darle seleccionar imagen deja de funcionar testimg.exe

build64 tesimg2
cambio la ubicación de la imagen por una .png y sale que no puede cargar FreeImage64.dll
si la dejo la imagen que trae por defecto no sale el error al cargar la dll


Gracias de Antemano

Re: New FTDN March/Marzo 2015 (FWH 15.03)

Posted: Sat Apr 04, 2015 9:14 am
by Antonio Linares
Luis,

Solucionado, te envio por email las librerías corregidas. Muchas gracias :-)

He modificado Testimg2.prg de esta manera:

Code: Select all

#include "FiveWin.ch"

function Main()

   local oDlg, oImg 
   
   DEFINE IMAGE oImg FILENAME "..\bitmaps\olga1.jpg"

   DEFINE DIALOG oDlg TITLE "Image background"

   ACTIVATE DIALOG oDlg CENTERED ;
      ON INIT ( oDlg:SetSize( oImg:nWidth, oImg:nHeight ), oDlg:Center() ) ;    
      ON PAINT PalBmpDraw( hDC, 0, 0, oImg:hBitmap )
      
   oImg:End()   

return nil

Re: New FTDN March/Marzo 2015 (FWH 15.03)

Posted: Sat Apr 04, 2015 3:34 pm
by luisduque
Gracias Maestro Antonio Solucionado

Re: New FTDN March/Marzo 2015 (FWH 15.03)

Posted: Fri May 01, 2015 1:38 am
by TOTOVIOTTI
Antonio,
estoy probando el buildh32.bat y también me hace el defecto, serías tan amable de
pasarme la corrección también?
Muchas gracias!
Roberto

Re: New FTDN March/Marzo 2015 (FWH 15.03)

Posted: Fri May 01, 2015 3:34 pm
by Antonio Linares
Roberto,

Enviadas! :-)

Re: New FTDN March/Marzo 2015 (FWH 15.03)

Posted: Sun May 03, 2015 4:53 pm
by Antonio Linares
Published new / Publicado nuevo build 2 de FWH 15.04

For Visual Studio users, FWH 15.04 build 2 uses the new Visual Studio Community Edition
Para los usuarios de Visual Studio, FWH 15.04 build 2 usa el nuevo Visual Studio Community Edition

Re: New FTDN March/Marzo 2015 (FWH 15.03)

Posted: Mon May 04, 2015 5:33 am
by cnavarro
Antonio, la version de Harbour de Diciembre para VS se puede utilizar con VS2015 RC Community?