Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:Change in creation of BrowserControl instance for S60 3rd Edition (initial release) and FP1 (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

When constructing a Browser Control instance, there is a change in the parameters passed to CreateBrowserControlL() between S60 3rd Edition and S60 3rd Edition, Feature Pack 1 devices.

Article Metadata
Compatibility
Platform(s): S60 3rd Edition
S60 3rd Edition, Feature Pack 1
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Article
Created: User:Technical writer 1 (30 May 2008)
Last edited: hamishwillee (18 Jun 2012)

Description

The second parameter passed to CreateBrowserControlL(), aRect is interpreted differently in these two platform releases:

  • In S60 3rd Edition devices aRect is related to view.
  • In S60 3rd Edition, Feature Pack 1 devices aRect is related to the container owning the browser control.

Solution

The value of aRect should be set as follows:

  TRect brCtlRect(Position(), Size());   // in 3rd Ed devices
TRect brCtlRect(TPoint(0, 0), Size()); // in 3rd Ed, FP1 devices
 
CBrCtlInterface* iBrCtlInterface = CreateBrowserControlL( this, brCtlRect, aBrCtlCapabilities );
This page was last modified on 18 June 2012, at 06:13.
447 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×