Murga-Projects Forums
Fl_Scroll example ... - Printable Version

+- Murga-Projects Forums (http://www.murga-projects.com/forum)
+-- Forum: Project Forums (/forumdisplay.php?fid=1)
+--- Forum: MurgaLua - General (/forumdisplay.php?fid=2)
+--- Thread: Fl_Scroll example ... (/showthread.php?tid=134)


Fl_Scroll example ... - JohnMurga - 07-25-2007 02:37 AM

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()




RE: Fl_Scroll example ... - mikshaw - 07-25-2007 05:48 AM

Thank you! =o)

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