コード例 #1
0
        /// <summary>
        /// Gets the field attributes of the field at the specified coordinates.
        /// </summary>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <returns></returns>
        public FieldAttributes GetFieldAttribute(int x, int y)
        {
            byte b = 0;

            lock (tn)
            {
                b = (byte)tn.Controller.GetFieldAttribute(tn.Controller.CursorAddress);
            }

            FieldAttributes fa = new FieldAttributes();

            fa.IsHigh       = FieldAttribute.IsHigh(b);
            fa.IsIntense    = FieldAttribute.IsIntense(b);
            fa.IsModified   = FieldAttribute.IsModified(b);
            fa.IsNormal     = FieldAttribute.IsNormal(b);
            fa.IsNumeric    = FieldAttribute.IsNumeric(b);
            fa.IsProtected  = FieldAttribute.IsProtected(b);
            fa.IsSelectable = FieldAttribute.IsSelectable(b);
            fa.IsSkip       = FieldAttribute.IsSkip(b);
            fa.IsZero       = FieldAttribute.IsZero(b);
            return(fa);
        }
コード例 #2
0
ファイル: FieldAttribute.cs プロジェクト: xandr001/Open3270
 public static bool IsSkip(byte c)
 {
     return(FieldAttribute.IsNumeric(c) && FieldAttribute.IsProtected(c));
 }