![]() | ![]() | ![]() | GNOME-DB API reference | ![]() |
---|
GtkWidget * gnome_db_combo_new (GdaRecordset *recset,gint pos);gboolean gnome_db_combo_get_editable (GnomeDbCombo *dbcombo);void gnome_db_combo_set_editable (GnomeDbCombo *dbcombo,gboolean editable);void gnome_db_combo_refresh (GnomeDbCombo *dbcombo);gint gnome_db_combo_get_row_count (GnomeDbCombo *dbcombo);gchar * gnome_db_combo_get_string (GnomeDbCombo *dbcombo);GdaRecordset * gnome_db_combo_get_recordset (GnomeDbCombo *dbcombo);void gnome_db_combo_set_recordset (GnomeDbCombo *dbcombo,GdaRecordset *recset,gint pos);void gnome_db_combo_sync (GnomeDbCombo *dbcombo);
The
This widget is specially useful for data entry screens.
GtkWidget * gnome_db_combo_new (GdaRecordset *recset,gint pos);
Creates a new GnomeDbCombo widget. You can optionally specify a GdaRecordset object which will be used by the GnomeDbCombo widget
recset : | recordset to be shown |
pos : | position of the field being shown |
Returns : | a pointer to the new widget, or NULL on error |
gboolean gnome_db_combo_get_editable (GnomeDbCombo *dbcombo);
Gets the editing mode for the given
dbcombo : | the GnomeDbCombo widget |
Returns : | TRUE if the combo box is editable , or FALSE if not |
void gnome_db_combo_set_editable (GnomeDbCombo *dbcombo,gboolean editable);
Sets the editing mode for the given
dbcombo : | a |
editable : | whether to let (TRUE) or nor let (FALSE) editing |
void gnome_db_combo_refresh (GnomeDbCombo *dbcombo);
Refreshes the data being displayed by the given
dbcombo : | a |
gint gnome_db_combo_get_row_count (GnomeDbCombo *dbcombo);
Returns the number of rows being currently displayed by the given
dbcombo : | a |
Returns : | the number of rows |
gchar * gnome_db_combo_get_string (GnomeDbCombo *dbcombo);
Returns the current selection in the given
dbcombo : | a |
Returns : | the currently selected item's string |
GdaRecordset * gnome_db_combo_get_recordset (GnomeDbCombo *dbcombo);
Gets the
dbcombo : | a |
Returns : | the |
void gnome_db_combo_set_recordset (GnomeDbCombo *dbcombo,GdaRecordset *recset,gint pos);
Associates a
It's important to note that the
dbcombo : | a |
recset : | the recordset to be shown |
pos : | the column to be shown |
void gnome_db_combo_sync (GnomeDbCombo *dbcombo);
Synchronizes the underlying
This is specially useful for data entry screens, where you can have a list
of all primary keys in a
dbcombo : | a |
<<< GnomeDbBrowser | GnomeDbDataset >>> |