model_server/gra/src/graSymbol.h.cxx
// Shifts cursor in the text field to specified position
Shifts cursor in the text field to specified position
Shifts cursor in the text field to specified position
void graParametricSymbol::shift_cursor (int pos)
{
    Initialize (graParametricSymbol::shift_cursor);
    if (text_focus == 0)
	return;
    if (pos == char_marker)
	return;
    if ( (pos >= editbuffer->Length()) || (pos < 0) )
	return;
    while(pos > char_marker)
	shift_cursor_right();
    while (pos < char_marker)
	shift_cursor_left();
    reset_modified_token ();
    set_modified_token();
}
void graParametricSymbol :: shift_cursor ( int pos ) { Initialize ( graParametricSymbol :: shift_cursor ) ; if ( text_focus == 0 ) return ; if ( pos == char_marker ) return ; if ( ( pos >= editbuffer -> Length ( ) ) || ( pos < 0 ) ) return ; while ( pos > char_marker ) shift_cursor_right ( ) ; while ( pos < char_marker ) shift_cursor_left ( ) ; reset_modified_token ( ) ; set_modified_token ( ) ; }
Shifts cursor in the text field to specified position
Shifts cursor in the text field to specified position
// verify text focus // Is this a repeat call // Validate cursor position // shift right from current position // shift left from current position