コード例 #1
0
ファイル: guixaddt.c プロジェクト: Ukusbobra/open-watcom-v2
bool GUISetTopIndex( gui_window *wnd, unsigned id, int choice )
{
    VFIELD      *field;
    a_list      *list;

    choice = choice;
    if( GetList( wnd, id, &field, &list ) ) {
        GUIListBoxTopIndex( list, choice, TRUE, NULL );
        return( RefreshListCombobox( field, wnd, id ) );
    }
    return( FALSE );
}
コード例 #2
0
bool GUISetTopIndex( gui_window *wnd, gui_ctl_id id, int choice )
{
    VFIELD      *field;
    a_list      *list;

    choice = choice;
    if( GetList( wnd, id, &field, &list ) ) {
        GUIListBoxTopIndex( list, choice, true, NULL );
        return( RefreshListCombobox( field, wnd, id ) );
    }
    return( false );
}
コード例 #3
0
ファイル: guixaddt.c プロジェクト: Ukusbobra/open-watcom-v2
int GUIGetTopIndex( gui_window *wnd, unsigned id )
{
    VFIELD      *field;
    a_list      *list;
    int         ret;

    if( GetList( wnd, id, &field, &list ) ) {
        if( GUIListBoxTopIndex( list, 0, FALSE, &ret ) ) {
            return( ret );
        }
    }
    return( -1 );
}
コード例 #4
0
int GUIGetTopIndex( gui_window *wnd, gui_ctl_id id )
{
    VFIELD      *field;
    a_list      *list;
    int         ret;

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