It's been a long time since using GTK and almost nothing in GTK3 but... You can reference the widget hierarchy to do fancy stuff. https://docs.gtk.org/gtk3/class.SpinButton.html
Here you can see the spinbox has an entry widget reference. With luck you can catch a focus in of the entry vrs a focus in of the total widget. There are probably other ways too. Chris ________________________________ From: Hans Unzner <hansunz...@gmail.com> Sent: August 9, 2022 3:21 PM To: emc-developers@lists.sourceforge.net <emc-developers@lists.sourceforge.net> Subject: Re: [Emc-developers] GTK Am 09.08.22 um 15:24 schrieb andy pugh: > On Tue, 9 Aug 2022 at 13:39, Hans Unzner <hansunz...@gmail.com> wrote: >> Sorry, I don't really got it. What do you mean with 'passing-through a >> click on the + or - buttons.'? >> Do you want to react only to a click in text/value area but not to a >> click on the +/- buttons? > If the user clicks in the text area then I want to bring up the > onscreen keyboard. If they click + or - I want the usual > increment/decrement behaviour controlled by the GTK adjustment in the > usual way. > > So, default behaviour for + / - and my special keyboard for the text area. > I thought about the 'focus-in-event' but that is also generated when you click the +/- button. I think it's not possible because it is one widget. You could change the HAL_SpinButton so that it will be assembled of a Gtk.Entry and two buttons. Then it would be possible I guess but not sure if it's worth the effort. _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers