Page 1 of 1

Ayuda con DTPICKER

PostPosted: Fri Apr 22, 2022 9:34 pm
by remtec
Hola Amigos.

Necesito ayuda con ingreso de fecha con "DTPICKER", hasta la version de FWH 17.09, funcionaba perfecto.

Ahora con la versión FWH 22.03, se presento un problema al digitar.

El ingreso al digitar la fecha, pasaba automáticamente de dia mes y año, ahora solo llega hasta el mes, para digitar el año, debo hacerlo mover el cursor con flecha o usar el mouse.

Favor para corregir este problema, como ya dije, se genera al compilar con ver 22.03

Muchos saludos

Antonio

Código
Code: Select all  Expand view

            @ 020,135 SAY "Fecha Final"         SIZE 80,10 PIXEL OF oDlg1  RIGHT  FONT  oFont4
                @ 020,220 DTPICKER oFecha2 VAR dFecha2 OF oDlg1 SIZE 60,10 PIXEL PICTURE "dd/mm/yyyy" UPDATE FONT  oFont4
              oFecha2:bChange = { || If( oFecha2:lClosed .and. oFecha2:lFocused, oFecha2:PostMsg( WM_KEYDOWN, VK_RIGHT ),) }

 

Re: Ayuda con DTPICKER

PostPosted: Fri Apr 22, 2022 10:14 pm
by Marcelo Roggeri
Hola buenas noches, se queda en el mismo mes cuando el numero de mes es el mismo, puedes que siga hasta el año pulsando el punto, si pruebas de cambiar el numero de mes, veras que se va al año.
Saludos
Marcelo

Re: Ayuda con DTPICKER

PostPosted: Fri Apr 22, 2022 10:16 pm
by karinha
Intenta asi:

SET DATE BRIT
SET CENTURY ON
SET CONFIRM OFF

Code: Select all  Expand view

   PICTURE "@D 99/99/9999"
 


Regards, saludos.

Re: Ayuda con DTPICKER

PostPosted: Fri Apr 22, 2022 10:46 pm
by remtec
Hola Marcelo

Muchas gracias por responder.

Efectivamente lo había observado ahora, solo me había quedado con la información que me mostro un cliente, ahora pude ver q al ser el mes digitado diferente al actual, avanza al año automáticamente.

Muchas gracias por tu ayuda.

Saludos

Antonio

Re: Ayuda con DTPICKER

PostPosted: Fri Apr 22, 2022 10:50 pm
by remtec
Hola Karinha

Muchas gracias por responder.

Ha había probado lo que tu me indicas y tenia el mismo comportamiento.

Muchas gracias.

Saludos.


karinha wrote:Intenta asi:

SET DATE BRIT
SET CENTURY ON
SET CONFIRM OFF

Code: Select all  Expand view

   PICTURE "@D 99/99/9999"
 


Regards, saludos.

Re: Ayuda con DTPICKER

PostPosted: Sat Apr 23, 2022 3:12 pm
by nageswaragunupudi
Code: Select all  Expand view
PICTURE "@D 99/99/9999"
 

This is an invalid picture format and is ignored.

Difference between 1709 and recent versions including 2203.
Many users complained that bChange was being evaluated, even when there was no change in the date and insisted that bChange should be evaluated only if there is any change in the date. We modified the class to evaluate bChange only when the date is changed.

This is the reason for the difference in the behavior.
Using FWH1709, even if month is not "changed", bChange is evaluated and Right key was stuffed.
With the recent versions, only if we change the month, it goes to Year.

Any suggestions how we can satisfy both the requirements?

Re: Ayuda con DTPICKER

PostPosted: Mon Apr 25, 2022 4:35 pm
by remtec
Buen dia Mr. Roa

Muchas gracias por su explicación.


Me parece bien y le agradezco su descripción de funcionamiento y de momento, no tengo observaciones.

Muchos Saludos,

Antonio