FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index WhatsNew / Novedades New FTDN April/Abril 2020 (FWH 20.04)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
New FTDN April/Abril 2020 (FWH 20.04)
Posted: Sun May 03, 2020 12:41 PM

April 2020

  • XIMAGE
  • New DATA lMnuSave, allow hide menu options for save image
  • Implemented styles 2007, 2010, 2013, 2015 for menu popup
  • Added traduction Popup menu

  • New: FUll support to easily build your PRGs from Microsoft free vscode. Just open
    a PRG from FWH\samples and build it using Ctrl + Shift + B

  • New: samples/photos.prg lets you take photos using the webcam. Thanks to many that
    have contributed to it:

viewtopic.php?f=6t=32879start=0

  • GET:
  • New method Reset( uVal/bNewSetGet, [cPic] ) --> nil
    Allows to reset the get with a new variable of a different data type
    and optionally use a new picture.

  • New class FWStack (source\classes\fwstack.prg)
    Class to save and retrieve data by Push() and Pop()
    Methods:
    New( [u1,u2,...,uN] ) --> Self
    Push( u, [u2, u3, ..., uN] ) --> Self
    Pop() --> Last item on the stack and removes from the stack
    Peek() --> Last item on the stack without removing
    Peek( -n ) --> -nth item from last
    Clear() --> Self. Clears the stack
    Size() --> Length of the stack

  • Fix: BtnBmp: In some rare cases, bitmap is not correctly placed on
    the button. Fixed.
    For details see:

viewtopic.php?f=3t=38549

  • FWPDF class
  • Method Say() is not fully compatible with TPrinter class. When nWidth
    parameter is nil, alignment is ignored whereas Tprinter treats nCol as
    right boundary for right alignment and as cener point for center
    alignment. FWPdf class is modified for compatibility.

viewtopic.php?f=3t=38394

  • It is noticed that libharu.lib along with the present png.lig of (x)Harbour
    is unable to read some png files/buffers.
    Temporarily, fwpdf.prg is modified. Now png images are first read by FWH
    using itw own functions, bypassing the libharu native functions and then
    create pdf images from the gdi+ image read by FWH.

viewtopic.php?f=3t=38394p=230214#p230214

  • TPrinter class: (printer.prg)
  • Method PrintIamge() is not displayin the correct size of the image when
    both nWidth and nHeight are nil. Fixed.
  • Method Box() and RoundBox() were not drawn transparently covering the
    previous content. Now drawn transparently and consistent with Window and
    fwpdf.

  • Enhancement FW_ReadImage() can now read base64 encoded images from web.
    Similar enhancement is implemented in fwpdf class also.

  • Enhancement: Combobox images: Now alpha bitmaps and all types of images
    can be used with comboboxes.

  • TDatePick class: Enhancements

  • SetRange( dFrom, dLast ): Sets lower and upper limits for selection of
    dates. In case of DateTime variable, the parameters may be DateTime values.
    Value of NIL clears that range.

  • GetRange() --> aRange { dFrom, dLast )

  • New Data aRange. Is updated on the last call to SetRange/GetRange

  • NewDatas to toggle DatePicker styles:
    a) lNoToday: Display of Today prompt at the bottom.
    b) lNoTodayCircle: Box around current date.
    c) lWeekNumbers: Display week of the year number on left
    d) lNoTrailingDates: Display previous and next month dates.
    e) lMultiSelect: When toggled on, user can select a range of
    days by dragging with mouse or by shift-clicking on the last
    day. While the regular Get variable indicates the starting
    date, DATA dLastDate indicates the last date of the selected
    range of the date: By default, a date range consititng a
    maximum 7 days can be seleted. Thils limit can be changed by
    setting a different value to data nMultiSelMaxDays.

  • All Controls: ReadOnly DATA uOriginalValue holds the value of
    the variable when the control was first created.

  • New: function FWErrorSys() allows to set the FWH error system in those
    cases where another function ErrorSys() may exist.

  • New: function StackVars() returns an array with all the stack procnames
    with their params values and local values.

  • Fix: Class TTabControl() was not properly adding and deleting tabs. Now
    it is ok.

  • Enhancement: function MsgGet() now supports an optional codeblock to
    create a GET ... ACTION

  • XBROWSE:

  • New DATA lVarChar in TXbrwColumn class:
    While editing array browses user can enter longer text than the
    present value and the text is trimmed while saving.
    Applies only for character values in arrays.

  • Positioning of BtnAction in GetBar when the application is themed is not
    correct. Fixed.

viewtopic.php?f=3t=38828

  • SqlRdd: Earlier functionality of VScroll for SQLRDD restored

  • Vertical merge of cells:
    Vertically merged cells not hightlighted show horizontal lines when the
    back color in bClrStd is not the same as the oBrw:nClrPane.
    Now all merged cells show with solid color.

