Solved

using a chess component...

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
creating manifest for my dll that called from activex 6 100
find a node in VST 2 64
Unique identifier on a terminal server (rdp) 4 46
Dev express lookupcombo 3 14
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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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, f…

864 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

25 Experts available now in Live!

Get 1:1 Help Now