Murga-Projects Forums

Full Version: Fl_Scroll example ...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just a silly example ...

Code:
window = fltk:Fl_Window(325, 90, "My first little app")

button1=fltk:Fl_Button(5, 5, 110, 80, "My First Button")

group = fltk:Fl_Scroll(120, 5, 200, 80, "")
group:box(fltk.FL_THIN_UP_BOX)

nothing=fltk:Fl_Box(120, 5, 180, 50, "Hello\nScroll down\nOr re-size ;-)")
button2=fltk:Fl_Button(120, 65, 180, 35, "Load a picture")
button3=fltk:Fl_Button(120, 105, 180, 35, "Quittin Time")

group:add(nothing)
group:add(button2)
group:add(button3)

window:resizable(group)

window:show()
Fl:run()

Thank you! =o)

I guess my problem came from assuming widgets defined within the group would automatically be added to it.
Reference URL's