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

mikshaw Wrote:
You could emulate no box by using FL_FLAT_BOX and set its color according to what its parent is.

Thanks for the tip. Unfortunately, what I was trying to achieve was to display a nice png picture to make up the frame of the clock (an oval clock frame).

PHP Code:
ww=180 --window width
=ww-20 -- group
img_back Fl_Shared_Image.get("clock.png")

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

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

  clock_back fltk:Fl_Box(3020gw-40,gw-40);

  clock=fltk:Fl_Clock(30,20,gw-40,gw-40,"a clock")


If I try "  clock:image(img_back);" then the image gets displayed below the clock rather than behind it.

Any tip on how to achieve this?

This post was last modified: 06-05-2007 10:41 PM by widged.

06-05-2007 10:39 PM
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-05-2007 10:39 PM

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

Forum Jump: