From: Robert M. <rm...@po...> - 2005-08-03 22:22:55
|
All, I've just put quite a large set of changes into CVS. Many thanks to Dan and Reini for their contributions. I've done very limited testing on most of this, so any feedback (especially negative) is very welcome. Regards, Rob. - Added VERSIONINFO resource to GUI.rc and updated the build process to update version automatically in VERSIONINFO Structure Now you can right-click->Properties GUI.dll and get the version information etc. I don't know if this is generally useful, but I have so many GUI.dll files hanging around that it is at least useful for me. - GUI.h, button.xs, datetime.xs, GUI.xs, GUI_options.cpp, Label.xs, Listview.xs, Richedit.xs, Splitter.xs, Textfield.xs, Updown.xs, Window.xs: Added new macro W32G_DOWARN and W32G_DOEARN_DEPRECATED to replace use of PL_dowarm, fixing inability to turn off Win32::GUI warnings when lexical warnings are in use. By default behaviour is as before, pass -DW32G_NEWWARN to enable this. I started investigating whether there was a better way to issue warnings from the XS code. You shouldn't see any change in behaviour unless you pass -DW32G_NEWWARN to the build process. If you do, then you'll get no warnings from the XS parts of Win32::GUI unless you use the -w command-line switch (or set it on your shbang line, or set $^W) - Makefile.PL, GUI.h: now use __MINGW32__ guard blocks rather than __MINGW__, as compiler defines first automatically; reduced variations between build environments I've re-worked the Makefile to reduce the number of differences between the build environments. *I am particularly interested in hearing that I haven't broken your build process*. - GUI.pm Fix to logic in Win32::GUI::Class::new for perl 5.8.6 and above. Tracker:1236053 - GUI.pm fixed Win32::GUI::Brush to return undef on failure - GUI.pm upped version to v1.02_01 - GUI_messageloops.cpp: Tracker 1246429 fixed WM_CTLCOLORSTATIC for handling readonly Edit controls - GUI_messageloops.cpp: Fixed WM_CTLCOLOR* to use window class background brush if there is one - GUI_messageloops.cpp: Tracker:1236283 Change to WM_ERASEBACKGROUND to allow -background to work with windows As a result of these changes use of -background, and -class (with background brushes) should work much more as you expect. -background on Windows can be quite flickery. Most of this can be overcome by adding WS_CLIPCHILDREN to your window styles. - sourceParser.pm Fix to solve over aggressive removal of blank lines. - various documentation corrections/enhancements - Richedit.xs fix SetCharFormat/GetCharFormat option and new documentation (thanks to Dan Dascalescu) - GUI.pm Timer fixes (Reini Urban) - many tests added, and MANIFEST updated (Reini Urban, Dan Dascalescu, Robert May) I've done little with the test other that take what Reini and Dan have given me, and re-write them to use Test::More. We still need to think through a testing strategy. - GUI.xs re-wrote logic for TrackPopupMenu to make it (slightly) more maintainable - added listvew_drag_drop.pl to the samples |
From: Reini U. <ru...@x-...> - 2005-08-04 06:05:29
|
Robert May schrieb: > - many tests added, and MANIFEST updated (Reini Urban, Dan Dascalescu, > Robert May) > > I've done little with the test other that take what Reini and Dan have > given me, and re-write them to use Test::More. We still need to think > through a testing strategy. I thought of adding a simple Win32::GUI:Test helper module with a SendMessage, PostMessage. And maybe higher SendKeys and mouse functionality borrowed from Win32::GuiTest, and doing the rest with Timers. Or just using Win32-GuiTest-1.50 to do the functionality tests. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ http://phpwiki.org/ |
From: Jeremy W. <jez...@ho...> - 2005-08-04 08:58:56
|
>I've done very limited testing on most of this, so any feedback (especially >negative) is very welcome. I had a few issues building under mingw: I had to change __MINGW__ in ImageList.xs to __MINGW32__, otherwise I get: ImageList.o(.text+0xd2a):ImageList.cpp: undefined reference to `ImageList_Copy@2 0' ImageList.o(.text+0x21c4):ImageList.cpp: undefined reference to `ImageList_DrawI ndirect@4' ImageList.o(.text+0x25e9):ImageList.cpp: undefined reference to `_Z19ImageList_D uplicateP10_IMAGELIST@4' When running makefile.pl I get: Checking if your kit is complete... Warning: the following files are missing in your kit: patches/README.txt patches/patch001.patch Please inform the author. Writing Makefile for Win32::GUI I also get this warning: 1.02_01\" -DHASATTRIBUTE -IC:\Perl\lib\CORE GUI_MessageLoops.cpp GUI_MessageLoops.cpp: In function `LRESULT CommonMsgLoop(PerlInterpreter*, HWND__*, unsigned int, unsigned int, long int, LRESULT (*)(HWND__*, unsigned int, unsigned int, long int))': GUI_MessageLoops.cpp:111: warning: NULL used in arithmetic Cheers, jez. |
From: Robert M. <rm...@po...> - 2005-08-04 22:59:34
|
Jeremy White wrote: > I had to change __MINGW__ in ImageList.xs to __MINGW32__, otherwise I get: Got it. > When running makefile.pl I get: > > Checking if your kit is complete... > Warning: the following files are missing in your kit: > patches/README.txt > patches/patch001.patch Got it. > I also get this warning: > GUI_MessageLoops.cpp:111: warning: NULL used in arithmetic Got it. Fixes in CVS. Many thanks, Rob. |