×
Namespaces

Variants
Actions

How to create Button with Picture

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: User:Kanu123 (29 Jun 2007)
Last edited: hamishwillee (03 Feb 2012)
bitmapFile.Copy(appPath);
// The MBM file
bitmapFile.Append(_L("EXAMPLE.MBM"));
// Compress heap button
Button = new (ELeave) CEikBitmapButton();
// Pass the MBM file
Button->SetPictureFromFileL(bitmapFile, 0, 1, CEikCommandButtonBase::EFirst);
Button->SetContainerWindowL(*this);
Button->SetObserver(this);


NOTE: CEikBitmapButton is removed in 2nd Edition FP2.

This page was last modified on 3 February 2012, at 07:06.
56 page views in the last 30 days.
×