FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index WhatsNew / Novedades New FTDN October/Octure (FWH 22.10)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
New FTDN October/Octure (FWH 22.10)
Posted: Wed Nov 02, 2022 11:55 AM
July 2022 to October 2022
=========================

* New: function Now() is a new function in FWH. It returns the day, date and time from internet. Please
review samples/horizon.prg for a working example. This function is nor available for xhb commercial
neither for bcc64.

* Enhancement: esreport.prg(3426) Warning W0030 STATIC Function 'FWER_GETREGISTRY'
defined but never used fwpdf.prg(1957) Warning W0030 STATIC Function 'RGB2PDF' defined but
never used both fixed. thanks to Enrico!

* printer.prg

- For printing images saved in memo fields, till
now, it was required to assign the value of the
field to a character variable and then use it
to print the image.
eg.,
cImage := FIELD->IMAGE
@ r,c PRINT TO oPrn IMAGE cImage SIZE w,h INCHES

now we can directly use the field variable.
eg.,
@ r,c PRINT TO oPrn IMAGE FIELD->IMAGE SIZE w,h INCHES

* XBROWSER oAdoRecordset was giving runtime error due to
a bug in the previous version. Fixed now.

* New: Class TNeuralNetwork implements neural networks on FWH. Please review
samples\neural.prg for a working example traininig Xor operations using AI.

* New: New functions dbRollBack() and dbRollBackAll() in
source\function\dbffunc1.prg to help implementation of
transacion tracking with DBF

-See samples\dbf_tts.prg

* Enhancement: samples\buildh32.bat, samples\buildh64.bat and samples\buildx32.bat
have been fixed to properly reset the environment after the call to vcvarsall.bat
We have been looking for this solution for a long time :-)

* Enhancement: samples\fivedit0.prg has been updated to use bcc7 and added a missing library.
You can easily build a project using it. We have not extensitevely tested it so feedback
is welcome.

* xbrowse.prg:
- Since FWH2008, bClrStd, bClrSel, bClrSelFocus are evaluated with two
parameters, viz., browse and column objects. column object is nil
when browse evaluates the blocks.However, if a column using a block using the parameters inline edit raises runtime
error. Fixed.
For previous versions from FWH2008, please assign a value to bClrEdit to avoid this
runtime error.
- While browsing ordered datasources, incremental seek feature is
on by default. At times this creates unexpected and undesired
movement of records.
Eg:
USE CUSTOMER VIA "DBFCDX"
SET ORDER TO TAG LAST
XBROWSER ALIAS() COLUMNS "FIRST","CITY"
Now, if the user presses any alphanumeric key the records keep
changing irrationally.
--
Now, this behaviour can be toggled with the new data
oBrw:lIncrSearch .t./.f. ( default .t. )
- Method ToExcel() Fix:
When browsing an array containing utf8 values in any cell was
resulting in runtime error. Fixed.

* DATA bBmpData is now evaluated with params, CellValue, lSelected,
ColumnObject)

* FW_ReadImage( <wmf_file> ) was giving runtime error, Fixed.

* function ICON_READ( cFileName ) in icons.c requires an existing
file as the first parameter. Now the parameter can be only name
of extension prefixed with "."
Eg: ICON_READ( ".docx" ) --> hIcon.

* BtnBmp.prg: Runtime error when 5th element of :aBmpRect is "circle"
or "ellipse" (introduced in 2004) is now fixed.

* New function fw_memowrit( cFile, cText ). Saves cText without suffixing
eof (chr(26)). Same as HB_MEMOWRIT( cFile, cText ) of Harbour and
MEMOWRIT( cFile, cText, .F. ) of xHarbour.

* New wrapper functions to windows api
GetTopWindow( [hWnd] ) --> hWnd
GetForegroundWindow() --> hWnd
in wndis.c

* Enhancement: Method SaveAsImage() of TWindow.
Inherited by dialogs and all controls.
SaveAsImage( [[@]cImageFile], [aCrop], [nRectType],
[lShow] ) --> lSuccess
Parameters:
[[@]cImageFile] : If empty, user is prompted tp select a file to save.
Can be saved as bmp, jpg/jpeg, png, tif.
[aCrop] : If specified, a crop of the windows rect is saved.
[nRectType]
0. WindowRect including frame. (only for a window/dialog)
1. Default. Client Rect of window
2. Client Area rect (excludes oTop, oLeft, oBottom, oRight
This also means that buttonbar and msgbar are excluded)
[lShow]: If true, the saved file is displayed

* ximage: file save quality improment.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FTDN October/Octure (FWH 22.10)
Posted: Mon Nov 07, 2022 09:38 PM
Julio 2022 a Octubre 2022
=========================

* Nueva: La funci贸n Now() es una nueva funci贸n en FWH. Devuelve el d铆a. fecha y hora de internet.
Por favor, revise el ejemplo samples/horizon.prg para un ejemplo funcional.
Esta funci贸n no est谩 disponible en la versi贸n de xHarbour comercial ni para bcc64.

* Mejora: esreport.prg(3426) Warning W0030 STATIC Funcion 'FWER_GETREGISTRY' definida pero nunca
usada. fwpdf.prg(1957) Warning W0030 STATIC Funcion 'RGB2PDF' definida pero nunca usada.
Ambas advertencias corregidas. Gracias a Enrico !!!

* printer.prg

