Solved

using a chess component...

Posted on 2002-04-15
4
241 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
  • 3
4 Comments
 
LVL 11

Accepted Solution

by:
shaneholmes earned 175 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

760 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now