PDA

Click to See Complete Forum and Search --> : scrolling a picture


ajatholly
Sep 29th, 2001, 06:31 PM
how do i scroll a map for different place according to what is clicked. For example, Rome is set to the center of the map. When Italy is click the map will scroll. The paintpicture method must be used.

Sastraxi
Sep 29th, 2001, 08:41 PM
Get where they clicked and subtract the MiddleX from the ClickX, and the MiddleY from the ClickY. Then, add those amounts to the offset of the picture.