Ambiguity in wedBrowserControl

Discussions related to Visual Prolog
dominique f pannier
VIP Member
Posts: 98
Joined: 23 Sep 2002 23:01

Ambiguity in wedBrowserControl

Unread post by dominique f pannier » 28 Feb 2013 17:49

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 ? :?:
Regards
Dominique Pannier

User avatar
Thomas Linder Puls
VIP Member
Posts: 1622
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 1 Mar 2013 10:57

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.
Regards Thomas Linder Puls
PDC

User avatar
Thomas Linder Puls
VIP Member
Posts: 1622
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 4 Jun 2013 7:52

This is fixed in Build 7402. IDE: Web -> Check for updates...
Regards Thomas Linder Puls
PDC

Post Reply