×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    disable automatic calling of paint

    I have one application based on canvas. Application works fine on n96 and emulator but there is some issue in 6300. When user will go to command and then come back some how pain() invokes automatically. Is there any way to cancell all that automatic invokation of paint() ?

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: disable automatic calling of paint

    Quote Originally Posted by honest_success View Post
    I have one application based on canvas. Application works fine on n96 and emulator but there is some issue in 6300. When user will go to command and then come back some how pain() invokes automatically. Is there any way to cancell all that automatic invokation of paint() ?
    Hey,
    That means you would be looking some flickering ...correct.

    Make sure to stop the thread,
    make the previous thread as null and hence the paint/repaint.This problem will be resolved.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: disable automatic calling of paint

    Quote Originally Posted by raj_J2ME View Post
    Hey,
    That means you would be looking some flickering ...correct.

    Make sure to stop the thread,
    make the previous thread as null and hence the paint/repaint.This problem will be resolved.
    Do you mean that at the end of paint()(Which will be invoked manually) i will have to do access the current thread by Thread.currentThread() but how can we stop it ?


    -Kartik Trived

  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: disable automatic calling of paint

    You can't stop paint() being called by the platform. That's what paint() is for. If the platform didn't call it, the screen would be blank.

    Why does it cause a problem?

  5. #5
    Regular Contributor
    Join Date
    Sep 2007
    Location
    Thirunelveli
    Posts
    115

    Re: disable automatic calling of paint

    Hi,
    You are using highlevel command right. Instead of that use you own command implementation ie. in LSK and RSK you draw your command and control using key press. in that way you can control your paint call.
    This means if you are using canvas alone you have some control on paint but switching between highlevel UI and canvas will definitely call paint when setting setcurrent.

  6. #6
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: disable automatic calling of paint

    Hi,
    What I was saying is that from the current displayable say DISP1,while you are going back by clicking the command say DISP2,is there any thread running in the DISP1.
    If yes then you can just make the thread as null,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. Any way to disable automatic landscape mode for app?
    By DeathBaba in forum Symbian User Interface
    Replies: 4
    Last Post: 2009-12-30, 09:43
  2. How to disable automatic screen rotation?
    By mstream in forum Symbian User Interface
    Replies: 4
    Last Post: 2009-01-12, 04:14
  3. I hate automatic {} align->how to disable it?
    By n3XusSLO in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2008-08-30, 20:16
  4. N90, disable automatic camera mode
    By orlowjb3 in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2005-12-08, 20:30
  5. N90 how to disable automatic camera mode
    By orlowjb3 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2005-09-27, 13:57

Posting Permissions

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