Active Pane |
Post Reply |
Author | |
shaheen
Newbie Joined: 05 January 2004 Location: United States Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 05 January 2004 at 2:40pm |
Is there a way to get the properties of the Active Pane. On moving Panes to different locations, I need the left,top so I can place controls to the new location the pane has moved to. I am using VB. Thanks |
|
robs
Groupie Joined: 09 November 2003 Status: Offline Points: 84 |
Post Options
Thanks(0)
|
shaheen, You don't need the properties of the pane to do this. You just tell the pane which form to hook to with the .Handle property and the pane takes care of the rest. So, the only thing you need to worry about is placing controls on your form like you normaly would. No matter where a pane is moved to, the left and top properties of the form never change. Most of the time these properties will be 0,0. Good Luck.
|
|
shaheen
Newbie Joined: 05 January 2004 Location: United States Status: Offline Points: 6 |
Post Options
Thanks(0)
|
I am using Panes to organize Frames on the same form. My third party control moves dynamically based on the text box that has focus.I get the left,top of the frame to set the focus of the control. If I move the pane/frame, I need to get the new location so the control can move accordingly.Is this possible I used GetClientRect but it does not give me the right coord Thanks |
|
robs
Groupie Joined: 09 November 2003 Status: Offline Points: 84 |
Post Options
Thanks(0)
|
shaheen, Sorry I couldn't help you. I don't know if these properties are available or not. It still seems to me though, that the left and top properties you need would be relevant to the container (form) and it's controls rather than the screen. Are you using a form for your container (the .Handle property)? good luck
|
|
shaheen
Newbie Joined: 05 January 2004 Location: United States Status: Offline Points: 6 |
Post Options
Thanks(0)
|
I am using the Frame.Handle as my container. What I need is the left , top of the container and its new values when the container is moved
Thanks for your help |
|
robs
Groupie Joined: 09 November 2003 Status: Offline Points: 84 |
Post Options
Thanks(0)
|
shaheen, 1. When I use a frame for my container, passing Frame.Handle, my left and top property never change. They are always 0,0 unless the pane is docked, then 0,300 (300 units for the titlebar). 2. If Oleg or someone from Codejock doesn't have a better answer for you, you could try subclassing. Take a look at http://www.vb-helper.com/tutorial_subclassing.html for starters. I don't know what your skill level is, but I would recommend saving your work often when subclassing. Good luck!
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |