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 
Fl_Scroll example ...
Author Message
JohnMurga
Administrator
*******


Posts: 381
Group: Administrators
Joined: Apr 2007
Status: Offline
Reputation: 2
Post: #1
Fl_Scroll example ...

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

07-25-2007 02:37 AM
Visit this user's website Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #2
RE: Fl_Scroll example ...

Thank you! =o)

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

07-25-2007 05:48 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

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

Forum Jump: