Xref: utzoo alt.toolkits.xview:114 comp.windows.open-look:509 Path: utzoo!utgpu!cs.utexas.edu!usc!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!resam!andrew From: andrew@resam.dk (Leif Andrew Rump) Newsgroups: alt.toolkits.xview,comp.windows.open-look Subject: To what use is the DevGuide Text field event? Message-ID: <1991Jan31.160212.10396@resam.dk> Date: 31 Jan 91 16:02:12 GMT Organization: RESAM Project Office, SAS, CPHML-V Lines: 29 My idear was to make a function that checked the date entered by the user as the user typed it in, so I defined a text field (Data: _______) and an event routine and this is what DevGuide gave me (my own indentation!): /* * Event callback function for `date_txt'. */ void fk_date_event(item, event) Panel_item item; Event *event; { panel_default_handle_event(item, event); } How do I for tell the notifier to ignore the last keystroke because the user entered a letter when a number was expected? Normal XView programming would allow me to _return_ PANEL_NONE to tell the notifier to discard the input!!! Leif Andrew Leif Andrew Rump, AmbraSoft A/S, Stroedamvej 50, DK-2100 Copenhagen OE, Denmark UUCP: andrew@ambra.dk, phone: +45 39 27 11 77 / Currently at Scandinavian Airline Systems =======/ UUCP: andrew@resam.dk, phone: +45 32 32 51 54 \ SAS, RESAM Project Office, CPHML-V, P.O.BOX 150, DK-2770 Kastrup, Denmark > > Read oe as: o / (slash) and OE as O / (slash) < <