Solved

using a chess component...

Posted on 2002-04-15
4
247 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Working this component WebCopy with proxy, help 3 102
Need Help Delphi 2010 CheckBox1 Stored value in memo 13 79
Base1 Encode/Decode 3 89
Firemonkey webbrowser scrollbars ? 1 57
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

726 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