Positioning windows is hard.
I've got a borderless, no-resize window that contains a browser. I'm using it to create custom pop-out menus. I click on a button, and a dynamic list of values appears in the browser. The browser resizes to the contents, and I can click on the options to select a choice from the dropdown.
Unfortunately, there's no good way to dynamically detect where on the user's screen the button is, so I have to work it out for myself manually using a series of winget callbacks that traverse through the hierarchy in order to work out where to place the custom dropdown menu.
Being able to get the screen-pos of an element immediately would be a much better, cleaner solution.
ID:2008302
Dec 30 2015, 5:07 am
|
|||||||
| |||||||