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

            obj.Location = point;
        }
Beispiel #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;
 }
Beispiel #3
0
 public static void Percent(Point a, Point b, Control obj)
 {
     Metodos.SetPercentPointVar(a, b, obj.Parent.Size);
     obj.Location = VariablesP.pointA;
 }
Beispiel #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);
 }
Beispiel #5
0
 public static void Percent(Point a, Point b, Control obj)
 {
     Metodos.SetSizeVar(a, b, obj.Parent.Size);
     obj.Size = VariablesP.size;
 }
Beispiel #6
0
 public static void Percent(Size size, Form obj, Size parentSize)
 {
     Metodos.SetSizePixels(size, parentSize);
     obj.Size = VariablesP.size;
 }