Determine the location of a Windows taskbar button or thumbbar button? - winapi

I have added some ThumbBar buttons via ITaskbarList3. Now when those are clicked I'd like to open the action / dialog next to the taskbar button. How can I find the screen coordinates of the taskbar button?
Thanks.

Use UIAutomation. Find your way to the bottom of the tree and retrieve UIA_BoundingRectanglePropertyId for each child element.
Powershells ShortcutGuide does this, you can look at their code if you need additional help...

Related

OSX Accessibility - detecting click on window title bar

I'm looking for a way how to detect click on NSWindow title bar using Accessibility.
I've implemented observer to get clicks, I'm able to get clicked window, it's origin, size or role + subrole. But is there any way how to be sure I clicked on the title bar, the one used to drag windows?
Cheers
In case anyone is interested I found solution good enough for me.
I check if user clicked within 40 pixels from top of the window and if the role of clicked element is one of the following: AXToolbar, AXSplitGroup, AXGroup, AXScrollArea, AXWindow

How to implement this ejecting and withdrawing portion of a window like a drawer?

How to implement following effect with Cocoa:
<->
User can eject and withdraw right portion of window with a button.
Update: How to draw the vertical line in the tool bar?
This is actually part of the window. When you click the button, the window and view just resize into their appropriate positions.
Check out NSViewAnimation.

How do I build a toolbar in my title bar?

I have to implement a custom toolbar for my application, where a button will be placed on the side of exit, maximize and minimize buttons.
I tried to work with the toolbar element on XCode, but it always put elements below these buttons and not on the side.
App Store application implement this feature, like you can see in this image.
One solution is to start with this open source code (https://github.com/indragiek/INAppStoreWindow) to give you the correct title bar style, and then position buttons in the titlebar.

Windows Phone 7 - Move Content above Keyboard

I have page containing 4 textboxes and a button. The content is within ScrollViewer. When user goes to the last textbox, the button below it is 50% visible. So, to click it, user has to click on non-focusable area to hide the keyboard and then click on button.
Is there any way to move the ScrollViewer up? Or move the content up so that the button below focused textbox can be seen 100%?
The solution is to remove the buttons on the page and replace them with buttons in the ApplicationBar as this is always viewable below the SIP.
If this is not a solution you can implement (from a design view-point there is no reason to not do this but sometimes these decisions come from elsewhere) then you could look to use the ScrollToVerticalOffset method to try and bring the desired item into view.
I would suggest you read Alex Sorokoletov's article on how to transform the view. It might be of help for your problem.

XUL: How to edit popup's position

i'm developing a simple Firefox Addon: a button with popup shown with a classical mouse over event.
Does someone know if is possible set the position of the popup ?
Ex: top left instead bottom right
Thanks
Did you take a look at this?
Also take a look at positioning popups. It also has an example.

Resources