Unused fields

New scripts, templates and translation files that allows to use Ant Movie Catalog to manage other things than movies
Post Reply
joe935
Posts: 33
Joined: 2006-09-19 20:25:31
Location: Smith Mountain Lake, Va. USA

Unused fields

Post by joe935 »

When creating a new language file how do you remove the unused field areas in the user interface?
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Either by setting their "Visible" attribute to 0:
EVideoFormat.Vislble=0
or by changing their coordinates, e.g.
EVideoFormat.Left=-1000
joe935
Posts: 33
Joined: 2006-09-19 20:25:31
Location: Smith Mountain Lake, Va. USA

Post by joe935 »

Thanks Antp.
bonzi
Posts: 15
Joined: 2008-09-27 09:40:04

Post by bonzi »

antp wrote:Either by setting their "Visible" attribute to 0:
EVideoFormat.Vislble=0
or by changing their coordinates, e.g.
EVideoFormat.Left=-1000
Interesting.... Where are these? In the source (looks like it), or somewhere where it can be modified without Delphi?

Thanks!

Bonzi

P.S. More I play with AMC, more I am impressed!
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

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.
bonzi
Posts: 15
Joined: 2008-09-27 09:40:04

Post by bonzi »

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.
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?

Thanks!

Bonzi
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

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.
bonzi
Posts: 15
Joined: 2008-09-27 09:40:04

Post by bonzi »

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.
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.

Thanks!

Bonzi
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

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:

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;

Post Reply