예제 #1
0
void GUISetWindowColours( gui_window *wnd, int num_attrs,
                          gui_colour_set *colours )
{
    gui_control *control;

    GUIFreeColours( wnd );
    GUISetColours( wnd, num_attrs, colours );
    for( control = wnd->controls; control != NULL; control = control->sibling ) {
        GUIRefreshControl( control->parent, control->id );
    }
    GUIWholeWndDirty( wnd );
}
예제 #2
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 );
}
예제 #3
0
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 );
}