Use Argument to set SelectedStepTabPanel

Set IsVisible rather than Visible for DisplayTags
Only lookup ROs if MyRTB.SelectedText contains text
Dock lbFound above the RO TreeView
This commit is contained in:
Rich
2010-12-21 20:31:54 +00:00
parent 6618b1f51e
commit a3b9bc73ab
3 changed files with 19 additions and 11 deletions

View File

@@ -1004,9 +1004,8 @@ namespace VEPROMS
// When infotabTags is set to Visible, the matching panel also needs to be set to visible
// the other panels will appear as they are selected by the user.
infotabControlPanelTags.Visible = true;
displayTags.Visible = true;
displayTags.IsVisible = true;
}
// When infotabTags is set to Visible, it is given focus. The next line returns focus to the StepRTB
args.MyStepItem.MyStepRTB.Focus();
displayTransition.MyRTB = args.MyStepItem.MyStepRTB;
@@ -1020,8 +1019,11 @@ namespace VEPROMS
dlgFindReplace.MyStepItem = args.MyStepItem;
SpellChecker.MyStepItem = args.MyStepItem;
}
if (tc.SelectedDisplayTabItem != null)
SelectedStepTabPanel = ((DisplayTabItem)tc.SelectedDisplayTabItem).MyStepTabPanel;
if (args.MyStepItem != null)
{
SelectedStepTabPanel = args.MyStepItem.MyStepPanel.MyStepTabPanel;
//SelectedStepTabPanel = ((DisplayTabItem)tc.SelectedDisplayTabItem).MyStepTabPanel;
}
}
ctrlAnnotationDetails.UpdateAnnotationGrid(_CurrentItem);
AnnotationPanelView();