Dear visitor, welcome to Jabaco - Community.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
how to address pane of splitpane
Is there a way to address the pane of a split pane?
If I have a control in the left pane and want it to move to a different location within the pane how would I address it? Lets say I have a graphic located at the top of the left pane in a split pane and I want it at the bottom for a little while and then move to another location within the pane.
In VB.net I would just say MyGraphic.Top = SplitPanel1.Panel1.Top or MyGraphic.Left = SplitPanel1.Panel1.Left
Neil
The only way to do this is to get the distance to where the splitter bar is and use the left of the split container to get the distance.
Here is an example
Button1.Width = SplitPane1.Left + SplitPane1.DividerLocation - 11
Button1.Top = SplitPane1.Top + SplitPane1.Height - Button5.Height - 2
Neil