Exemple #1
0
 internal void ShowToolTip(string text, int x, int y, bool bShow)
 {
     if (bShow && (this.m_ToolTip == null))
     {
         this.m_ToolTip = this.GetControl(typeof(Resco.Controls.DetailView.ToolTip)) as Resco.Controls.DetailView.ToolTip;
     }
     if (this.m_ToolTip != null)
     {
         this.m_ToolTip.Text = text;
         if (bShow)
         {
             this.m_ToolTip.Show(new Point(x, y));
         }
     }
 }
Exemple #2
0
 public DetailView()
 {
     this.m_ItemCollection.Parent = this;
     this.AutoRefresh = true;
     base.Tag = null;
     Graphics graphics = null;
     try
     {
         graphics = base.CreateGraphics();
         this.m_dpiFactor = new SizeF(graphics.DpiX / 96f, graphics.DpiY / 96f);
         ScaleSettings(graphics.DpiX, graphics.DpiY);
     }
     catch
     {
     }
     finally
     {
         if (graphics != null)
         {
             graphics.Dispose();
         }
         graphics = null;
     }
     this.m_LastMousePosition = new Point(0, 0);
     this.m_iCurrentPage = 0;
     this.m_PagesStyle = RescoPageStyle.Arrows;
     this.m_ArrowStyle = RescoArrowStyle.LeftRight;
     this.m_pagesRightToLeft = false;
     this.m_splitArrows = false;
     this.m_pagesLocation = RescoPagesLocation.Bottom;
     this.m_StartDrawPage = 0;
     this.m_PagesOverWidth = false;
     base.BackColor = Color.White;
     this.m_disabledForeColor = SystemColors.GrayText;
     this.m_LabelWidth = DefaultLabelWidth;
     this.m_SeparatorWidth = HorizontalSpacer;
     this.m_BackColor = new SolidBrush(this.BackColor);
     this.m_gradientBackColor = new GradientColor();
     this.m_gradientBackColor.PropertyChanged += new EventHandler(this.m_gradientBackColor_PropertyChanged);
     this.m_useGradient = false;
     BackBufferManager.AddRef();
     Rectangle rectangle = this.CalculateClientRect();
     this.m_VScrollBarWidth = DefaultScrollBarWidth;
     this.m_vScroll.Bounds = new Rectangle(rectangle.Width - this.m_VScrollBarWidth, 0, this.m_VScrollBarWidth, rectangle.Height);
     this.m_vScroll.Minimum = 0;
     this.m_vScroll.Maximum = 0;
     this.m_iActualMaximumValue = 0;
     this.m_vScroll.SmallChange = 20;
     this.m_vScroll.LargeChange = base.Height;
     this.m_vScroll.Value = 0;
     this.m_vScroll.Visible = false;
     this.m_iPrevValue = 0;
     this.m_vScroll.Attach(this);
     this.m_vScroll.ValueChanged += new EventHandler(this.OnValueChanged);
     this.m_vScroll.Resize += new EventHandler(this.OnScrollResize);
     this.SelectedItem = null;
     this.m_ToolTip = null;
     this.m_LeftArrowClicked = false;
     this.m_RightArrowClicked = false;
     this.m_ItemCollection.Changed += new DetailViewEventHandler(this.OnItemsChanged);
     this.GetControl(typeof(DVComboBox));
     this.m_TouchScrollingTimer = new Timer();
     this.m_TouchScrollingTimer.Enabled = false;
     this.m_TouchScrollingTimer.Interval = 50;
     this.m_TouchScrollingTimer.Tick += new EventHandler(this.OnTouchScrollingTimerTick);
     this.m_bTouchScrolling = false;
     this.m_bEnableTouchScrolling = false;
     this.m_TouchAutoScrollDiffX = 0;
     this.m_TouchAutoScrollDiffY = 0;
     this.m_touchSensitivity = 0x10;
     this.m_touchPage = false;
     this.m_touchScrollDirection = Resco.Controls.DetailView.TouchScrollDirection.Inverse;
     this.m_touchPagesDirection = Resco.Controls.DetailView.TouchScrollDirection.Inverse;
     this.InitializeComponent();
 }