viewtopic.php?f=3t=38843p=231857#p231857

  • Method Report(): The word "Page" in the footer will be printed in the
    language set.

  • Fix: function MemoEdit() renamed as FW_MemoEdit()

  • Fix: Fixed RibbonBar bug reported by Silvio:

viewtopic.php?f=3t=38743start=0

  • Fix: uCharToVal( cDate, "D" ) in source/function/valtostr.prg:
    This function is failing with monthname is preceded by a non-space
    character like - or /.

viewtopic.php?f=3t=38754p=231132#p231132

  • Fix: FWMariaConnection class: In some rare cases of MariaDB server
    installations in other languages like Turkish, the class fails to
    recognise the server as MariaDB server and also fails to decide if a
    Transaction is in progress. Fixed. This bug does not affect any installations
    of MySql and also MariaDb installations in English.

viewtopic.php?f=3t=37928

  • New: Class TExplorerBar() METHOD CloseAll( nExcept ) closes all the panels
    except the panels specifed by nExcept. By default it is 1, so the first panel
    remains visible

  • cGetDir(): Now the dialog title can be Unicode.
    However, InitDir can not contain Unicode chars.

viewtopic.php?f=3t=38815

&&&&&&&&&&&&&&&

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FTDN April/Abril 2020 (FWH 20.04)
Posted: Sun May 10, 2020 01:26 PM

Abril 2020

  • XIMAGE
  • Nueva DATA lMnuSave, permite ocultar opciones del menú para guardar la imagen.
  • Se han implementado los estilos 2007, 2010, 2013, 2015 para los menús emergentes.
  • Se ha añadido menú emergente de traducción.

  • Nuevo: Soporte completo para construir fácilmente sus PRGs usando el editor
    gratuito Visual Code de Microsoft. Simplemente abra un prg de los contenidos en
    la carpeta "samples" de FWH y constrúyelo usando Ctrl + Shift + B.

  • Nuevo: El ejemplo photos.prg en la carpeta samples de FWH, permite tomar fotografías
    usando la webcam. Muchas gracias a todas las personas que han contribuido a ello:

viewtopic.php?f=6&t=32879&start=0

  • GET:
  • Nuevo método ( uVal/bNewSetGet, [cPic] ) --> nil
    Permite restablecer el get con una nueva variable de un tipo de datos diferente y,
    opcionalmente, usar un nuevo formato para la entrada/salida (PICTURE) de la información.

  • Nueva clase FWStack (source\classes\fwstack.prg)
    Clase pare el salvado y recuperación de datos por Push() y Pop()

