PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20] Touchscreen input on a date field
[WD20] Touchscreen input on a date field
Iniciado por guest, 03,ene. 2016 20:15 - 1 respuesta
Publicado el 03,enero 2016 - 20:15
Does anyone know if there is a way to use a date field with touchscreen input?

I've tried SendKey(),EmulateInput(),EDT_Date += 2. Nothing works. I think the underlying reason is that once EDT_Date loses focus (click on touchscreen button) it validates and resets because it's a bad date.

I figured I would see if anyone has an easy solution for this before I write my own code to work with a text field. DateValid() should help, but I would like to have the intuitiveness that the date field has with the automatic separators without having to code it myself.

Thanks!
Publicado el 11,enero 2016 - 16:29
Hi,

In one of my touch screens solutions I do this:

1. I place a date-edit field on the screen.
2. in the "Entry in EDT_Date" code block i do a

Win_terminal..plane = 10

3. In the plane 10 of the window I have a (big) calendar where the user can use his big clumsy fingers and select a date from the calender.

(But this could be anything that let you select a date 3 listboxes for example (one going from 1 to 31, month listbox going from 1-2 and so forth)

4. When the user selects a date on the calendar I write the value to edt_date and switch to the caller plane again.



Cheers
Tor-Bjarne