Re: Control user change of SpinButton value






From: Robert Caryl <bob fis-cal com>
To: Josepo Urrutia <find_all hotmail com>
CC: gtkmm-list gnome org, ndobrynin gmail com, murrayc murrayc com
Subject: Re: Control user change of SpinButton value
Date: Mon, 17 Jul 2006 06:30:51 -0500

If that is all you need, then you can create a status variable in your derived window class that defaults to false (meaning the user is changing the spin button object's value). Then when your code would change the spin button object's value, set the status variable to true before making the change. Then, in the callback slot, if the status variable is false you call your extra function (for when the user has changed the value) else if the status variable is true (meaning your code has changed the value) you reset the status variable's value back to false without running your extra function.

Bob Caryl


Thanks for the hint, it works perfectly.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]