Page 1 of 1

Ambiguity in wedBrowserControl

Posted: 28 Feb 2013 17:49
by dominique f pannier
Hi,

I want to set the position of a webBrowserControl into a form. I think to use, in the show event :

Code: Select all

webBrowserControl_ctl:top :=30, webBrowserControl_ctl:left :=0,
But I get an ambiguity warning : top and left are properties of the inherited interface webBrowser and also domains if the inherited interface control.

I tried to solve it with :

Code: Select all

    resolve         top from webBrowser         left from webBrowser
in the implementation, but it's not the solution.
Is it possible to use the top property and if yes how, or does I have to use the window position predicates ? :?:

Posted: 1 Mar 2013 10:57
by Thomas Linder Puls
Unfortunately, the problem here seem to be in the language itself.

We will need some time to find the official solution

For you it seems that the you will need to update PFC to create a workaround. I belive the limplest update is to rename the two properties on webBrowser interface (they are not used anywhere).

For example like this:

Code: Select all

properties     leftEdge : integer.     topEdge : integer.     % @short Sets or gets the coordinate of the left/top edge of the object.     % See IWebBrowser2::Left and IWebBrowser2::Top in MSDN.     % @end
You will of course have to make similar changes in the corresponding implementation.

Posted: 4 Jun 2013 7:52
by Thomas Linder Puls
This is fixed in Build 7402. IDE: Web -> Check for updates...