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 
Subwindows
Author Message
chrimo
Member
***


Posts: 94
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
RE: Subwindows

mikshaw Wrote:
I haven't done anything with embedded windows, but this seems to work:

Code:
ww=300; wh=180
w = fltk:Fl_Window(ww,wh,"Hello")
w2 = fltk:Fl_Window(ww/2,wh/2,"Hello x2"); w2:box(fltk.FL_UP_BOX)
w:add(w2)  -- <---this is the important part
w:show(); w2:show()
Fl:run()


Much easier as I thought Big Grin

Code:
subwindow = fltk:Fl_Window(X, Y, "NXT");
subwindow:tooltip("NXT Lua Sim by Chrimo and friends "..version);
subwindow:color(55);
subwindow:position(0,0);
subwindow:parent(window) --- <==== ADDED reference to main window


Cool staff
Looking at the FLTK-Sources and Demos helps very much ;-)
Thanks
Bye
Christian

This post was last modified: 06-07-2007 03:22 AM by chrimo.

06-07-2007 03:20 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Subwindows - chrimo - 06-07-2007, 01:14 AM
RE: Subwindows - mikshaw - 06-07-2007, 02:45 AM
RE: Subwindows - chrimo - 06-07-2007 03:20 AM
RE: Subwindows - chrimo - 06-07-2007, 04:47 AM

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

Forum Jump: