Ayuda con DTPICKER

Ayuda con DTPICKER

Postby remtec » Fri Apr 22, 2022 9:34 pm

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 ),) }

 
FWH 22.10 - HARBOUR - PELLES C
remtec
 
Posts: 717
Joined: Fri May 12, 2017 2:50 pm

Re: Ayuda con DTPICKER

Postby Marcelo Roggeri » Fri Apr 22, 2022 10:14 pm

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
FWH - Harbour - BCC7 - PellesC
User avatar
Marcelo Roggeri
 
Posts: 325
Joined: Sat Jul 22, 2006 9:04 pm
Location: Venado Tuerto - Santa Fe -Argentina

Re: Ayuda con DTPICKER

Postby karinha » Fri Apr 22, 2022 10:16 pm

Intenta asi:

SET DATE BRIT
SET CENTURY ON
SET CONFIRM OFF

Code: Select all  Expand view

   PICTURE "@D 99/99/9999"
 


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7214
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Ayuda con DTPICKER

Postby remtec » Fri Apr 22, 2022 10:46 pm

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
Last edited by remtec on Fri Apr 22, 2022 10:50 pm, edited 1 time in total.
FWH 22.10 - HARBOUR - PELLES C
remtec
 
Posts: 717
Joined: Fri May 12, 2017 2:50 pm

Re: Ayuda con DTPICKER

Postby remtec » Fri Apr 22, 2022 10:50 pm

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.
FWH 22.10 - HARBOUR - PELLES C
remtec
 
Posts: 717
Joined: Fri May 12, 2017 2:50 pm

Re: Ayuda con DTPICKER

Postby nageswaragunupudi » Sat Apr 23, 2022 3:12 pm

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?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Ayuda con DTPICKER

Postby remtec » Mon Apr 25, 2022 4:35 pm

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
FWH 22.10 - HARBOUR - PELLES C
remtec
 
Posts: 717
Joined: Fri May 12, 2017 2:50 pm


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 89 guests