News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Different redraw behaviors with different box types
Author Message
widged
Junior Member
**


Posts: 35
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
Different redraw behaviors with different box types

Take this (the clock test code provided by Mikshaw)

Code:
-- Demonstration of clock widget
-- Code by mikshaw (http://damnsmalllinux.org/cgi-bin/forums/ikonboard.cgi)

ww=180 --window width
wh=200 --window height

w=fltk:Fl_Window(ww,wh,"murgaLua Clock Demo")

clock=fltk:Fl_Clock(5,5,ww-10,ww-10,"a clock")
clock:box(fltk.FL_DOWN_BOX)

w:show()
Fl:run()


Works as expected.

Now change the box type to one that has no colored background, for instance, NO_BOX

Code:
clock:box(fltk.FL_NO_BOX)


The clock is updated, but the traces of the prior rendering remains visible on the screen. Normal behavior?

This post was last modified: 06-03-2007 02:33 AM by widged.

06-03-2007 02:22 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Different redraw behaviors with different box types - widged - 06-03-2007 02:22 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: