----- Original Message ----- From: "Chris Rogers" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, July 06, 2005 12:19 PM Subject: Re: Win32::GUI::Label, Bitmaps, and Resizing
> UPDATE: > > The more I look at this problem, the more worried I get. I'll explain > the desired end result in a little more detail so you guys can tell me > if I'm barking up the wrong tree. > > 1) I need to be able to display a large image in a smaller container > and allow the user to scroll the image in the container. There's no problem with that. The cpan source for Win32-GUI-1.0, which you can get from http://search.cpan.org/CPAN/authors/id/L/LR/LROCHER/Win32-GUI-1.0.zip contains a file called samples/BitmapScroll.pl. If you run that script and elect to open WINNT\System32\setup.bmp you'll see that you can scroll around within that image (which is too big to fit into the window). You'll also notice that you can control the opening scroll position by altering the values within: $cwin->ScrollPos( 0, 0 ); $cwin->ScrollPos( 1, 0 ); Try, for example: $cwin->ScrollPos( 0, 100 ); $cwin->ScrollPos( 1, 20 ); So, I think that indicates that you'll be able to get to the portion of the picture that you want simply by specifying the xy coordinates. As for being able to capture the xy coordinates with mouse click/unclick .... I really don't know if that can be done with Win32::GUI. You may need to call on Win32::API. Do you really need to define an *area* ? I'm thinking it might be sufficient to define just the upper left xy coordinates - which would be simpler....... Is there a Win32::GUI-specific help list ? I thought there is/was ..... but I could be wrong. Cheers, Rob _______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
