![]() |
Get Recorditem Position in Report |
Post Reply
|
| Author | |
Baldur
Senior Member
Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
Quote Reply
Topic: Get Recorditem Position in ReportPosted: 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.
|
|
![]() |
|
Baldur
Senior Member
Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |