http://bugs.winehq.org/show_bug.cgi?id=18673
Summary: DateTimePicker not work :( Bug Product: Wine Version: 1.1.22 Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P3 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: yurii_ptz@bk.ru
Created an attachment (id=21380) --> (http://bugs.winehq.org/attachment.cgi?id=21380) DPT in windowsXP and in wine
Hello!
I try wine 0.9.59 (ubuntu 8.04) wine 1.0.1 (debian) and wine_1.1.22_winehq1-1_i386.deb (debian)
But DateTimePicker not work.
I try a little programs (Turbo C++ Express) with DateTimePicker +++ #include <vcl.h> #pragma hdrstop
#include "Unit1.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; //--------------------------------------------------------------------------- __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall TForm1::DateTimePicker1Change(TObject *Sender) {
Memo1->Lines->Add("change to "+DateToStr(DateTimePicker1->DateTime)+" -> "+ BoolToStr(DateTimePicker1->Checked)); } //--------------------------------------------------------------------------- +++
And test it in WindowsXP and Wine.
If i run my programm in WindowsXP and change date from 2009.05.28 to 2009.05.24 in DateTimePicker it write: change to 27.05.2009 -> -1 change to 27.05.2009 -> -1 change to 26.05.2009 -> -1 change to 26.05.2009 -> -1 change to 25.05.2009 -> -1 change to 25.05.2009 -> -1 change to 24.05.2009 -> -1 change to 24.05.2009 -> -1
If i run my programm in Wine and change date from 2009.05.28 to 2009.05.24 in DateTimePicker it write: change to 28.05.2009 -> -1 change to 28.05.2009 -> -1 change to 28.05.2009 -> -1 change to 28.05.2009 -> -1
And in WINE DateTimePicker not work :(
Bugs PrintScreen i attachment to this report
Thank you!
PS: Sory for my bad English
http://bugs.winehq.org/show_bug.cgi?id=18673
--- Comment #1 from YuriiS yurii_ptz@bk.ru 2009-05-28 08:40:57 --- http://bugs.winehq.org/show_bug.cgi?id=15580
TDateTimePicker in "The Bat!" not work too
http://bugs.winehq.org/show_bug.cgi?id=18673
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Summary|DateTimePicker not work :( |DateTimePicker works not |Bug |correctly Severity|major |minor
--- Comment #2 from Dmitry Timoshkov dmitry@codeweavers.com 2009-05-28 08:43:13 --- http://bugs.winehq.org/page.cgi?id=fields.html#bug_severity
http://bugs.winehq.org/show_bug.cgi?id=18673
--- Comment #3 from YuriiS yurii_ptz@bk.ru 2009-05-28 08:59:27 --- (In reply to comment #2)
Sorry... For "The Bat!" addressbook it "MINOR"... But for many programms it maybe "MAJOR"... DateTimePicker needed for a query from the database and this bug is a complete loss of functionality :(
http://bugs.winehq.org/show_bug.cgi?id=18673
--- Comment #4 from Austin English austinenglish@gmail.com 2009-05-28 10:17:55 --- Can you attach a compiled binary?
http://bugs.winehq.org/show_bug.cgi?id=18673
--- Comment #5 from YuriiS yurii_ptz@bk.ru 2009-05-29 02:06:54 --- Created an attachment (id=21398) --> (http://bugs.winehq.org/attachment.cgi?id=21398) Testing programs DTP.exe in ZIP archives
Testing programs DTP.exe in ZIP archives
http://bugs.winehq.org/show_bug.cgi?id=18673
--- Comment #6 from YuriiS yurii_ptz@bk.ru 2009-05-29 02:21:47 --- (In reply to comment #4)
Can you attach a compiled binary?
i can't attach to reply. And i attach directly to bug page http://bugs.winehq.org/show_bug.cgi?id=18673 as "Testing program DTP.exe in ZIP archive" http://bugs.winehq.org/attachment.cgi?id=21398
http://bugs.winehq.org/show_bug.cgi?id=18673
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
--- Comment #7 from Austin English austinenglish@gmail.com 2009-05-29 09:51:14 --- (In reply to comment #6)
(In reply to comment #4)
Can you attach a compiled binary?
i can't attach to reply. And i attach directly to bug page http://bugs.winehq.org/show_bug.cgi?id=18673 as "Testing program DTP.exe in ZIP archive" http://bugs.winehq.org/attachment.cgi?id=21398
Thanks!
http://bugs.winehq.org/show_bug.cgi?id=18673
--- Comment #8 from YuriiS yurii_ptz@bk.ru 2009-09-03 12:59:04 --- Hello! I returned from vacation and download wine-1.1.29.tar.bz2 And error present. I put to /dlls/comctl32/datetime.c FIXME strings ++++1279 (datetime.c)++++ static LRESULT WINAPI DATETIME_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { DATETIME_INFO *infoPtr = ((DATETIME_INFO *)GetWindowLongPtrW (hwnd, 0)); LRESULT ret;
TRACE ("%x, %lx, %lx\n", uMsg, wParam, lParam);
if (!infoPtr && (uMsg != WM_CREATE) && (uMsg != WM_NCCREATE)) return DefWindowProcW( hwnd, uMsg, wParam, lParam );
switch (uMsg) {
case DTM_GETSYSTEMTIME: FIXME("DTM_GET"); return DATETIME_GetSystemTime (infoPtr, (SYSTEMTIME *) lParam);
case DTM_SETSYSTEMTIME: FIXME("DTM_SET"); return DATETIME_SetSystemTime (infoPtr, wParam, (SYSTEMTIME *) lParam);
+++++++
And test DateTimePicker after change date. Then i get date-info through WinAPI +++++++ LRESULT r; SYSTEMTIME st;
r = SendMessage(DateTimePicker1->Handle, DTM_GETSYSTEMTIME, 0, (LPARAM)&st);
if (r==GDT_VALID) { ShowMessage("DATE Valid "+(AnsiString)st.wDay+"/"+(AnsiString)st.wMonth+"/"+(AnsiString)st.wYear); }else if (r==GDT_NONE) { ShowMessage("DATE NONE "+(AnsiString)st.wDay+"/"+(AnsiString)st.wMonth+"/"+(AnsiString)st.wYear); }else{ ShowMessage("DATE ERROR "+(AnsiString)st.wDay+"/"+(AnsiString)st.wMonth+"/"+(AnsiString)st.wYear); } +++++++ I see FIXME string DTM_GET And all work good.
But then i get date-info through Delphi/BuilderC++ +++++++ AnsiString str=""; if (DateTimePicker1->Checked==true){ str="DATE Valid "; }else{ str="DATE NONE "; }
str=str+DateToStr(DateTimePicker1->Date); ShowMessage(str); +++++++ I not see FIXME string DTM_GET And it work not correctly :(
I think it is a mistake because of the Delphi/BuilderC++ Tomorrow I'll try to find a solution...
http://bugs.winehq.org/show_bug.cgi?id=18673
--- Comment #9 from YuriiS yurii_ptz@bk.ru 2009-09-03 13:03:40 --- Created an attachment (id=23407) --> (http://bugs.winehq.org/attachment.cgi?id=23407) new test program
new test program
http://bugs.winehq.org/show_bug.cgi?id=18673
--- Comment #10 from Nikolay Sivov bunglehead@gmail.com 2009-09-03 13:58:36 --- Hi, Yuriis.
It looks like VCL wrapper brings difference here.
Could you try with 'winetricks cc580' to confirm that test and VCL program act as they should? (I just want to switch component field)
http://bugs.winehq.org/show_bug.cgi?id=18673
--- Comment #11 from YuriiS yurii_ptz@bk.ru 2009-09-04 03:35:41 --- (In reply to comment #10)
Hi, Yuriis.
It looks like VCL wrapper brings difference here.
Could you try with 'winetricks cc580' to confirm that test and VCL program act as they should? (I just want to switch component field)
Hi, Nikolay Sivov!
'winetricks cc580' change comctl32 +++ cp "$WINETRICKS_TMP"/comcnt.dll "$WINEPREFIX"/drive_c/windows/system32/comctl32.dll override_dlls native,builtin comctl32 +++
If i get comctl32.dll from Windows XP and put in drive_c/windows/system32/ - DateTimePicker work good with old Wine. But on Wine-1.1.29 i recive window with error
I try 'winetricks cc580' on Wine-1.1.29 and recive same error
Screen with error i attache
http://bugs.winehq.org/show_bug.cgi?id=18673
--- Comment #12 from YuriiS yurii_ptz@bk.ru 2009-09-04 03:37:23 --- Created an attachment (id=23421) --> (http://bugs.winehq.org/attachment.cgi?id=23421) Screen with error after 'winetricks cc508' on wine 1.1.29
Screen with error after 'winetricks cc508' on wine 1.1.29
http://bugs.winehq.org/show_bug.cgi?id=18673
--- Comment #13 from YuriiS yurii_ptz@bk.ru 2009-09-04 04:03:27 --- After 'winetricks cc508' on wine 1.1.29
The error occurs when i choosing the calendar.
CheckBox works well.
When i digits of date changed manually (without calendar) all works well to. For example: I change manually DateTimePicker to 12.12.2012 And through VLC i recive 12.12.2012 And through WinAPI i recive 12.12.2012
But when i changed date in DateTimePicker through WinApi (DATETIME_SetSystemTime) - through VLC i recive wrong date (recive through WinApi DATETIME_GetSystemTime works well) For example: I change through WinAPI DateTimePicker from 12.12.2012 to 10.10.1999 And through VLC i recive 12.12.2012 And through WinAPI i recive 10.10.1999
http://bugs.winehq.org/show_bug.cgi?id=18673
Joerg Schiermeier newsletter@Schiermeier-Software.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |newsletter@Schiermeier-Soft | |ware.de
--- Comment #14 from Joerg Schiermeier newsletter@Schiermeier-Software.de 2009-10-10 21:09:44 --- Duplicate of this bug #18673 ?
http://bugs.winehq.org/show_bug.cgi?id=18673
--- Comment #15 from Joerg Schiermeier newsletter@Schiermeier-Software.de 2009-10-10 21:12:13 --- (In reply to comment #14)
Duplicate of this bug #18673 ?
Sorry - THIS one: bug #15580
http://bugs.winehq.org/show_bug.cgi?id=18673
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |comctl32
http://bugs.winehq.org/show_bug.cgi?id=18673
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE
--- Comment #16 from Nikolay Sivov bunglehead@gmail.com 2009-10-11 07:55:03 --- (In reply to comment #15)
(In reply to comment #14)
Duplicate of this bug #18673 ?
Sorry - THIS one: bug #15580
Looks like that. Anyway this analysis and a test program show a problem.
*** This bug has been marked as a duplicate of bug 15580 ***
http://bugs.winehq.org/show_bug.cgi?id=18673
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #17 from Nikolay Sivov bunglehead@gmail.com 2009-10-11 07:55:18 --- Closing duplicate.