|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Grab_DefaultI'm looking for the opposite function to Gtk.Widget.Grab_Default, i.e. the one that unsets a widget as default widget. Thanks in advance, Manuel
_______________________________________________ gtkada mailing list gtkada@... http://lists.adacore.com/mailman/listinfo/gtkada |
|
|
|
Re: Grab_DefaultOn Monday 06 August 2007 10:29:37 Manuel Op de Coul wrote:
> I'm looking for the opposite function to Gtk.Widget.Grab_Default, i.e. > the one that unsets a widget as default widget. > Thanks in advance, You might be able to do a Grab_Default on another widget, which will still the default set on the original widget. If that isn't what you want (for instance because you do not want a default widget -- not recommended according to most GUI guidelines I am aware of), you might be able to do it with: Gtk.Object.Unset_Flags (Button, Gtk.Widget.Can_Default); regards Emmanuel _______________________________________________ gtkada mailing list gtkada@... http://lists.adacore.com/mailman/listinfo/gtkada |
|
|
|
Re: Grab_DefaultEmmanuel wrote: > If that isn't what you want (for instance because you do not want a default > widget -- not recommended according to most GUI guidelines I am aware of), According to the GNOME Human Interface Guidelines 2.0 it's allowed, on page 82: "Once a dialog is displayed, do not change its default button from one button to another. You may add or remove default status from the same button if it helps prevent user error, however. Changing the default from one button to another can be confusing and inefficient, especially for users relying on assistive technologies." > Gtk.Object.Unset_Flags (Button, Gtk.Widget.Can_Default); Thanks, that will work. I expected there to be a way without affecting this flag though. Manuel
_______________________________________________ gtkada mailing list gtkada@... http://lists.adacore.com/mailman/listinfo/gtkada |
| Free Forum Powered by Nabble | Forum Help |