- Para imprimir las im谩genes guardadas en los campos memo, hasta hasta ahora, era necesario asignar
el valor del campo a una variable de car谩cter y luego utilizarla para imprimir la imagen.
Ejemplo:

cImage := FIELD->IMAGE
@ r,c PRINT TO oPrn IMAGE cImage SIZE w,h INCHES

ahora podemos utilizar directamente la variable de campo.
Ejemplo:

@ r,c PRINT TO oPrn IMAGE FIELD->IMAGE SIZE w,h INCHES

* oAdoRecordset en XBROWSER estaba dando un error en tiempo de ejecuci贸n debido a un error en una
versi贸n previa. Corregido el error.

* Nueva: Clase TNeuralNetwork. Implementa redes neuronales en FWH. Por favor, revise el ejemplo
samples\neural.prg para un ejemplo funcional entrenando operaciones XOR usando Inteligencia
Artificial.

* Nueva: Nuevas funciones dbRollBack() y dbRollBackAll() en source\function\dbffunc1.prg para ayudar
a la implementaci贸n del seguimiento de transaciones con DBF.

- Mire el ejemplo samples\dbf_tts.prg

* Mejora: samples\buildh32.bat, samples\buildh64.bat y samples\buildx32.bat se han corregido para
restablecer correctamente el entorno despu茅s de la llamada a vcvarsall.bat Llevamos mucho tiempo
buscando esta soluci贸n :-)

* Mejora: samples\fivedit0.prg ha sido actualizado para utilizar bcc7 y se ha a帽adido una librer铆a
que faltaba.
Puedes construir f谩cilmente un proyecto con ella. No lo hemos probado extensamente as铆 que los
comentarios son bienvenidos.

* xbrowse.prg:
- Desde FWH2008, bClrStd, bClrSel, bClrSelFocus se eval煤an con dos par谩metros, a saber, los objetos
browse y column. El objeto column es nulo cuando browse eval煤a los bloques.
Sin embargo, si una columna utiliza un bloque con los par谩metros de edici贸n en l铆nea, se produce un
error en tiempo de ejecuci贸n. Corregido.
Para las versiones anteriores de FWH2008, por favor, asigne un valor a bClrEdit para evitar este error
de ejecuci贸n.
- Al navegar por fuentes de datos ordenadas, la funci贸n de b煤squeda incremental est谩 est谩 activada
por defecto. A veces esto crea un movimiento inesperado e indeseado de los registros.
Ejemplo:

USE CUSTOMER VIA "DBFCDX"
SET ORDER TO TAG LAST
XBROWSER ALIAS() COLUMNS "FIRST","CITY"

Ahora, si el usuario pulsa cualquier tecla alfanum茅rica los registros siguen cambiando irracionalmente.
--
Ahora, este comportamiento se puede alternar con la nueva data oBrw:lIncrSearch .T./.F. ( Por defecto .T. )

- M茅todo ToExcel(). Corregido:
Al navegar por una matriz que contiene valores utf8 en cualquier celda se generaba un error en tiempo de
ejecuci贸n. Corregido.

* La DATA bBmpData ahora es evaluada con los par谩metros, CellValue, lSelected y ColumnObject.

* La funci贸n FW_ReadImage( <wmf_file> ) estaba dando errores en tiempo de ejecuci贸n. Corregida.

* Funci贸n ICON_READ( cFileName ) en icons.c requiere un archivo como primer par谩metro.
Ahora el par谩metro puede ser s贸lo el nombre de la extensi贸n con el prefijo "."
Ejemplo:

ICON_READ( ".docx" ) --> hIcon

* BtnBmp.prg: Error de ejecuci贸n cuando el 5潞 elemento de :aBmpRect es "c铆rculo" o "elipse" (introducido en 2004).
Se ha corregido.

* Nueva funci贸n fw_memowrit( cFile, cText ). Guarda cText sin sufijo eof (chr(26)).
Igual que HB_MEMOWRIT( cFile, cText ) de Harbour y MEMOWRIT( cFile, cText, .F. ) de xHarbour.

* Nuevas funciones wrapper para la api de windows en wndis.c
GetTopWindow( [hWnd] ) --> hWnd
GetForegroundWindow() --> hWnd

* Mejora: M茅todo SaveAsImage() de TWindow.
Heredado por los di谩logos y todos los controles.
SaveAsImage( [[@]cImageFile], [aCrop], [nRectType], [lShow] ) --> lSuccess

Par谩metros:
[[@]cImageFile] : Si est谩 vac铆o, el usuario debe seleccionar un archivo para guardar.
Se puede guardar como BMP, JPG/JPEG, PNG, TIF.
[aCrop] : Si se especifica, se guarda un recorte de la ventana.
[nRectType]
0. WindowRect incluido el marco. (S贸lo para una ventana/di谩logo)
1. Predeterminado. Recto del cliente de la ventana.
2. 脕rea de cliente rect (excluye oTop, oLeft, oBottom, oRight)
Esto tambi茅n significa que la barra de botones y la barra de mensajes est谩n excluidas.
[lShow]: Si es verdadero, se muestra el archivo guardado.

* ximage: mejora de la calidad de guardado del archivo.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FTDN October/Octure (FWH 22.10)
Posted: Tue Nov 08, 2022 06:50 PM

We have detected a FWH 22.10 bug when using xHarbour. Please download FWH.exe again, many thanks

Hemos detectado un bug en FWH 22.10 cuando se usa xHarbour. Por favor, volved a descargar FWH.exe nuevamente, muchas gracias

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion