Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

How to stop flickering?!!

 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I'm having a TextField in which date appears once a mouseclicked event occurs inside it. That is a Calendar shows up the moment I click inside the TextField. I'm using a semantic Calendar and the problem is that whenever it appears on the screen, or if I need to change the month, due to repainting or so, the data inside the calendar flickers a lot. How do I get rid of this problem?!!
Thanks
Meghna
 
Ranch Hand
Posts: 1012
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can use "double buffering" by creating the image "off-screen" first, and then copying it to the real screen.

of course, this does not have any animation to it... but i think you can get the idea. let me know if you need more detail.
[This message has been edited by Greg Harris (edited April 30, 2001).]
 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try overriding the update method to make a call to paint.
David
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like the problem could be within their calendar component itself. I would report it to Semantec or check their support to see if its a known issue...

------------------
Matthew Robinson co-author of "Swing" (1999, Manning Publications). Freely available at http://www.spindoczine.com/sbe
 
Meghna ks
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks all, for your responses. I was able to get rid of the flickering by setting the background color of the calendar component. The problem was that each time, the Calendar came on the screen, it would change to different colors and due to the repainting, there was a lot of flickering. I did try to override the paint and Update methods, but in vain. So, this was a last and simple try I gave and it worked.
Thanks again !!!
Meghna
 
It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic