New FTDN March/Marzo 2015 (FWH 15.03)

New FTDN March/Marzo 2015 (FWH 15.03)

Postby Antonio Linares » Fri Mar 20, 2015 10:22 am

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
viewtopic.php?f=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:

viewtopic.php?p=174059#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!
regards, saludos

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

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

Postby russimicro » Mon Mar 23, 2015 4:06 pm

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
russimicro
 
Posts: 217
Joined: Sun Jan 31, 2010 3:30 pm
Location: Bucaramanga - Colombia

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

Postby AntoninoP » Mon Mar 23, 2015 4:25 pm

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

viewtopic.php?f=3&t=30284
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy

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

Postby luisduque » Fri Apr 03, 2015 3:13 am

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
Fivewin 16.11
Harbour 3.2.0
Visual Studio 2015 community
MariaDb/MySql

Ing. MSc. Luis Duque
http://www.accasoft.net
luisduque
 
Posts: 133
Joined: Mon May 12, 2008 4:13 pm
Location: Venezuela

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

Postby Antonio Linares » Fri Apr 03, 2015 6:25 am

Luis,

Imagino que lo estás haciendo asi:

buildh32 webcam

Puedes copiar aqui los mensajes que te aparecen ? gracias
regards, saludos

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

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

Postby luisduque » Fri Apr 03, 2015 7:24 am

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 *
Fivewin 16.11
Harbour 3.2.0
Visual Studio 2015 community
MariaDb/MySql

Ing. MSc. Luis Duque
http://www.accasoft.net
luisduque
 
Posts: 133
Joined: Mon May 12, 2008 4:13 pm
Location: Venezuela

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

Postby Antonio Linares » Fri Apr 03, 2015 11:10 am

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 :-)
regards, saludos

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

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

Postby luisduque » Fri Apr 03, 2015 11:57 am

Gracias Maestro Antonio Solucionado
Fivewin 16.11
Harbour 3.2.0
Visual Studio 2015 community
MariaDb/MySql

Ing. MSc. Luis Duque
http://www.accasoft.net
luisduque
 
Posts: 133
Joined: Mon May 12, 2008 4:13 pm
Location: Venezuela

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

Postby luisduque » Sat Apr 04, 2015 5:05 am

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
Fivewin 16.11
Harbour 3.2.0
Visual Studio 2015 community
MariaDb/MySql

Ing. MSc. Luis Duque
http://www.accasoft.net
luisduque
 
Posts: 133
Joined: Mon May 12, 2008 4:13 pm
Location: Venezuela

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

Postby Antonio Linares » Sat Apr 04, 2015 9:14 am

Luis,

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

He modificado Testimg2.prg de esta manera:
Code: Select all  Expand view
#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
regards, saludos

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

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

Postby luisduque » Sat Apr 04, 2015 3:34 pm

Gracias Maestro Antonio Solucionado
Fivewin 16.11
Harbour 3.2.0
Visual Studio 2015 community
MariaDb/MySql

Ing. MSc. Luis Duque
http://www.accasoft.net
luisduque
 
Posts: 133
Joined: Mon May 12, 2008 4:13 pm
Location: Venezuela

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

Postby TOTOVIOTTI » Fri May 01, 2015 1:38 am

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
Univ@c I.S.I.
Desarrolladores de Software
http://www.elcolegioencasa.edu.ar
User avatar
TOTOVIOTTI
 
Posts: 387
Joined: Fri Feb 05, 2010 11:30 am
Location: San Francisco - Córdoba - Argentina

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

Postby Antonio Linares » Fri May 01, 2015 3:34 pm

Roberto,

Enviadas! :-)
regards, saludos

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

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

Postby Antonio Linares » Sun May 03, 2015 4:53 pm

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
regards, saludos

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

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

Postby cnavarro » Mon May 04, 2015 5:33 am

Antonio, la version de Harbour de Diciembre para VS se puede utilizar con VS2015 RC Community?
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: 6498
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Next

Return to WhatsNew / Novedades

Who is online

Users browsing this forum: No registered users and 4 guests