[Solved]Get the position and size of Floating Pane |
Post Reply |
Author | |
Jebo
Senior Member Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
Post Options
Thanks(0)
Posted: 05 September 2010 at 1:20pm |
Hello,
I need the position and size of a Floating Pane. BUT HOW do I get this? I was trying to catch it by GetWindowRect API. But the Result is WITHOUT the caption Height an Border-width of a floating pane? So please how can I get the right values OR the Border-width plus caption Height of a floeting pane??? |
|
Jebo
Senior Member Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
Post Options
Thanks(0)
|
ARGHHHH!!!! I have tried everything in the last many hours!
Also tried this Workaround: http://forum.codejock.com/forum_posts.asp?TID=17066 It seems it's not possible!!! CJ, WHY? PLEASE add a position/location property to next release! |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
It looks like you need to call the GetParent API twice - once on the Pane.Handle, and Once on the return value of GetParent(Pane.Handle) in order to get the top level window. So:
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
I guess the "correct" way would be to use the GetAncestor API instead:
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Jebo
Senior Member Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
Post Options
Thanks(0)
|
Hi jpbro,
You are the Hero! ... GetParent will work! Wow! Now I have so many hours of hard work behind me. What's interesting is that I tested also the GetParent API but made a mistake. Then I tried it not anymore! BIG THX!!! |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
Glad to help Jebo!
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
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 |