Field size and position
Dratia Doisne
[img]/wp-content/forum-smileys/sf-surprised.gif[/img][img]/wp-content/forum-smileys/sf-surprised.gif[/img]Hello,I try to size some standards fields after beeing moved. No way to resize them (I try to use the width in Item placement but nothing happens)...
Moreover, when I move a field, it is ok with a small screen but when the window is bigger, the field move alone to another place (even if I put the left, the top, the width, the height...)
There is a way to fix the place and the size ? also with UDF and standard field ?
Thanks for your help.
Dratia
Sebastian Schweer
Hallo Dartia,for only moving a field, you can use the Coresuite Wizard.
For Resizing try the following Code:
TextEdit TextEditDescription = TextEdit.CreateNew("TextEditD1"); // For Creating a Textfield
// Adjust Textbox Description
TextEditDescription.Top = RefField7.Top;
TextEditDescription.TabOrder = RefField7.TabOrder + 1;
TextEditDescription.Left = RefField106.Left;
TextEditDescription.Width = RefField106.Width + RefField107.Width 8;
TextEditDescription.Height = RefField7.Height;
TextEditDescription.FromPane = 0;
TextEditDescription.ToPane = 0;
pVal.Form.Update();
or try
TextEdit.GetFromUID(pVal.Form, "4").xyz; // the Value 4 is the Name of the Item. For example, 4 is the Vendor code. You can see the Name if you click on View-> System Information and then move with the Mouse over the Field.
And this all, as Optimizer Rule on the wished Form in All Modes.
And don't forget the Update of the Form.
Best Regards,
Sebastian
Dratia Doisne
Hello Sebastian,thanks for your help. Everything is ok now, I have finally resized my standard field.
Best Regards,
Dratia
0
Please sign in to leave a comment.
Comments
0 comments