예제 #1
0
bool GUISetCurrSelect( gui_window *wnd, unsigned id, int choice )
{
    VFIELD      *field;
    a_list      *list;

    if( GetList( wnd, id, &field, &list ) ) {
        if( !GUIListCurr( list, choice, TRUE, NULL ) ) {
            return( FALSE );
        }
        return( RefreshListCombobox( field, wnd, id ) );
    }
    return( FALSE );
}
예제 #2
0
bool GUISetCurrSelect( gui_window *wnd, gui_ctl_id id, int choice )
{
    VFIELD      *field;
    a_list      *list;

    if( GetList( wnd, id, &field, &list ) ) {
        if( !GUIListCurr( list, choice, true, NULL ) ) {
            return( false );
        }
        return( RefreshListCombobox( field, wnd, id ) );
    }
    return( false );
}
예제 #3
0
int GUIGetCurrSelect( gui_window *wnd, unsigned id )
{
    VFIELD      *field;
    a_list      *list;
    int         ret;

    if( GetList( wnd, id, &field, &list ) ) {
        if( !GUIListCurr( list, 0, FALSE, &ret ) ) {
            return( FALSE );
        }
        return( ret );
    }
    return( -1 );
}
예제 #4
0
int GUIGetCurrSelect( gui_window *wnd, gui_ctl_id id )
{
    VFIELD      *field;
    a_list      *list;
    int         ret;

    if( GetList( wnd, id, &field, &list ) ) {
        if( !GUIListCurr( list, 0, false, &ret ) ) {
            return( 0 );
        }
        return( ret );
    }
    return( -1 );
}