• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 258
  • Last Modified:

using a chess component...

Hi guys,

I have a chess component from
   
    http://www.mailchess.de/engl/indexe.html

and it seems very well written but it is in german language :( and no english or spanish help file available.

the component has a full demo program but again, it is in german and I cant figure out how to use it. So this is the deal:

I want an example of using the board, play the figures, creating a PGN file, saving the game played and the use of the PGN component (for example, to load a PGN file to display the headers of each game. Select a game for that list and use that game to replay on the board). I dont want any fancy, just simple code to learn how to use the components in their basic parts...

175 points for the expert who make my day! :)

best regards,
Manuel Lopez (lopem)
0
lopem
Asked:
lopem
  • 3
1 Solution
 
shaneholmesCommented:
If you have the document in German, you can go to the translation page on altavista's website and translate it from german to english. (Using cut and paste)

Hope this helps>

I provided an example below of a quick cut and paste from the help of the TPGN component.

Shane


Translation Link:

http://babelfish.altavista.com/


Example:

------- German -----------------------------------------

Komponente TPGN

Unit PGN

Beschreibung

Die Komponente TPGN (abgeleitet von TCustomListbox ) verwaltet Partien aus PGN-Dateien.
Eine derartige Datei wird geöffnet, indem der Eigenschaft PGNFILE ein Dateiname zugewiesen wird. Dabei müssen Sie im Ereignis ONPGNDRAWITEM selbst bestimmen, welche der Partiedaten in der Liste angezeigt werden. Ist der Dateiname nicht vorhanden, wird das Ereignis BEFORECREATEPGNFILE ausgelöst und auf Wunsch eine neue Datei angelegt.

Wird im Ereignis ONPGNTRACE der Ladevorgang abgebrochen, so nimmt die Eigenschaft ONLYPARTSREAD den Wert TRUE an. Die Eigenschaft ITEMSALLCOUNT enthält die Anzahl der geladenen Partien. ITEMSVISIBLECOUNT entspricht der Anzahl der in der Liste angezeigten Partien. Es sind dann weniger als die geladenen, wenn die Methode FILTERN aufgerufen wurde und im Ereignis ONFILTERREQUEST
 Partien von der Anzeige ausgeschlossen worden sind.

Das Ereignis ONPGNDBLCLICK übergibt die angeklickte Partie als Zeichenkette einschließlich Header und Zeilenumbrüche. Alternativ dazu kann eine Partie auch mit GETGAMEASSTRING geladen werden, wobei mit LISTEINDEXTODATABASEINDEX der ITEMINDEX in der angezeigten (ev. gefilterten) Liste in die tatsächliche Partienummer umgewandelt werden kann.
Die Methoden SAVEGAME, REPLACEGAME und DELETEGAME speichern bzw. löschen Partien.

- ----- English   -------------------------------------

Component TPGN Unit PGN Description The component TPGN (derived from TCustomListbox) administers portions from PGN files. A such file is opened, as a file name is assigned to the characteristic PGNFILE. You must determine in the event ONPGNDRAWITEM even, which of the portion data in the list are displayed. If the file name is missing, the event BEFORECREATEPGNFILE is released and when desired a new file is created. In the event if ONPGNTRACE the loading procedure is aborted, then the characteristic takes ONLYPARTSREAD the value TRUE. The characteristic ITEMSALLCOUNT contains the number of the loaded portions. ITEMSVISIBLECOUNT corresponds to the number of portions displayed in the list. There is fewer than the loaded if the method FILTERS were called and in the event ONFILTERREQUEST portions from the display were excluded. The event ONPGNDBLCLICK transfers the clicked portion as character string including headers and line page make-ups. Alternatively to it a portion can be loaded also with GETGAMEASSTRING, whereby with LISTEINDEXTODATABASEINDEX the ITEMINDEX can be converted in the displayed (ev. filtered) list into the actual portion number. The methods SAVEGAME, REPLACEGAME and DELETEGAME store or delete portions.



0
 
shaneholmesCommented:
or from German to Spanish
0
 
lopemAuthor Commented:
Hi Shaneholmes...

Because the lack of interest in my question, your comment was a good tip and I used it. Im now working on this... Thanks a lot!

best regards
Manuel Lopez (lopem)
0
 
shaneholmesCommented:
Your very Welcome. Godd Luck!
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now