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
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
wh
=200
gw
=ww-20 -- group
gh
=wh-50
fltk
.fl_register_images()
img_back Fl_Shared_Image.get("clock.png")

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

group fltk:Fl_Group(10,10,gw,gh)
group:box(fltk.FL_BORDER_BOX)
group:color(79)

  clock_back fltk:Fl_Box(3020gw-40,gw-40);
  clock_back:box(fltk.FL_FLAT_BOX);
  clock_back:image(img_back);
  clock_back:color(79);

  clock=fltk:Fl_Clock(30,20,gw-40,gw-40,"a clock")
  clock:box(fltk.FL_FLAT_BOX)
 
fltk:Fl_End()

w:show()
Fl:run() 


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: