Re: [perl-win32-gui-users] [win32-gui] NEM Menus?

2006-10-24 Thread Brian Millham
TrackPopupMenu does work, I use it in the Skin module. Don't use the onClick event however, you need to use MouseRightDown (if you want a right click) I can post an example tonight when I get home from work. If you feel brave, download Win32::GUI::Skin from Sourceforge and look in the Skin.pm mo

Re: [perl-win32-gui-users] [win32-gui] Force overlapped DCs to update?

2006-10-24 Thread Robert May
Steve Loughran wrote: Robert May wrote: foreach my $tempwin (@windows) { # $tempwin->InvalidateRect(1); Win32::GUI::InvalidateRect($tmpwin, 1); # $tmpwin is a scalar not an object my $tempdib = newFromWindow Win32::GUI::DIBitmap ($tempwin,1);

Re: [perl-win32-gui-users] [win32-gui] Force overlapped DCs to update?

2006-10-24 Thread Steve Loughran
Robert May wrote: foreach my $tempwin (@windows) { # $tempwin->InvalidateRect(1); Win32::GUI::InvalidateRect($tmpwin, 1); # $tmpwin is a scalar not an object my $tempdib = newFromWindow Win32::GUI::DIBitmap ($tempwin,1); $tempdib->SaveToFile("

Re: [perl-win32-gui-users] [win32-gui] Force overlapped DCs to update?

2006-10-24 Thread Robert May
Steve Loughran wrote: Robert May wrote: I've never tried, but I believe you can do what you want by creating a compatible DC, and then sending a WM_PRINT message to the window, with the DC's handle in the wParam and some flags in the lParam (see MDSN for more info). I think most of the Win32:

Re: [perl-win32-gui-users] NEM Menus?

2006-10-24 Thread Robert May
Glenn Linderman wrote: Robert May wrote: Glenn Linderman wrote: > Hi, > > Last time I tried to play around with NEM menus, they didn't work, but > that was several years ago. > > 1) Do they work now? > 2) Any one have a small working sample? I didn't find one in the demos I've n

Re: [perl-win32-gui-users] [win32-gui] Force overlapped DCs to update?

2006-10-24 Thread Steve Loughran
Robert May wrote: I've never tried, but I believe you can do what you want by creating a compatible DC, and then sending a WM_PRINT message to the window, with the DC's handle in the wParam and some flags in the lParam (see MDSN for more info). I think most of the Win32::GUI windows/controls h