Print Page | Close Window

Get Recorditem Position in Report

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=8585
Printed Date: 10 November 2024 at 4:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Get Recorditem Position in Report
Posted By: Baldur
Subject: Get Recorditem Position in Report
Date Posted: 29 October 2007 at 6:50pm
Hello,
 
if i add a DropDown- or Expand-Button to a column-object i want t show my own "dropdown"-Panel from CommandBar-Popup.
 
How can i get the right Screen-Position of the clicked Cell ?
 
The Editwindow is not visible, because it's not in editmode, so the hwnd of EditControl is empty.



Replies:
Posted By: Baldur
Date Posted: 01 November 2007 at 9:28am
I found the solution allready by myself.
 
Dim xL As Long, xT As Long, xR As Long, xb As Long
Dim xPoint As POINTAPI
Button.Row.GetItemRect Button.Item, xL, xT, xR, xb
xPoint.X = xL
xPoint.Y = xb
ClientToScreen repFilter.hWnd, xPoint
CmdBar.ShowPopup TPM_RETURNCMD, xPoint.X * Screen.TwipsPerPixelX, xPoint.Y * Screen.TwipsPerPixelY



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