×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    13

    Symbian native components under the hood and Custom controls

    I am amazed at how well the native Symbian components are implemented. One of them is CAknSlider. CAknSlider is a control that has a slider that users can use to slide it along a bar whose orientation can be vertical or horizontal.

    Now when you slide the slider the sliding is very smooth and does not flicker. But if for some reason I were to implement a custom slider control I would not get it as neat as CAknSlider.

    So my question is how can I figure out how CAknSlider is implemented under the hood. There seems to be no straightforward way.

    Also are there any documentation online that documents the best practices to follow when creating custom controls.

    Please help

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: Symbian native components under the hood and Custom controls

    Surely they do a good job thats why they are in business :-) lolz just kidding the CAknSlider would be a Nokia implementation at the S60/40 level using the Symbian API's, I dont think you can see the internal details of the implementation.

    But as for your own custom control you can start with the wiki link:-

    http://wiki.forum.nokia.com/index.ph...Custom_control

    There is also a doc by Symbian which details it I am unable to trace it right now.

    For the flickering that you are seeing you should explore the usage of double bufferin and other optimised rendering techniques. Another thing to consider would be to invalidate only the portion of the screen that has changed and not the entire rect.
    Cheers,
    Mayank

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×