MRI Capability

MyConfig for ItemInfo
Fixed various problems with DisplayTabControl
VEPROMS ribbon for DisplayTabPanel
This commit is contained in:
Rich
2007-12-21 18:29:46 +00:00
parent d797d76ee3
commit 9a7b8ab75d
13 changed files with 1073 additions and 798 deletions

View File

@@ -567,7 +567,7 @@ namespace Volian.Controls.Library
vlnExp.Attachment = (item.MyContent.ContentPartCount == 0);
break;
case 2:
CanExpand = TemporaryFormat.IsHigh(item); ;
CanExpand = item.IsHigh && item.HasChildren; // TemporaryFormat.IsHigh(item); ;
break;
default:
CanExpand = false;
@@ -622,10 +622,15 @@ namespace Volian.Controls.Library
{
_DisplayRTB.Focus();
_DisplayRTB.SelectAll();
if (CanExpand) AutoExpand();
int scrollValue = _Panel.VerticalScroll.Value + (Top - (_Panel.Height / 2));
if(scrollValue > _Panel.VerticalScroll.Minimum && scrollValue <= _Panel.VerticalScroll.Maximum)
_Panel.VerticalScroll.Value = scrollValue;
if (CanExpand)
AutoExpand(); // Expand the item if you can
int scrollValue = _Panel.VerticalScroll.Value + (Top - (_Panel.Height / 2)); // calculate scroll center for the item
if(scrollValue > _Panel.VerticalScroll.Minimum && scrollValue <= _Panel.VerticalScroll.Maximum) // If it isn't within range
_Panel.VerticalScroll.Value = scrollValue; // Center the item
}
public void ItemShow()
{
_DisplayRTB.Focus();
}
private void vlnCSLARTB_Paint(object sender, PaintEventArgs e)
{