S60

Making TimeLine Control

Update by Artem: With the permission of the author I attached the compilable example to this article. Feel free to download and try

The timeline in puzzle games, lifetime in fighting games, that is a very normal element.
The following article will tell you how to make a timeline control step by step in S60.

Author Website: http://www.symbianer.com


Frist, you need to refer to the articles
I.Symbian OS: Creating Custom Controls

Streaming Example

Compilable code example of using the Symbian Streaming API. Demonstrates how to store the whole object with the boolean, integer and descriptor data fields to and from stream.


// Let the data format be:
//
//
// Note, that when dealing with packaged data, we have to be careful about
// the concrete size in bytes. Descriptors will be saved using Symbian
// default format for descriptors. For TBool we use the default conversion
// to TInt
void CEmployee::ExternalizeL( RWriteStream &aStream ) const
{
// Write the used protocol version first
aStream << KEmployeeProtocolVersion;
aStream << static_cast ( iAge );
aStream << static_cast ( iFired );
aStream << static_cast ( iName->Length() );
aStream << *iName;
aStream << static_cast ( iSurname->Length() );
aStream << *iSurname;
}

PyS60 tutorials

Python for Nokia S60 platform becomes more and more mature. I guess you might start considering it as a tool for commercial applications already.

Check out the set of tutorials on Python for S60 by Jurgen Scheible, yet another Forum Nokia Champion. There are examples on UI, camera, networking, graphics, etc. And also on how to make the stand-alone S60 application in Python.

And by the way, if you know any commercial S60 application written in Python, please, post a link to the comments. I wonder if PyS60 is already a tool for earning money.

Syndicate content