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 ); }
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 ); }
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 ); }
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 ); }
bool GUIClearList( gui_window *wnd, unsigned id ) { VFIELD *field; a_list *list; if( GetList( wnd, id, &field, &list ) ) { if( !GUIClearListBox( list ) ) { return( FALSE ); } if( !GUISetText( wnd, id, NULL ) ) { /* temporary */ return( FALSE ); } return( RefreshListCombobox( field, wnd, id ) ); } return( FALSE ); }