placing a background bitmap in UIQ 3
| Wed, 2005-10-05 16:00 | |
|
Ive been at this for a while now, Im looking to place a background bitmap on all my views. Ive found no help in the docs, and seem to have working code, that just doesnt draw the bitmap when i switch to the views that i am trying to place a background on. does anyone know of a example or link that will help me figure out what im doing wrong? Thanks in advance.
|
|






Forum posts: 672
In principle, just draw the bitmap in your view's Draw(), using CFbsBitmap and the graphics context.
Forum posts: 16
void CSMSGuardAboutView::ConstructL()
{
// Calls ConstructL that initialises the standard values.
// This should always be called in the concrete view implementations.
CQikViewBase::ConstructL();
RWsSession aWSession;
aWSession.Connect();
CWsBitmap* aboutBitmap = new CWsBitmap(aWSession);
aboutBitmap->Load(KMBMFileName, EMbmSmsguardAbout, ETrue);
CQikWsBitmapBackground* abackgroundBitmap = CQikWsBitmapBackground::NewL(aboutBitmap,0);
//something goes here, Draw()?, but im not sure how to use it, and what else i need other then the CWsBitmap
//the docs had something with args that i havnt used before
//virtual IMPORT_C void Draw(CWindowGc &aGc, const CCoeControl &aControl, const TRect &aRect) const;
}
**here is the mbm resource code
START BITMAP SMSGuardBitmaps.mbm
HEADER
TARGETPATH \Resource\Apps
SOURCEPATH ..\Images
SOURCE c24 About.bmp
SOURCE c24 Main.bmp
END
**here is the place I am activating the view (from the main view drop down menu)
case ESMSGuardInfoPrint6Cmd:
{
//About view
SaveThenDnlToL(TVwsViewId(KUidSMSGuardApp,KUidSMSGuardAboutView));
break;
}
Forum posts: 672
Forum posts: 91
---
Kevin Dixon
Symsource Ltd.
www.symsource.com
Forum posts: 16
Forum posts: 2