On 08.12.2011, at 20:55, David Allen wrote:

> I want to have several groups in the same region with all but one hidden at 
> any one time. It would be like a Wizard except that the order of display is 
> not sequential.
> 
> Starting with just two groups with no hides, the program compiles and runs. 
> Because the labels are outside the enclosed widgets, I can tell that both 
> groups are there. When I attempt to hide one of the groups, g++ gives the 
> message:
> 
> /usr/local/include/FL/Fl_Widget.H:684: error: ‘virtual void 
> Fl_Widget::hide()’ is inaccessible
> Control/main.cpp:56: error: within this context
> Control/main.cpp:56: error: ‘Fl_Widget’ is not an accessible base of 
> ‘SelectData’
> 
> I am using 1.3.0. Suggestions would be appreciated.

You probably wrote 

class SelectData : Fl_Group {
 ...
};

which makes Fl_Group a private superclass.

It should be

class SelectData : public Fl_Group {



_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to