}// onKeyPress internal void onVisibleChange(Object o, EventArgs e) { // See if we should shrink one of the columns if (m_dg.TheVertScrollBar.Visible) { // The vertical scrollbar is visible. It takes up 13 pixels m_dg.TableStyles[0].GridColumnStyles[1].Width = ScaleWidth(CResourceStore.GetInt("CRemotingProp3:ValueColumnWidth")) - m_dg.TheVertScrollBar.Width; m_dg.Refresh(); } else { m_dg.TableStyles[0].GridColumnStyles[1].Width = ScaleWidth(CResourceStore.GetInt("CRemotingProp3:ValueColumnWidth")); m_dg.Refresh(); } }// onVisibleChange
}// AddEmptyRow internal void onVisibleChange(Object o, EventArgs e) { // Grab the original width of this column if (m_nColumn1Width == 0) { m_nColumn1Width = m_dg.TableStyles[0].GridColumnStyles[0].Width; } // If the scrollbar is visible, then reduce the first column by 13 pixels if (m_dg.TheVertScrollBar.Visible) { m_dg.TableStyles[0].GridColumnStyles[0].Width = m_nColumn1Width - m_dg.TheVertScrollBar.Width; m_dg.Refresh(); } else { m_dg.TableStyles[0].GridColumnStyles[0].Width = m_nColumn1Width; m_dg.Refresh(); } }// onVisibleChange
}// ApplyData internal void onVisibleChange(Object o, EventArgs e) { if (m_dg.TheVertScrollBar.Visible) { // If the scrollbar is visible, we've lost 13 pixels m_dg.TableStyles[0].GridColumnStyles[1].Width = ScaleWidth(CResourceStore.GetInt("CAssemVerCodebases:URIColumnWidth")) - m_dg.TheVertScrollBar.Width; m_dg.Refresh(); } else { m_dg.TableStyles[0].GridColumnStyles[1].Width = ScaleWidth(CResourceStore.GetInt("CAssemVerCodebases:URIColumnWidth")); } }// onVisibleChange
}// ApplyData internal void onVisibleChange(Object o, EventArgs e) { if (m_dg.TheVertScrollBar.Visible) { // We loose 13 pixels when we have a vertical scrollbar m_dg.TableStyles[0].GridColumnStyles[1].Width = ScaleWidth(CResourceStore.GetInt("CAssemBindPolicyProp:NVColumnWidth")) - m_dg.TheVertScrollBar.Width; m_dg.Refresh(); } else { m_dg.TableStyles[0].GridColumnStyles[1].Width = ScaleWidth(CResourceStore.GetInt("CAssemBindPolicyProp:NVColumnWidth")); } }// onVisibleChange