Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - how to locating the float pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to locating the float pane

 Post Reply Post Reply
Author
Message
jasonjiang9999 View Drop Down
Newbie
Newbie
Avatar

Joined: 29 March 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote jasonjiang9999 Quote  Post ReplyReply Direct Link To This Post Topic: how to locating the float pane
    Posted: 14 April 2009 at 10:09pm
I have several float panes in a the mdi window, how can I know the location of a float pane?
 
I only can get the height and width. how to get the left and top value of a float pane?
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2009 at 8:12am
Hi,
 
There's isn't method in DockingPanes but you could use API GetWindowRect
 
Declaration:
 
Private Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long
Private Type RECT
    Left As Long
    Top As Long
    Right As Long
    Bottom As Long
End Type
  
 
Get position of Pane:
 
    Dim Rec As RECT
    GetWindowRect DockingPane1.FindPane(1).Handle, Rec
 
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
jasonjiang9999 View Drop Down
Newbie
Newbie
Avatar

Joined: 29 March 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote jasonjiang9999 Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2009 at 8:45am

thank you very much!!! that's very helpful

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.