By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

Scrolling Panel Issues

P: 28

I'm making the second version of my brainstorming and mind mapping software, Open Mind. The way it works simply is that a bubble control is inside a panel and can be dragged around the panel and joined to other bubbles to make a mind map.

This works pretty well however an on-going issue is that when working on a large mind map and the panel needs to scroll (With allowscroll set to true). This is fine but when it comes to saving a mind map the location of some of the bubbles are off the panel with negative x and y values.


The bubble is in the centre of the panel, there is no scrolling and everything fits on the page.

The bubble is off of the page because the panel has scrolled. Problem is it's location is negative and has changed. I need a way to calculate its normal x,y coordinates.

I'm wondering if there is a way to overcome this?
Jan 8 '13 #1
Share this Question
Share on Google+
1 Reply

P: 28
I've fixed it:
Expand|Select|Wrap|Line Numbers
  1. Dim newl As Point = New Point(control.X + Panel1.HorizontalScroll.Value, control.Y + Panel1.VerticalScroll.Value)
Use newl as the location of the control. Not it's normal location.
Jan 8 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.