FLTK logo

Re: OpenGL window in Fl_Wizard

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.opengl  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: OpenGL window in Fl_Wizard Greg Ercolano May 19, 2012  
 
On 05/18/12 23:21, david_aiken-/E1597aS9LQAvxtiuMwx3w@public.gmane.org wrote:
> hi all..
> 
> I would like to place an OpenGL window into a wizard, but I'm new to fltk so my source has some problems.

	You need to create the opengl window inside the first group.

	So just move this line from where it is:

           mygl = new MyGlWindow(10, 10, W-20, H-80);

	..over to here:

        // Wizard: page 1
        {
            // **************************************************
            // 1. OpenGL window. Want this to appear only in page 1.
            // Currently it overlaps on top of the Fl_Multiline_Output
            // windows.
            // **************************************************
            Fl_Group *g = new Fl_Group(0, H-60, W, 60);
            mygl = new MyGlWindow(10, 10, W-20, H-80);   //// <<< MOVE HERE <<<
            Fl_Button *next = new Fl_Button(290,H-30,100,25,"Next"); next->callback(next_cb);
            g->end();
        }

	This ensures the window will be attached (parented)
	to that first group that comprises the first wizard page.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.