[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: how to modify the GnomeDbDataWidgetInfo?
- From: "Vivien Malerba" <vmalerba gmail com>
- To: paragasu <paragasu gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: how to modify the GnomeDbDataWidgetInfo?
- Date: Wed, 17 Sep 2008 09:32:16 +0200
2008/9/17 paragasu <paragasu gmail com>:
> by default, gnome_db_form/gnome_db_grid widget create a set of control
> (GnomeDbDataWidgetInfo). To add or manipulate data.
>
> For my application, i only need the update button, i do not need the
> insert, add or
> the next record button. How to remove all button except the update button?
>
> Or how i can create my update button to do function exactly like the one used in
> the GnomeDbDataWidgetInfo update button.
Hidding buttons is not supported by the GnomeDbDataWidgetInfo widget.
However, there are several things you can do:
1) copy the source of GnomeDbDataWidgetInfo (rename it to be one of
your widgets) and remove the unnecessary code, then pack together a
GnomeDbRawGrid/Form with your new widget
2) pack a GnomeDbRawGrid/Form with a button of your own for which the
callback function will call
gnome_db_data_widget_perform_action(rawform/grid,
GNOME_DB_ACTION_WRITE_MODIFIED_DATA)
3) use gnome_db_data_widget_set_write_mode(rawform/grid,
GNOME_DB_DATA_WIDGET_WRITE_ON_VALUE_ACTIVATED) for example, in which
case you don't need any button at all
In any case you'll have to create a GnomeDbRawForm/Grid widget first.
Hope this will help you,
Vivien
BTW: please use the Gnome-DB mailing list for questions related to
libgda/libgnomedb.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]