void FPropertyTable::SetSelectionMode( const ESelectionMode::Type Mode ) { SelectionMode = Mode; if ( !CanSelectCells() ) { SetCurrentCell( NULL ); SetCurrentColumn( NULL ); } if ( !CanSelectRows() ) { SetCurrentRow( NULL ); } }
static void ensureCursorDisplayed( void ) { int len, wc, diff; if( EditFlags.Modeless && ( CurrentFile != NULL ) ) { len = WindowAuxInfo( CurrentWindow, WIND_INFO_TEXT_LINES ); if( CurrentPos.line < LeftTopPos.line || CurrentPos.line > LeftTopPos.line + len - 1 ) { SetCurrentLine( CurrentPos.line ); } wc = VirtualColumnOnCurrentLine( CurrentPos.column ) - LeftTopPos.column; if( !ColumnInWindow( wc, &diff ) ) { SetCurrentColumn( CurrentPos.column ); } } }