473,749 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scrolling Panel Issues

28 New Member
Hi,

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.

Example:


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
1 1339
Josh Argent
28 New Member
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

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

Similar topics

2
3519
by: Amrit | last post by:
Hi Can anyone help me? I would really appreciate I am trying to scroll Groupboxes inside the panel when i hold panel's scroll bar and drag up and down. Such as Internet explorer where you can hold the scroll bar and drag up down which causes the material to move at the same time up and down Thank Amrit.
4
645
by: Nathan | last post by:
I need a panel with only a vertical or only a horizontal scroll bar. Is there a way to do that? Nathan
5
1800
by: Sam | last post by:
Hi, I would like to reproduce the same control as in Visual Studio for the propery editor or the message feedback window. That is, a scrolling panel that would appear when the mouse is over one of the side of the main form. There should be the possibility to anchor it as well. How can I do that ? Thx
1
1216
by: John | last post by:
Can I use the Atlas controls to create a scrolling panel in a webform? Basically I want a master page that defines 90% of the screen height to be a workspace, with 5% top and bottom for other controls. The 90% should scroll (up and down) without effecting the top and bottom placeholders. Frames would be the obvious way, but no way for clicks from top and bottom to send to the main panel I guess, at least not without leaving the ASP.NET...
0
2650
by: mahaq | last post by:
Hi Guys, I like to know if there is any better solution to this issue. I am a front end developer using CSS and asp.net technologies I have a .net page and I am using an external CSS file. After adding the following code What I see is that its fine on IE 6 & 7 but on firefox and netscape the 2 links given below shift to the center.
0
1262
by: Elroyskimms | last post by:
I have a fixed witdth panel control with horizontal scrollbars. In it, I load a table and in each table cell is an instance of a user control that I created it. In theory, 3-5 of these controls are visible in the panel at any given time, and the scrollbars can be used to see anything that is offscreen (overflowed). This works as expected in IE 6+. However, in Safari, the scrollbars do not even show up, leaving only the 3-5 controls...
2
1798
by: shahoo | last post by:
Hi, I am trying to add some controls (say buttons) to a panel. At some stage the controls are too much to be show on the panel, so I set the Autoscroll property of the panel to true. But my problem is that I don't want the user to use the scroll bars of the panel, I want to add two custom buttons to scroll the panel. When I set the Visible property of HorizontalScroll and VerticalScroll of the panel to false, It still
1
1196
by: Mike | last post by:
I have a gridview on my page that I put in an UpdatePanel. Now when I click on a row in my gridview, my selectIndex doesn't fire. I can no longer view my associated gridview for my selected row. What would cause this and how can I get it working again?
0
1879
by: mike | last post by:
Hi guys, I have a windows form and on load event I dynamically created a panel and dynamically create/add pictureboxes to panel and added a panel to the form with docking with fill. I am basically creating a thumb nails view for multiple pictures. Two question. 1I have set the panel's autoscroll to true, so I can actually see and scroll the form if needed. But I want to scroll to work when my mouse is on any where on the panel or...
6
3807
by: kru | last post by:
Hi All, I've been trying to get FindWindowEx to work to locate a button, and am stumped on the following: The structure of the external app is as so from Spy++: - "Main Window" - ThunderRT6FrmDC - "" - ThunderRT6Frame (outer panel) - "" - ThunderRT6Frame (inner panel)
0
8996
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8256
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6800
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.