Compiling using Delphi 7 Personal ?

If you need help on how to use the program
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Thanks so far, now I changed the icons for program and catalogs and it works fine, there's only one thing still unclear:
antp 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)
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 set ;)
antp
Site Admin
Posts: 9726
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

MAINICON is set by Delphi and cannot be changed, but SAVED1 is in the .rc file (which is a text file), compiled as a .res file by the batch file.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Okay, so I'll try to change the catalog icons on a future release.
And thanks again.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

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..
antp
Site Admin
Posts: 9726
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Choosing what is visible or not is done in LvFormatSelectItem:

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]);
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:

Code: Select all

  ToHTML    = 0;
  ToCSV     = 1;
  ToSQL     = 2;
  ToImages  = 3;
  ToOrigons = 4;
  ToXML     = 5;
The Sort is done automatically if the groupbox is visible, search for the following lines:

Code: Select all

            if Sortby.Visible then
              SortBy.Sort(MovieList);
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:

Code: Select all

  ExportPic := CBCopyPictures.Checked;
  OnlyNewPic := CBCopyPicturesNew.Checked;
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.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

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]);
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.

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 :D. But when I opened catalog file in texteditor, I could see that it has been sorted on original title..

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 :) Now it's possible to export (instead of Save as) a partial or full catalog in sgc/xml file format, that 'carries' its pictures to another folder on hdd. That seems to be missing on AMC, too, cause if you use Save as on a catalog (at least xml) to another folder (i.e. an usb stick) it does not copy the pictures. Maybe worth adding it with a future update ?
antp
Site Admin
Posts: 9726
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Indeed the "partial save as" is not possible in AMC, but you can do it by using the import. I thought it was probably a little more "reliable" for pictures handling. Anyway the partial export was on my to-do list ;)
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

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 ?
antp
Site Admin
Posts: 9726
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

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.

Code: Select all

  with Toolbar.Items do
    for i := 0 to Count-1 do
      with LvCustomizeToolbar.Items.Add do
      begin
        Checked := Items[i].Visible;
you can insert before the second "with" a line like

Code: Select all

if Items[i].Tag <> 0 then
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?
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

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

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 ?
antp
Site Admin
Posts: 9726
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

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
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Is it possible to change color on the movie/game list (ListView1) only on specific lines ? I tried a lot, but only could change the complete list using ListView1 textcolor property.
antp
Site Admin
Posts: 9726
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

It is easy with a TListView component, but that list here is a bit different (TElTree, even if it kept the Listview name of the previously used component :D) and I do not remember how it works for that, even if it should not be much more difficult. I'll check that this evening.
antp
Site Admin
Posts: 9726
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

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

Code: Select all

                // *** Adding each item to the list ***
                with NewItem do
and in that you can do for example

Code: Select all

                  if iNumber mod 10 = 0 then
                  begin
                    ParentColors := False;
                    RowBkColor := clGreen;
                    BkColor := clBlue;
                    Color := clRed;
                  end;
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.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

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

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)
antp
Site Admin
Posts: 9726
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

I planned to add option for coloring list according to a field (e.g. categories, borrower, etc.) but I was waiting to have replaced the list component by one which is easier for such thing.
Post Reply