From 2559516ece706816b5b28ad2d0940e2a6d5a4736 Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 23 Feb 2009 12:24:59 +0000 Subject: [PATCH] Patch level : 10.0 Files correlati : tutti Ricompilazione Demo : [ ] Commento : Corretto posizionamento pannello di selezione della data git-svn-id: svn://10.65.10.50/trunk@18325 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/maskfld.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/maskfld.cpp b/include/maskfld.cpp index 695c2fbf1..667ef7440 100755 --- a/include/maskfld.cpp +++ b/include/maskfld.cpp @@ -4126,15 +4126,15 @@ bool TDate_field::on_key(KEY key) if (key == K_F9 && browse() == NULL) { RCT rct; get_rect(rct); - const PNT pos = { rct.top, rct.right }; TDate olddate; const TString& data = get_window_data(); if (TDate::isdate(data)) olddate = TDate(data); - long ansidate = olddate.date2ansi(); - ansidate = xvt_dm_post_choose_date(parent(), pos, ansidate); + + ansidate = xvt_dm_post_choose_date(parent(), &rct, ansidate); + const TDate newdate(ansidate); if (newdate != olddate) set(newdate.string()); @@ -4142,7 +4142,7 @@ bool TDate_field::on_key(KEY key) } if (_ctl->is_edit_key(key)) { - const bool ok = strchr("-0123456789ADEGILMNOPRSTUadegilmnoprstu", key) != NULL; + const bool ok = isalnum(key) || key == '-'; if (!ok) beep(); return ok; }