Click here to Skip to main content
15,899,754 members

Comments by V_Nick (Top 2 by date)

V_Nick 10-Jun-23 8:30am View    
Dear Gerry,
What I have in mind is create something like Chessbase or Arena Notation Window.
I want to be able to present in GUI the following structure:
(Main Line)
[Comment] move(SAN) [Comment] ... move(SAN) [Comment]
--> (variation 1)
[Comment] move(SAN) [Comment] ... move(SAN) [Comment]
--> (sub-variation 1)
[Comment] move(SAN) [Comment] ... move(SAN) [Comment]
.......................etc...........................
--> (variation 2)
[Comment] move(SAN) [Comment] ... move(SAN) [Comment]
.......................etc...........................
[Comment] move(SAN) [Comment] ... move(SAN) [Comment]...etc

As you can realise, my problem is presenting this output as ListView or DataGridView or RitchTextBox, as the cursor must highlight moves only (not comments) while the game is replayed.
Comments and moves can be changed with DoubleClick.
Any ideas?
V_Nick 5-Mar-23 16:50pm View    
I already have a PGN Implementation class.
My design include the following:
I imagine the container as a RichTextBox containing records.
Each record will have three (strings) parts side by side. Each one will be RTF string.
The first and third part will be comments (before and after) and will not be highlighted on KeyPress or MouseClick.
The second part containing the move will be chosen and highlighted.
Every record will have a start point.
Variations will start in new lines and start at different locations.
Please see the links above.

I need the Form Design, Presentation and Manipulation, i.e OnMouseClick, KeyPress, Edit, Insert, Delete etc.