Re: hide scrolledWindow hscrollbar
- From: gafferuk <gafferuk gmail com>
- To: gtkmm-list gnome org
- Subject: Re: hide scrolledWindow hscrollbar
- Date: Thu, 26 Nov 2009 07:22:14 -0800 (PST)
worked it out:
class CustomScrolledWindow : public Gtk::ScrolledWindow
{
public:
CustomScrolledWindow()
{
set_policy( Gtk::POLICY_NEVER, Gtk::POLICY_NEVER ) ;
}
virtual ~CustomScrolledWindow() {}
protected:
virtual void
on_size_request( Gtk::Requisition* requisition )
{
//Initialize the output parameter:
*requisition = Gtk::Requisition();
requisition->width = 1;
requisition->height = 1;
}
} ;
--
View this message in context: http://old.nabble.com/hide-scrolledWindow-hscrollbar-tp26521981p26530950.html
Sent from the Gtkmm mailing list archive at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]