<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - Nokia S60 - Comments</title>
 <link>http://www.newlc.com/forums/nokia-series-60</link>
 <description>Comments for &quot;Nokia S60&quot;</description>
 <language>en</language>
<item>
 <title>Re: How to let custom CBA button to display a custom  menupane ?</title>
 <link>http://www.newlc.com/forum/how-let-custom-cba-button-display-a-custom-menupane#comment-48285</link>
 <description>&lt;p&gt;Finally , i found the solution for my question.&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;RESOURCE CBA R_CBA_ESC_OPOTIONS&lt;br /&gt;{&lt;br /&gt;buttons=&lt;br /&gt;{&lt;br /&gt;CBA_BUTTON&lt;br /&gt;{&lt;br /&gt;id = EBACK;&lt;br /&gt;txt = R_QTN_ESC;&lt;br /&gt;},&lt;br /&gt;CBA_BUTTON&lt;br /&gt;{&lt;br /&gt;id =EOPTIONS&amp;nbsp;&amp;nbsp; ; //command&lt;br /&gt;txt = R_QTN_LOGIN;&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//in the constructor of form &lt;br /&gt;CAknForm::ConstructL(R_MY_MENUBAR);&lt;br /&gt;&lt;br /&gt;//handle the command of cba and display the menubar&lt;br /&gt;TBool InputForm::OkToExitL( TInt aButtonId )&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //..&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case EOPTIONS://in this dialog&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CAknForm::DisplayMenuL();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return EFalse;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// handle the menubar command in the menupane&lt;br /&gt;void InputForm::ProcessCommandL( TInt aCommandId )&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch(aCommandId)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //...&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CAknForm::ProcessCommandL( aCommandId );&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//if need to hide the default form menu&lt;br /&gt;void InputForm::DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane )&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CAknForm::DynInitMenuPaneL( aResourceId, aMenuPane );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (aResourceId == R_AVKON_FORM_MENUPANE)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Default behavior handled in AknForm is suitable for this&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // form&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // If not, comment out and modify the following lines&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TBool editOptionDimmed = IsEditable();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aMenuPane-&amp;gt;SetItemDimmed(EAknFormCmdEdit, editOptionDimmed);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aMenuPane-&amp;gt;SetItemDimmed(EAknFormCmdLabel, ETrue);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aMenuPane-&amp;gt;SetItemDimmed(EAknFormCmdAdd, ETrue);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aMenuPane-&amp;gt;SetItemDimmed(EAknFormCmdDelete, ETrue);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aMenuPane-&amp;gt;SetItemDimmed(EAknFormCmdSave, ETrue);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Wed, 27 Aug 2008 04:06:47 +0200</pubDate>
 <dc:creator>Eric.Pen</dc:creator>
 <guid isPermaLink="false">comment 48285 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How to create transparent custom control </title>
 <link>http://www.newlc.com/forum/how-create-transparent-custom-control#comment-48239</link>
 <description>&lt;p&gt;&lt;br /&gt;
Thanks alh, you are right I have set the brush to ESolidBrush and now I have change to ENullBrush its working fine.&lt;/p&gt;

&lt;p&gt; Thanks &lt;br /&gt;
 Nikh&lt;br /&gt;
 &lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Mon, 25 Aug 2008 07:21:00 +0200</pubDate>
 <dc:creator>nikh</dc:creator>
 <guid isPermaLink="false">comment 48239 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Turning off new S60 browser preview window for CBrCtlInterfa</title>
 <link>http://www.newlc.com/forum/turning-new-s60-browser-preview-window-cbrctlinterface-embedded-browser#comment-48198</link>
 <description>&lt;p&gt;Looking at the browser application on the N95 8GB I see that this feature is called &quot;MiniMap&quot;. There is an option in the settings to turn it on and off. So it must be possible to do this programatically.... ???  &lt;img src=&quot;/sites/all/modules/smileys/packs/example/puzzled.png&quot; title=&quot;Puzzled&quot; alt=&quot;Puzzled&quot; /&gt; &lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Thu, 21 Aug 2008 19:31:20 +0200</pubDate>
 <dc:creator>brian.egan</dc:creator>
 <guid isPermaLink="false">comment 48198 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How to create transparent custom control </title>
 <link>http://www.newlc.com/forum/how-create-transparent-custom-control#comment-48181</link>
 <description>&lt;p&gt;For transparent blits to work, you have to set ENullBrush, or it will fill in the brush color in the &quot;transparent&quot; areas.&lt;br /&gt;
Maybe that is your problem.&lt;/p&gt;

&lt;p&gt;Also, if your component is &quot;window owning&quot;, and you don&#039;t draw the whole window area, the areas you don&#039;t draw will be cleared to the clear color.&lt;/p&gt;

&lt;p&gt;Its not possible to get window owning components transparent, since window transparency is not enabled.&lt;/p&gt;

&lt;p&gt;If that is your case, you will have to make your component non-window owning and a child of the parent control.&lt;/p&gt;

&lt;p&gt;Only limitation with that is that it can&#039;t extend outside of the parent controls area.&lt;/p&gt;</description>
 <pubDate>Thu, 21 Aug 2008 14:33:02 +0200</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 48181 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How to create transparent custom control </title>
 <link>http://www.newlc.com/forum/how-create-transparent-custom-control#comment-48174</link>
 <description>&lt;p&gt;Afaik controls don&#039;t have &quot;borders&quot; as such so I bet you set the dimensions wrongly (don&#039;t you call &lt;code&gt;TRect::Shrink()&lt;/code&gt; somewhere?). Can you show a screenshot?&lt;/p&gt;</description>
 <pubDate>Thu, 21 Aug 2008 09:59:15 +0200</pubDate>
 <dc:creator>lvsti</dc:creator>
 <guid isPermaLink="false">comment 48174 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How to create transparent custom control </title>
 <link>http://www.newlc.com/forum/how-create-transparent-custom-control#comment-48172</link>
 <description>&lt;p&gt; &lt;br /&gt;
 Yes , I have added  this function to my custom button class but still its surrounding rectangle is coming white , do I need to change any thing&lt;br /&gt;
 in parent control of custom button in which I am drawing the background image, or may be any thing to change in view.&lt;/p&gt;

&lt;p&gt; Thanks&lt;br /&gt;
 Nikh&lt;/p&gt;</description>
 <pubDate>Thu, 21 Aug 2008 09:20:40 +0200</pubDate>
 <dc:creator>nikh</dc:creator>
 <guid isPermaLink="false">comment 48172 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How to create transparent custom control </title>
 <link>http://www.newlc.com/forum/how-create-transparent-custom-control#comment-48171</link>
 <description>&lt;p&gt;Hmm, what if you add this to the class, too?&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;TTypeUid::Ptr CFooContainer::MopSupplyObject( TTypeUid aId )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( aId.iUid == MAknsControlContext::ETypeId &amp;amp;&amp;amp; iBackground )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return MAknsControlContext::SupplyMopObject( aId, iBackground );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return CCoeControl::MopSupplyObject( aId );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;</description>
 <pubDate>Thu, 21 Aug 2008 08:44:23 +0200</pubDate>
 <dc:creator>lvsti</dc:creator>
 <guid isPermaLink="false">comment 48171 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How to create transparent custom control </title>
 <link>http://www.newlc.com/forum/how-create-transparent-custom-control#comment-48170</link>
 <description>&lt;p&gt; Hi Ivsti,&lt;/p&gt;

&lt;p&gt; Thanks for your reply,&lt;/p&gt;

&lt;p&gt; I am trying this but the surrounding rectangle is coming white.&lt;/p&gt;

&lt;p&gt; Thanks&lt;br /&gt;
 Nikh&lt;/p&gt;</description>
 <pubDate>Thu, 21 Aug 2008 08:16:13 +0200</pubDate>
 <dc:creator>nikh</dc:creator>
 <guid isPermaLink="false">comment 48170 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How to create transparent custom control </title>
 <link>http://www.newlc.com/forum/how-create-transparent-custom-control#comment-48169</link>
 <description>&lt;p&gt;Try this:&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;void CFooContainer::ConstructL( const TRect&amp;amp; aRect )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; iBackground = CAknsBasicBackgroundControlContext::NewL( &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KAknsIIDQsnBgAreaMain, aRect, EFalse );&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;void CFooContainer::Draw( const TRect&amp;amp; aRect ) const&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CWindowGc&amp;amp; gc = SystemGc();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( iBackground )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAknsSkinInstance* skin = AknsUtils::SkinInstance();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AknsDrawUtils::Background( skin, iBackground, this, gc, aRect );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;</description>
 <pubDate>Thu, 21 Aug 2008 07:53:10 +0200</pubDate>
 <dc:creator>lvsti</dc:creator>
 <guid isPermaLink="false">comment 48169 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How can we put image in Left and right key options..</title>
 <link>http://www.newlc.com/forum/how-can-we-put-image-left-and-right-soft-key-options-resource-file-show-selected-options#comment-48168</link>
 <description>&lt;p&gt; Thanks, Eric and Khalid for your replies.&lt;/p&gt;

&lt;p&gt; Nikh&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Thu, 21 Aug 2008 07:48:52 +0200</pubDate>
 <dc:creator>nikh</dc:creator>
 <guid isPermaLink="false">comment 48168 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How can we put image in Left and right soft key options.....</title>
 <link>http://www.newlc.com/forum/how-can-we-put-image-left-and-right-soft-key-options-resource-file-show-selected-options#comment-48162</link>
 <description>&lt;p&gt;But Hopefully,&lt;/p&gt;

&lt;p&gt;you can do this only on FP2 s60-devices.&lt;br /&gt;
currently, only six s60 3rd Edition Fp2 devices are in market.&lt;br /&gt;
&lt;a href=&quot;http://www.forum.nokia.com/devices/matrix_s60_3ed_fp2_1.html&quot;&gt;http://www.forum.nokia.com/devices/matrix_s60_3ed_fp2_1.html&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Thu, 21 Aug 2008 06:36:36 +0200</pubDate>
 <dc:creator>er.khalid</dc:creator>
 <guid isPermaLink="false">comment 48162 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How can we put image in Left and right soft key options....</title>
 <link>http://www.newlc.com/forum/how-can-we-put-image-left-and-right-soft-key-options-resource-file-show-selected-options#comment-48161</link>
 <description>&lt;p&gt;Hi nikh,&lt;/p&gt;

&lt;p&gt;I have not tried but i read it. &lt;br /&gt;
we can do that checkout this &lt;br /&gt;
&lt;a href=&quot;http://wiki.forum.nokia.com/index.php/TSS000880_-_Setting_an_image_for_a_softkey&quot;&gt;http://wiki.forum.nokia.com/index.php/TSS000880_-_Setting_an_image_for_a_softkey&lt;/a&gt; &lt;/p&gt;</description>
 <pubDate>Thu, 21 Aug 2008 06:32:30 +0200</pubDate>
 <dc:creator>er.khalid</dc:creator>
 <guid isPermaLink="false">comment 48161 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How can we put image in Left and right soft</title>
 <link>http://www.newlc.com/forum/how-can-we-put-image-left-and-right-soft-key-options-resource-file-show-selected-options#comment-48159</link>
 <description>&lt;p&gt;I don&#039;t think you can put a bitmap into a CBA on S60. Then you will have to do your own custom CBA.&lt;/p&gt;</description>
 <pubDate>Thu, 21 Aug 2008 02:34:15 +0200</pubDate>
 <dc:creator>eric</dc:creator>
 <guid isPermaLink="false">comment 48159 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How to load my own icon to CAknGlobalNote</title>
 <link>http://www.newlc.com/forum/how-load-my-own-icon-caknglobalnote#comment-48154</link>
 <description>&lt;p&gt;Hi, did you find any solution for this problem?&lt;/p&gt;</description>
 <pubDate>Wed, 20 Aug 2008 17:00:33 +0200</pubDate>
 <dc:creator>MrTJ</dc:creator>
 <guid isPermaLink="false">comment 48154 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How to create transparent custom control </title>
 <link>http://www.newlc.com/forum/how-create-transparent-custom-control#comment-48150</link>
 <description>&lt;p&gt;To create custom button you can see this link.&lt;br /&gt;
&lt;a href=&quot;http://wiki.forum.nokia.com/index.php/Custom_button&quot;&gt;http://wiki.forum.nokia.com/index.php/Custom_button&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Wed, 20 Aug 2008 14:51:34 +0200</pubDate>
 <dc:creator>RB_Sahu</dc:creator>
 <guid isPermaLink="false">comment 48150 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
