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
Junior Member

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

widged Wrote:
Any tip on how to achieve this?

Well, you could use wait rather than run, so to get some control on your redraw.

Great suggestion!

ww=180 --window dims
gw=ww-20 -- group dims
img_back = Fl_Shared_Image.get("clock.png")

function clock_callback()
  local tCount = 1
    out:value(Fl:event()) -- displays the events as they happen on screen
    if (Fl:event() == 7) then tCount = 99999999 end
    tCount = tCount + 1
  until tCount >= 500 -- avoided infinity during testing.

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

group = fltk:Fl_Group(10,10,gw,gh)

  clock_back = fltk:Fl_Box(30, 20, gw-40,gw-40);

  clock=fltk:Fl_Clock(31,17,gw-40,gw-40,"a clock")




And the result is:

I borrowed the picture for the back of the clock from this Industrial Skin at

This post was last modified: 06-06-2007 01:38 AM by widged.

06-06-2007 01:32 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
RE: Different redraw behaviors with different box types - widged - 06-06-2007 01:32 AM

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

Forum Jump: