Thanks Rob, that did the trick. I'm working on enhancing the sample skin with a pop-up menu right now. I hope to be able to send a copy out later tonight.
Brian Millham This message traveled at least 44,000 miles to reach you! Creator of the DW6000 Monitor http://www.millham.net/dw6000 [EMAIL PROTECTED] -----Original Message----- From: Robert May [mailto:[EMAIL PROTECTED] Sent: Thursday, March 02, 2006 7:10 PM To: Brian Millham Cc: perl-win32-gui-users@lists.sourceforge.net Subject: Re: [win32gui] [perl-win32-gui-users] Proper use of Regions Brian Millham wrote: > I have a question on the proper use of regions. According to the > documentation, CreateRectRgn(LEFT, TOP, WIDTH, HEIGHT) is the proper use. > However, I've discovered that there is another argument expected, > CreateRectRgn(x, LEFT, TOP, WIDTH, HEIGHT). I'm not sure that the first > argument is supposed to be, but I also discovered that it doesn't seem to > matter. > > Does anyone know what the argument should be? It's the class name. It's intended to be called as a class method, rather than as a static function: my $region = Win32::GUI::Region->CreateRectRgn($l, $t, $w, $h); or my $region = CreateRectRgn Win32::GUI::Region($l, $t, $w, $h); [I believe that most style guides recommend the first of these 2] (compare to how you call a constructor for a window: my $win = Win32::GUI::Window->new( ... ); my $win = new Win32::GUI::Window ( ... ); not my $win = Win32::GUI::Window::new( ... ); ) Regards, Rob. --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0609-2, 03/02/2006 Tested on: 3/2/2006 7:21:25 PM avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com