public void Evaluate(int SpreadMax) { if (FTypeWriterWrap.IsConnected) { FValid.SliceCount = FTypeWriterWrap.SliceCount; for (int i = 0; i < FTypeWriterWrap.SliceCount; i++) { FValid[i] = FTypeWriterWrap[i] is TypeWriterWrap; if (FValid[i]) { TypeWriter tw = FTypeWriterWrap[i].Content as TypeWriter; if (FSetKeyboard[i]) { tw.Keyboard = FKeyboardIn[i]; } if (FEnableKeyboard[i]) { tw.Enabled = true; } if (FDisableKeyboard[i]) { tw.Enabled = false; } if (FSetMaxLength[i]) { tw.MaxLength = FMaxLength[i]; } if (FSetCursorPosition[i]) { tw.CursorPosition = FNewCursorPosition[i]; } if (FInitialize[i]) { tw.Initialize(FInitialText[i]); } if (FInsertText[i]) { tw.InsertText(FInputText[i]); } if (FSetSelect[i]) { tw.SelectStart = FSelectStart[i]; tw.SelectEnd = FSelectEnd[i]; } } } } else { FValid.SliceCount = 0; } }
public override void InitializeFrame() { for (int i = 0; i < FOutput.SliceCount; i++) { if (FOutput[i] != null) { TypeWriter tw = FOutput[i].Content as TypeWriter; tw.IgnoreNavigationKeys = FIgnoreNavigationKeys[i]; if (FSetKeyboard[i]) { tw.Keyboard = FKeyboardIn[i]; } if (FEnableKeyboard[i]) { tw.Enabled = true; } if (FDisableKeyboard[i]) { tw.Enabled = false; } if (FSetMaxLength[i]) { tw.MaxLength = FMaxLength[i]; } if (FSetCursorPosition[i]) { tw.CursorPosition = FNewCursorPosition[i]; } if (FInitialize[i]) { tw.Initialize(FInitialText[i]); } if (FInsertText[i]) { tw.InsertText(FInputText[i]); } if (FSetSelect[i]) { tw.SelectStart = FSelectStart[i]; tw.SelectEnd = FSelectEnd[i]; } } } }