Re: changing HScale limits
- From: Murray Cumming <murrayc murrayc com>
- To: jody <jody xha gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: changing HScale limits
- Date: Sun, 08 Mar 2009 12:08:15 +0100
On Sun, 2009-03-08 at 11:12 +0100, jody wrote:
> Hi
> In my application i have a Gtk::HScale whose parameters
> should be different depending on the state of a group of
> radios buttons.
> From the documentation i get the implression that
> the minimum, maximum and step can only be set in the constructor.
>
> Can anybody give me a hint how to change these settings
> at runtime?
> Or do i have to create a new HSCale object everytime
> the state of the radiobuttons changes?
I guess you can use Gtk::Range::get_adjustment() (in the base class):
http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Range.html#7eca2fd3708b9afcd7eb37ad43228882
This might be helpful too:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/chapter-range-widgets.html
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]