Print Page | Close Window

how to locating the float pane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=14019
Printed Date: 15 November 2024 at 3:03pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to locating the float pane
Posted By: jasonjiang9999
Subject: how to locating the float pane
Date 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?



Replies:
Posted By: Aaron
Date 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....


Posted By: jasonjiang9999
Date Posted: 15 April 2009 at 8:45am

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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net