Unused fields
Unused fields
When creating a new language file how do you remove the unused field areas in the user interface?
Interesting.... Where are these? In the source (looks like it), or somewhere where it can be modified without Delphi?antp wrote:Either by setting their "Visible" attribute to 0:
EVideoFormat.Vislble=0
or by changing their coordinates, e.g.
EVideoFormat.Left=-1000
Thanks!
Bonzi
P.S. More I play with AMC, more I am impressed!
Hm, neither of those two properties is mentioned in the help file, nor are they used in any of language files. Care to provide some more quick documentation on properties available for different types of UI elements? Perhaps there is a source file listing defaults?antp wrote:In the language files (*.lng files, in Language folder)
These are just text files that anyone can modify easily, no need of Delphi or any special tool.
Thanks!
Bonzi
Can you post source file with the current values? Also, perhaps a word or two on coordinates (unit, where is the origin...), especially as the all widgets resize when the screen is resized.antp wrote:There are lots of things, but most are not useful to modify.
Except left/top/width/height, caption/hint, I do not think that they have much interest.
Thanks!
Bonzi
These are properties of Delphi's TLabel and TEdit, there is no "current value" for most of them, just default values. I can make a screenshot of that in Delphi but I do not see what you would do with these properties...
All non-default values can be found it framemovie.dfm (text file)
Coordinates are in pixel, from the corner of the panel containing all the fields.
The resize is done automatically for most of the fields, they have their left and/or right linked to the edge of the panel.
Only added code is for the resizing of description/comment fields:
All non-default values can be found it framemovie.dfm (text file)
Coordinates are in pixel, from the corner of the panel containing all the fields.
The resize is done automatically for most of the fields, they have their left and/or right linked to the edge of the panel.
Only added code is for the resizing of description/comment fields:
Code: Select all
procedure TMovieFrame.FrameResize(Sender: TObject);
var
h: Integer;
begin
h := EVideoFormat.Top - EDescription.Top - 6;
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;