?
Solved

using a chess component...

Posted on 2002-04-15
4
Medium Priority
?
253 Views
Last Modified: 2010-04-04
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
Comment
Question by:lopem
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 11

Accepted Solution

by:
shaneholmes earned 350 total points
ID: 6943475
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
 
LVL 11

Expert Comment

by:shaneholmes
ID: 6943477
or from German to Spanish
0
 
LVL 3

Author Comment

by:lopem
ID: 6969048
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
 
LVL 11

Expert Comment

by:shaneholmes
ID: 6970332
Your very Welcome. Godd Luck!
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month9 days, 15 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question