gcarlson
15 years agoNew Contributor
Cannot see Powerbuilder Toolbar buttons
Hi,
We are evaluating TC (v8) for our application built in Powerbuilder (v11.5.1) - and so far it's going very well - using the MSAA API to 'see' the non-standard PB objects.
However we are now stuck with automating Toolbar button clicks - as there doesn't seem to be any way to directly reference the individual buttons on the toolbars. The recorder will record x-y position Clicks - but this is not great as the structure of the toolbars can change at runtime depending on user permissions, etc.
The toolbar itself shows up in the Object Browser as Window("FNFIXEDBAR115","",1) - I'm pretty sure that it's a custom class specific to PB - and unfortunately doesn't have any MSAA properties.
The recorder records for a button click: Call Aliases.PB115.wndFNWND3115.FNFIXEDBAR115.Click(124, 11)
Just hoping that someone may have been able to solve this problem.
Unfortunately it's a show stopper as the corresponding menu item for each toolbar button is not always visible and so cannot be used in place of the toolbar.
cheers,
Grant.
We are evaluating TC (v8) for our application built in Powerbuilder (v11.5.1) - and so far it's going very well - using the MSAA API to 'see' the non-standard PB objects.
However we are now stuck with automating Toolbar button clicks - as there doesn't seem to be any way to directly reference the individual buttons on the toolbars. The recorder will record x-y position Clicks - but this is not great as the structure of the toolbars can change at runtime depending on user permissions, etc.
The toolbar itself shows up in the Object Browser as Window("FNFIXEDBAR115","",1) - I'm pretty sure that it's a custom class specific to PB - and unfortunately doesn't have any MSAA properties.
The recorder records for a button click: Call Aliases.PB115.wndFNWND3115.FNFIXEDBAR115.Click(124, 11)
Just hoping that someone may have been able to solve this problem.
Unfortunately it's a show stopper as the corresponding menu item for each toolbar button is not always visible and so cannot be used in place of the toolbar.
cheers,
Grant.