Where did you set these names ? Do you mean the filename itself before you run the batch file (and renamed these to icon_pgm/_doc later) or somewhere within AMC ? I use same icons for program and catalog now, so it's not that important, but it's of interest if I should create another icon setantp wrote:To be sure of icons order I just had to give a name to the second one which was after "MAINICON" in alphabetical order ("SAVED1" in this case)
Compiling using Delphi 7 Personal ?
Thanks so far, now I changed the icons for program and catalogs and it works fine, there's only one thing still unclear:

On the export window, there are some option fields depending on the chosen export format, i.e. Sort by, Images, Movies to include. How can I set which option fields show up on a new export choice ? On a new one it shows me all of these fields and I got the Movies to include option running now (using IncOpt: TGameIncludeOption;), but how can I hide Sort by and Images (or even better get them working) ? I didn't find the correct connection, yet..
Choosing what is visible or not is done in LvFormatSelectItem:
Except if you added your new format in these sets [To..., To...] by default the groupbox should not appear
Or maybe you modified order of items of the list or removed/modified some? If so you should update the "To..." constants to reflect the contents of the list:
The Sort is done automatically if the groupbox is visible, search for the following lines:
in btn3Click.
So if the groupbox is visible, it should work automatically.
For the image checkboxes, you just have to see if the boxes are checked or not, and if they are process the pictures.
It is hard to explain, if you check the ExportHTML function it reads the status of these:
Then later in the function depending on the value of these two variables it writes all images to output folder. See the ReplaceTagsMovie function (called by ExportHTML), where it uses ExportPic parameter.
Code: Select all
Includemov.Visible := Selected and (Item.Index in [ToHTML, ToCSV, ToSQL, ToOrigons, ToImages]);
Sortby.Visible := Selected and (Item.Index in [ToHTML, ToCSV, ToSQL, ToOrigons]);
grpImages.Visible := Selected and (Item.Index in [ToHTML, ToCSV, ToSQL, ToXML]);
Code: Select all
ToHTML = 0;
ToCSV = 1;
ToSQL = 2;
ToImages = 3;
ToOrigons = 4;
ToXML = 5;
Code: Select all
if Sortby.Visible then
SortBy.Sort(MovieList);
So if the groupbox is visible, it should work automatically.
For the image checkboxes, you just have to see if the boxes are checked or not, and if they are process the pictures.
It is hard to explain, if you check the ExportHTML function it reads the status of these:
Code: Select all
ExportPic := CBCopyPictures.Checked;
OnlyNewPic := CBCopyPicturesNew.Checked;
That was exactly what I was looking for. I added the new format (ToSGC) there, and somehow later I didn't see/find it no more. You're right, that was the reason why I could see all the option fields on export window.antp wrote:Code: Select all
Includemov.Visible := Selected and (Item.Index in [ToHTML, ToCSV, ToSQL, ToOrigons, ToImages]); Sortby.Visible := Selected and (Item.Index in [ToHTML, ToCSV, ToSQL, ToOrigons]); grpImages.Visible := Selected and (Item.Index in [ToHTML, ToCSV, ToSQL, ToXML]);
About the sorting.. it worked and I was just to blind to see it. I added export from one catalog to another one, to make export of partial catalogs possible (I missed that on AMC, or did I just oversee something ? I.e. to export a catalog for a special genre or age classification only). And when I opened that new catalog, the list was sorted on numbers again.. so it looked like still 'unsorted' - stupid me
For the image checkboxes you led me the right way.. a little bit complicated (at least for me), but now it works like a charm
Is it possible to hide an unused icon on the >preferences>customize toolbar list, or is it neccessary to modify the *.bmp icon files for that (and probably some code) ?
Another problem is about the amcexchange dll. It could not be compiled on D7PE and shows error message "File not found: ADODB.dcu". I guess that's a database component again
Compiling on D3Pro failes, too, something about unknown streaming format if I remember correct (message is in german language).. As from what I have seen on the code, it's used for MS Access import (and files based on that format) only, is it ?
Another problem is about the amcexchange dll. It could not be compiled on D7PE and shows error message "File not found: ADODB.dcu". I guess that's a database component again
Compiling on D3Pro failes, too, something about unknown streaming format if I remember correct (message is in german language).. As from what I have seen on the code, it's used for MS Access import (and files based on that format) only, is it ?
The customize list takes all icons from the main toolbar, it is not related to the bmp. What you could eventually do if you wish some toolbar button on that toolbar to not appear in the list is to assign the Tag value of that button and make a test in the code which fills the list.
you can insert before the second "with" a line like
About the dll, indeed it is used for Access import (and so Extreme Movie Manager, but also the bdv/mylittlebase format used for basedvdivx)
I did that to not include in AMC's exe the database components.
Since Delphi 6 or something like that the forms are stored in text instead of binary stream, hence the error when opening it in Delphi 3. I could convert the form to binary, but I do not think that Delphi 3 is shipped with ADO components - do you have these in the component palette ? (TADOConnection and TADOQuery, on a ADO page)
You could use the DLL as it is for Access import, do you need to make changes to it?
Code: Select all
with Toolbar.Items do
for i := 0 to Count-1 do
with LvCustomizeToolbar.Items.Add do
begin
Checked := Items[i].Visible;Code: Select all
if Items[i].Tag <> 0 thenI did that to not include in AMC's exe the database components.
Since Delphi 6 or something like that the forms are stored in text instead of binary stream, hence the error when opening it in Delphi 3. I could convert the form to binary, but I do not think that Delphi 3 is shipped with ADO components - do you have these in the component palette ? (TADOConnection and TADOQuery, on a ADO page)
You could use the DLL as it is for Access import, do you need to make changes to it?
I'll try that. It is just because I want to hide the "From Files" button on that list, as I don't support import informations from files. For the moment it simply appears as inactive on the main toolbar if it has been chosen by the user.antp wrote:The customize list takes all icons from the main toolbar, it is not related to the bmp. What you could eventually do if you wish some toolbar button on that toolbar to not appear in the list is to assign the Tag value of that button and make a test in the code which fills the list.
On game catalog the amcexchange.dll is needed for Access import only. I guess it needs an update, as on the code it uses MovieClass in '..\movieclass.pas', and I have changed & renamed that file. Besides it simply looks nice if file properties/hints show matching information
On D7PE I do not have the ADO components.. same on D3, at least I did not find them on the german version.
Btw.. activeX components for graphs seem not to be useful for game catalog. As from what I found on the net they need to be registered on windows, else they should not work if Delphi is not installed on the PC.
uhm.. does the D7 Architect version contain the neccessary components ?
If I am correct, architect version is the most expensive one, so yes
Personal < Professional < Entreprise < Architect.
Even if movieclass is included in the dll I am not sure at all that it is still used. I think that now that DLL is only used as a wrapper for the ADO components. The movieclass is just there because it was used in older versions of AMC. I rewrote that for AMC 3.5.1 :
The request and reading from table is made through the WrappedQuery interface used in import2_engines.pas, TImportEngineMdb.ImportFromMdb
Personal < Professional < Entreprise < Architect.
Even if movieclass is included in the dll I am not sure at all that it is still used. I think that now that DLL is only used as a wrapper for the ADO components. The movieclass is just there because it was used in older versions of AMC. I rewrote that for AMC 3.5.1 :
The request and reading from table is made through the WrappedQuery interface used in import2_engines.pas, TImportEngineMdb.ImportFromMdb
It seems to work completely differently than with the TListView, but I found something: it seems that you have to change properties of the TElItem objets.
So for example in RefreshMovieList, you have
and in that you can do for example
but I did not find how to color text of something else than main column (title)
I guess you can find that by searching in the help file.
So for example in RefreshMovieList, you have
Code: Select all
// *** Adding each item to the list ***
with NewItem doCode: Select all
if iNumber mod 10 = 0 then
begin
ParentColors := False;
RowBkColor := clGreen;
BkColor := clBlue;
Color := clRed;
end;I guess you can find that by searching in the help file.
Thank you 
I did exactly the same when I tried to find a solution, on exact the same position.. I just did not know/find the
property.. and it does not work without that line
I needed to add some more code on OnMovieFieldChange so that it updates the list after I change borrower field or loans list and it works great now ! (I added an option to preferences, that shows all loaned games in different color on the list)
I did exactly the same when I tried to find a solution, on exact the same position.. I just did not know/find the
Code: Select all
ParentColors := False;property.. and it does not work without that line
I needed to add some more code on OnMovieFieldChange so that it updates the list after I change borrower field or loans list and it works great now ! (I added an option to preferences, that shows all loaned games in different color on the list)