Пример #1
0
 public void GetCaretInfo(int aItemNo, int aOffset, byte aCellHPadding, byte aCellVPadding, ref HCCaretInfo aCaretInfo)
 {
     if (FCellData != null)
     {
         FCellData.GetCaretInfo(aItemNo, aOffset, ref aCaretInfo);
         if (aCaretInfo.Visible)
         {
             aCaretInfo.X += aCellHPadding;
             aCaretInfo.Y += GetCellDataTop(aCellVPadding);
         }
     }
     else
     {
         aCaretInfo.Visible = false;
     }
 }
Пример #2
0
 public void GetCaretInfo(int AItemNo, int AOffset, ref HCCaretInfo ACaretInfo)
 {
     if (FCellData != null)
     {
         FCellData.GetCaretInfo(AItemNo, AOffset, ref ACaretInfo);
         if (ACaretInfo.Visible)
         {
             if (FAlignVert == AlignVert.cavBottom)
             {
                 ACaretInfo.Y = ACaretInfo.Y + FHeight - FCellData.Height;
             }
             else
             if (FAlignVert == AlignVert.cavCenter)
             {
                 ACaretInfo.Y = ACaretInfo.Y + (FHeight - FCellData.Height) / 2;
             }
         }
     }
     else
     {
         ACaretInfo.Visible = false;
     }
 }