Beispiel #1
0
 public void SetAlign(XRegion TargetRegion, CONTROL_POSITION AlignTarget, CONTROL_POSITION AlignObject)
 {
     if (m_RCS != REGION_CONTROL_STYLES.NONE)
     {
         if (TargetRegion != null)
         {
             if (TargetRegion.m_RegionAlign.TargetRegion != this)
             {
                 m_RegionAlign.SetAlign(TargetRegion, AlignTarget, AlignObject);
                 Align();
             }
         }
         else
         {
             m_RegionAlign.SetAlign();
         }
     }
 }
Beispiel #2
0
        public void Copy(XRegion Item)
        {
            m_nID     = Item.ID;
            m_eRShape = Item.RegionShape;
            Array.Copy(Item.Get(), p, 5);
            m_cBorderColor = Item.BorderColor.ToArgb();
            m_cFillColor   = Item.FillColor.ToArgb();
            m_RCS          = (uint)Item.ControlStyle;
            m_dBorderStyle = Item.BorderStyle;
            m_sCaption     = Item.Caption;

            RegionAlign RAlign = Item.RegionAlign;

            if (RAlign != null)
            {
                m_eAlignTarget = RAlign.AlignTarget;
                m_eAlignObject = RAlign.AlignObject;
                if (RAlign.TargetRegion != null)
                {
                    m_TargetRegionID = RAlign.TargetRegion.ID;
                }
            }
        }
Beispiel #3
0
 public void SetAlign(XRegion iTargetRegion, CONTROL_POSITION iAlignTarget, CONTROL_POSITION iAlignObject)
 {
     AlignTarget  = iAlignTarget;
     AlignObject  = iAlignObject;
     TargetRegion = iTargetRegion;
 }
Beispiel #4
0
 public void SetAlign()
 {
     AlignTarget  = CONTROL_POSITION.TT;
     AlignObject  = CONTROL_POSITION.TT;
     TargetRegion = null;
 }