Métodos:
New( [u1,u2,...,uN] ) --> Self
Push( u, [u2, u3, ..., uN] ) --> Self
Pop() --> Ultimo elemento de la pila y lo borra de la pila
Peek() --> Ultimo elelmento de la pila, pero no lo elimina de la misma
Peek( -n ) --> Enésimo elemento desde el último
Clear() --> Self. Limpia la pila
Size() --> Tamaño de la pila

  • Corrección: BtnBmp: En algunos casos raros, la imagen no se coloca correctamente sobre el
    botón. Corregido.
    Para más detalles mira en: viewtopic.php?f=3&t=38549

  • Clase FWPDF

  • El método Say() no es totalmente compatible con la clase TPrinter. Cuando el parámetro nWidth
    es nulo, la alineación se ignora mientras que Tprinter trata nCol como límite derecho para la
    alineación correcta y como punto central para la alineación central. Se ha modificado la clase
    FWPdf por compatibilidad.
    Para más detalles mira en: viewtopic.php?f=3&t=38394

  • Se observa que libharu.lib y png.lib en (x)Harbour actual no puede leer algunos archivos PNG.
    Temporalmente, fwpdf.prg se ha modificado. Ahora las imágenes PNG son primero leídas por FWH
    usando sus propias funciones, pasando por alto las funciones nativas de libharu y luego creando
    imágenes pdf a partir de la imagen leída por FWH usando GDI+.
    Para más detalles mira en: viewtopic.php?f=3&t=38394&p=230214#p230214

  • Clase TPrinter: (printer.prg)

  • El método PrintIamge() no muestra el tamaño correcto de la imagen cuando nWidth y nHeight
    son nulos. Corregido.
  • El método Box() y RoundBox() no eran dibujados de forma transparente cubriendo el contenido anterior.
    Ahora se dibujan de forma transparente y coherente con la ventana y fwpdf.

  • Mejora: La función FW_ReadImage() ahora puede leer imágenes codificadas en base64 desde la web.
    Una mejora similar se ha implementado en la clase FWPDF también.

  • Mejora: Imágenes en controles Combo: Ahora se pueden usar imágenes alfa y todo tipo de imágenes en
    los controles combo.

  • Clase TDatePick: Mejoras

  • SetRange( dFrom, dLast ): Establece límites inferior y superior para la selección de fechas.
    En el caso de variables de tipo DateTime, los parámetros pueden ser valores DateTime.
    Un valor nulo elimina el rango.
  • GetRange() --> aRange { dFrom, dLast )
  • Nueva DATA aRange. Se actualiza en la última llamada a SetRange()/GetRange()
  • Nuevas DATAs para cambiar los estilos de DatePicker:
    a) lNoToday: ;uestra el indicador "Today" en la parte inferior.
    b) lNoTodayCircle: Cuadro alrededor de la fecha actual.
    c) lWeekNumbers: Muestra el número de la semana del año en la izquierda.
    d) lNoTrailingDates: Muestra las fechas del mes anterior y el siguiente.
    e) lMultiSelect: Cuando se activa, el usuario puede seleccionar un rango de días arrastrando
    con el ratón o haciendo clic con la tecla "Mayús" en el último día. Mientras que la variable
    Get indica la fecha de inicio, la DATA dLastDate indica la última fecha del rango seleccionado
    de la fecha: Por defecto, se puede seleccionar un rango de fechas con un máximo de 7 días.
    Este límite se puede cambiar estableciendo un valor diferente para la DATA nMultiSelMaxDays.

  • En todos los controles: La DATA uOriginalValue de sólo lectura, contiene el valor de
    la variable cuando se creó el control por primera vez.

  • Nuevo: La función FWErrorSys() permite configurar el sistema de error de FWH en aquellos casos
    en que pueda existir otra función ErrorSys().

  • Nuevo: La función StackVars() de vuelve una matriz con todos los nombres de proceso de la
    pila con sus valores de parámetros y valores locales.

  • Corrección: La clase TTabControl() no estaba añadiendo y eliminando pestañas correctamente.
    Ahora está bien.

  • Mejora: La función MsgGet() ahora soporta un bloque de código opcional para crear un
    GET ... ACTION

  • XBROWSE:

  • Nueva DATA lVarChar en la clase TXbrwColumn:
    Mientras se edita al navegar por la matriz, el usuario puede añadir un texto más largo
    que el valor actual y el texto se recortará al guardar.
    Se aplica sólo a los valores de tipo carácter en las matrices.

  • El posicionamiento de BtnAction en GetBar cuando la aplicación tiene un tema no es
    correcto. Corregido.
    Para más detalles mira en: viewtopic.php?f=3&t=38828

  • SqlRdd: Se ha resturado la funcionalidad anterior de VScroll para SQLRDD.

  • Combinación vertical de celdas:
    Las celdas combinadas verticalmente no resaltadas, muestran líneas horizontales
    cuando el color de fondo en bClrStd no es el mismo que oBrw:nClrPane.
    Ahora todas las celdas combinadas se muestran con color sólido.
    Para más detalles mira en: viewtopic.php?f=3&t=38843&p=231857#p231857

  • Método Report(): La palabra "Página" en el pie de página se imprimirá en el idioma
    puesto o elegido.

  • Corrección: Se ha renombrado la función MemoEdit() por FW_MemoEdit()

  • Corrección: Se ha corregido un error en RibbonBar reportado por Silvio.
    Para más detalles mira en: viewtopic.php?f=3&t=38743&start=0

  • Corrección: uCharToVal( cDate, "D" ) en source/function/valtostr.prg:
    Esta función falla con el nombre de mes si es precedido por un carácter como - o /.
    Para más detalles mira en: viewtopic.php?f=3&t=38754&p=231132#p231132

  • Corrección: Clase FWMariaConnection: En algunos casos raros de instalaciones del
    servidor MariaDB en otros idiomas, como el turco, la clase no reconoce el servidor
    como servidor de MariaDB y tampoco reconoce si una transacción está en curso.
    Corregido. Este error no afecta ninguna instalación de MySql y tampoco las instalaciones
    de MariaDb en inglés.
    Para más detalles mira en: viewtopic.php?f=3&t=37928

  • Nuevo: El método CloseAll( nExcept ) de la clase TExplorerBar() cierra todos los paneles
    excepto el panel especificado por nExcept. Por defecto es 1, así que el primer panel
    permanece visible.

  • cGetDir(): Ahora el título del cuadro de diálogo puede ser Unicode.
    Sin embargo, InitDir no puede contener caracteres unicode.
    Para más detalles mira en: viewtopic.php?f=3&t=38815

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion