static void setcombobuffer( a_dialog *ui_dlg_info, VFIELD *fld ) { a_combo_box *combo; an_edit_control *edit; combo = fld->u.combo; edit = &combo->edit; uiupdatecombobox( combo ); if( ui_dlg_info->edit_data != NULL ) { ui_dlg_info->edit_data->edit_buffer = edit->buffer; ui_dlg_info->edit_data->edit_eline.buffer = edit->buffer; ui_dlg_info->edit_data->edit_eline.length = edit->length; ui_dlg_info->edit_data->edit_eline.update = true; ui_dlg_info->edit_data->edit_eline.index = 0; ui_dlg_info->edit_data->edit_eline.scroll = 0; } }
static void setcombobuffer( a_dialog *info, VFIELD *fld ) { a_combo_box *combo; an_edit_control *edit; combo = fld->ptr; edit = &combo->edit; uiupdatecombobox( combo ); if( info->edit_data != NULL ) { info->edit_data->edit_buffer = edit->buffer; info->edit_data->edit_eline.buffer = edit->buffer; info->edit_data->edit_eline.length = edit->length; info->edit_data->edit_eline.update = TRUE; info->edit_data->edit_eline.index = 0; info->edit_data->edit_eline.scroll = 0; } }
static bool RefreshListCombobox( VFIELD *field, gui_window *wnd, unsigned id ) { a_dialog *dialog; switch( field->typ ) { case FLD_COMBOBOX : uiupdatecombobox( (a_combo_box *)field->ptr ); /* meant to fall through */ case FLD_PULLDOWN : dialog = GUIGetDialog( wnd ); if( dialog == NULL ) { return( FALSE ); } GUIRefreshControl( wnd, id ); return( TRUE ); break; } return( FALSE ); }
static bool RefreshListCombobox( VFIELD *field, gui_window *wnd, gui_ctl_id id ) { a_dialog *ui_dlg_info; switch( field->typ ) { case FLD_COMBOBOX : uiupdatecombobox( field->u.combo ); /* meant to fall through */ case FLD_PULLDOWN : ui_dlg_info = GUIGetDialog( wnd ); if( ui_dlg_info == NULL ) { return( false ); } GUIRefreshControl( wnd, id ); return( true ); break; } return( false ); }