Update..
I have now fixed the Second problem with the Scrolling value,
I simply subtracted the Total Canvas Height from the Height of the
ScrollBar to give the Scrollbar.Maximum value,
and removed the multiplication value from the ValueChanged event.
Mark
On 4 Mar 2006, at 11:41, Mark Cooke wrote:
Hi,
I've tried several options, but cannot get this to work correctly
yet, I'm writing a simple image viewer for my Companies CD,
apart from one or two small bugs, It's working ok, I have a Canvas
on the left, that dynamically holds any thumbnails found in a given
directory;
to the right of this is a Scrollbar, this scrolls through the
images (a bit like iPhoto, but on the left), the Scroll works fine
(apart from one niggle),
but I've tried to get the images to scroll when the mouse is also
over the thumbnails as well, I've tied giving focus to the scroll
wheel on MouseEnter,
but this fails to work.
Now for my second question, because I do not know how many images
will be in the Canvas, it could be 5, it could be 50, I'm having a
problem working out the ValueChanged amount for the scroll bar, the
code below, is fine for about 20 images, but if I have any more,
then they disappear off the bottom of the Canvas and the Scrollbar
does not allow them to be viewed or scrolled up.
the code is:
ThumbnailCanvas.Scroll 0, (LastScrollValue - Me.Value) * 6
LastScrollValue = Me.Value
I know how many images there are and also the total height of all
the images.
Can anyone give me any pointers please.
Thanks
Mark
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>