Finding a components ACTUAL LEFT&TOP..
Posted on 1999-12-13
I have a program in which I have a control bar, on which is a drop down tool button. When someone clicks the little down arrow it pops up my popup menu for people to select from. The first time someone clicks the button itself, it also needs to drop that popup button down. Which is easy enough;
The problem I am having is getting my popup menu to appear right below the control. I need to be able to find the correct x,y of the drop down tool button. Because it is on a control bar, which can be anywhere on the application, the drop down tool buttons top and left are 0. (it is the left top most control on the control bar).
How do I find the Top and Left of the drop down tool button relevant to the screen? Being that the 0,0 is the upper left-hand corner of the screen...
Hope I explained that well enough..