Quantcast
Channel: SCN: Message List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 7329

Absolute position of a control

$
0
0

Hello community,

 

I need to find the absolute position (x,y) of a control (eg: column )

I'm able to get the parent datawindow position by using:

 

Function boolean GetWindowRect( ulong hWnd, REF st_rectangle lpRect ) Library "user32.dll"

lb_rc = invo_super_external_functions.GetWindowRect( Handle(i_parentdw), lst_rectangle )

 

But I'll get the coordinates of the datawindow , I was not able to get the column itself ...

 

The goal is to use the result in a dropdown replacement window which needs to be properly placed in any case (eg: datawindow with groups and summary sections)

 

btw, a nice to have feature is the ability to recognize a multimonitor environment ...

 

Thanks in advance,

Nuno Madeira


Viewing all articles
Browse latest Browse all 7329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>