Exemple #1
0
        public static void Set(string position, Size parentSize, Control obj)
        {
            Point point = Metodos.GetLocation(position, obj.Size, parentSize);

            obj.Location = point;
        }
Exemple #2
0
 public static void Percent(Point a, Point b, Form obj, Size parentSize)
 {
     Metodos.SetPercentPointVar(a, b, obj.Parent.Size);
     obj.Location = VariablesP.pointA;
 }
Exemple #3
0
 public static void Percent(Point a, Point b, Control obj)
 {
     Metodos.SetPercentPointVar(a, b, obj.Parent.Size);
     obj.Location = VariablesP.pointA;
 }
Exemple #4
0
 public static void PercentText(Point a, Point b, Control obj, float txtSize = 2)
 {
     Metodos.SetSizeVar(a, b, obj.Parent.Size);
     obj.Size = VariablesP.size;
     obj.Font = Metodos.TxtAdjustByHeight(obj.Size, obj.Font, txtSize);
 }
Exemple #5
0
 public static void Percent(Point a, Point b, Control obj)
 {
     Metodos.SetSizeVar(a, b, obj.Parent.Size);
     obj.Size = VariablesP.size;
 }
Exemple #6
0
 public static void Percent(Size size, Form obj, Size parentSize)
 {
     Metodos.SetSizePixels(size, parentSize);
     obj.Size = VariablesP.size;
 }