You are not logged in.

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.

fallon416

Beginner

  • "fallon416" started this thread

Posts: 28

Date of registration: Mar 26th 2010

  • Send private message

1

Saturday, April 17th 2010, 11:33am

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

fallon416

Beginner

  • "fallon416" started this thread

Posts: 28

Date of registration: Mar 26th 2010

  • Send private message

2

Saturday, April 17th 2010, 7:00pm

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

Rate this thread
WoltLab Burning Board