Create Icons..
Login to reply to this topic.
Thu, 2009-05-14 20:49
Joined: 2008-12-21
Forum posts: 55

Hi,
can I create Icons (images)

that will act as a button on the screen?

Like button of Play and Stop?

if so how?

And how to make the mobile joystick to act as a selector
and move from each button icon, and the center button of the mobile will act as a selection

How to do that?

Thanks..


Fri, 2009-05-15 09:23
Joined: 2008-09-02
Forum posts: 83
Fri, 2009-05-15 13:05
Joined: 2008-12-21
Forum posts: 55

Saw it...

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);

What I should add to the include?
How to define the action of each button I just added?

Sun, 2009-05-17 17:22
Joined: 2008-12-21
Forum posts: 55

Plz help me.

Also can u show me an example to it?

Thanks..

Mon, 2009-05-18 09:50
Joined: 2008-09-02
Forum posts: 83

In .h

CEikBitmapButton* iButton;

In .cpp
void CMyProjectAppView::ConstructL( const TRect& aRect ){
..
..
_LIT(KMbmFilePath,"\\Resource\\Apps\\MyAppMbm.mbm");
iButton = new (ELeave) CEikBitmapButton();
iButton->SetPictureFromFileL(KMbmFilePath, 0, 1, CEikCommandButtonBase::EFirst);
iButton->SetContainerWindowL(*this);
..
..
}

void CMyProgressNoteAppView::SizeChanged() {
  if(iButton)
    iButton1->SetExtent(TPoint(10,10),TSize(250,50));
}

and dont forget to update the ComponentControl() and CountComponentControl() after adding button to your container.
Hope this will help.

Mon, 2009-05-18 10:51
Joined: 2008-12-21
Forum posts: 55

and dont forget to update the ComponentControl() and CountComponentControl() after adding button to your container.

How to?
What U mean updae those things?

Thanks.

Mon, 2009-05-18 12:46
Joined: 2003-01-14
Forum posts: 2133

How to?
What U mean updae those things?

That's real basic Symbian UI stuff. If you don't know what is the purpose of those, start to take a look at that before doing more complex stuff.

Buy a Symbian Development book or look for Compound Control in the SDK doc.


Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Wed, 2009-05-20 21:11
Joined: 2008-12-21
Forum posts: 55

Also,

I need to work With Sending request to server and Getting data from server.

So in Which Carbide u recommend me to work with?

Thanks..


copyright 2003-2009 NewLC SARL