Hi,
The fields Category and Certification are resized and positioned by code to strech width properly so you can not change their width and position (for Certification) in language file.
In the same way, the fields Description and Comments are resized and positioned (for Comments) by code to strech height properly.
This is the code used to resize this fields :
procedure TMovieFrame.PanelMainResize(Sender: TObject);
var
h, w, w1: Integer;
begin
// Manage height for description and comments fields
h := PanelMain.Height - EDescription.Top - 4;
EDescription.Height := h div 2;
EComments.Top := EDescription.Top + EDescription.Height + 3;
EComments.Height := EDescription.Height + (h mod 2);
LComments.Top := EComments.Top + 4;
// Manage width for category and certification fields
w := PanelMain.Width - 104 - 15 - 72 - 5;
if w < 337 then w1 := w - 80
else if w > 479 then w1 := w - 80 - 142
else w1 := 257;
ECategory.Width := w1;
LCertification.Left := ECategory.Left + ECategory.Width + 15;
ECertification.Left := LCertification.Left + 72;
ECertification.Width := w - w1;
end;
I could add something like this in next release to activate auto resize by code of fields Description and Comments only when "PanelMain.Tag = 0 or 1" and/or activate auto resize by code of fields Category and Certification only when "PanelMain.Tag = 0 or 2".
So if you put "PanelMain.Tag = 3" in language file in [TMovieFrame] section, you deactivate auto resize by code of all this fields and you can do what you want with them.
procedure TMovieFrame.PanelMainResize(Sender: TObject);
var
h, w, w1: Integer;
begin
// Manage height for description and comments fields
if (PanelMain.Tag = 0) or (PanelMain.Tag = 1) then
begin
h := PanelMain.Height - EDescription.Top - 4;
EDescription.Height := h div 2;
EComments.Top := EDescription.Top + EDescription.Height + 3;
EComments.Height := EDescription.Height + (h mod 2);
LComments.Top := EComments.Top + 4;
end;
// Manage width for category and certification fields
if (PanelMain.Tag = 0) or (PanelMain.Tag = 2) then
begin
w := PanelMain.Width - 104 - 15 - 72 - 5;
if w < 337 then w1 := w - 80
else if w > 479 then w1 := w - 80 - 142
else w1 := 257;
ECategory.Width := w1;
LCertification.Left := ECategory.Left + ECategory.Width + 15;
ECertification.Left := LCertification.Left + 72;
ECertification.Width := w - w1;
end;
end;
Soulsnake.