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..
Have a look at http://wiki.forum.nokia.com/index.php/How_to_create_Button_with_Picture
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?
Plz help me.
Also can u show me an example to it?
In .h
CEikBitmapButton* iButton;
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.
How to? What U mean updae those things?
Thanks.
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
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?
Forum posts: 83
Have a look at
http://wiki.forum.nokia.com/index.php/How_to_create_Button_with_Picture
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?
Forum posts: 55
Plz help me.
Also can u show me an example to it?
Thanks..
Forum posts: 83
In .h
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.
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.
Forum posts: 2133
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
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..