I have read that link thanks, its really good and about the only bit of code or explanation that I could find over the last few days
However I do have a few questions about it as the vast majority is to do with moving the scrollbars around and displaying them. The scroll bars don't actually scroll the image until part 7. The bit that must be doing the work is
I looked up Top on the Win32::GUI::Reference::Options and its sayssub process_scroll { ... if ( $bar == SB_VERT ) { $self->BM->Top( -$new_pos ); } else { # SB_HORZ $self->BM->Left( -$new_pos ); }
-top => NUMBER Specifies the top position (Y coordinate) for the window, in pixels. For Windows and DialogBoxes is absolute (screen position), while for controls is relative to the client area of their parent window.
So what I don't understand is how moving the top or left hand side of the Label control (that has the bitmap attached and is not actually anchored to a specific part of the main window or is it) causes the image to scroll ?????
If it isn't that bit of code then what is doing the work ?
In reply to Re^2: Win32 GUI scrolling controls within the main window
by SteveR
in thread Win32 GUI scrolling controls within the main window
by SteveR
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |