Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 4th, 2007, 9:24 PM   #1
Xyhm
Programmer
 
Xyhm's Avatar
 
Join Date: Mar 2006
Posts: 60
Rep Power: 3 Xyhm is on a distinguished road
Chess board interface

I'm coding a chess computer and I need some pointers on how to create a decent board interface. What I have right now is 64 labels with numbers to represent pieces (1 for a white pawn, 2 for a white knight, and so on). I want real looking pieces with drag'n'drop to move them. (This is purely a question about graphics, the internal stuff and how the board communicates with the internal is no problem.)

(edit: actually, just reading about dragging and dropping may give me what I need. Maybe not, just thought I'd mention that.)

Last edited by Xyhm; May 4th, 2007 at 9:41 PM.
Xyhm is offline   Reply With Quote
Old May 11th, 2007, 12:08 AM   #2
physicist
Hobbyist Programmer
 
Join Date: Oct 2006
Posts: 146
Rep Power: 2 physicist is on a distinguished road
well, if delphi is anything like VB.net (which i think it is, you talk about labels and stuff) just use pictureboxes....
physicist is offline   Reply With Quote
Old May 13th, 2007, 7:35 AM   #3
Xyhm
Programmer
 
Xyhm's Avatar
 
Join Date: Mar 2006
Posts: 60
Rep Power: 3 Xyhm is on a distinguished road
Quote:
Originally Posted by physicist View Post
well, if delphi is anything like VB.net (which i think it is, you talk about labels and stuff) just use pictureboxes....
That's the solution I've chosen for the moment. I have one picture for each possible combination (every white and black piece against a background of either white or black), and simply display pictures in accordance with the internal board. That's good enough, though it isn't drag'n'drop (I create the moves by clicking on the move-from and move-to square), and the pieces aren't separate from the background. But it'll do for now.
Xyhm is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer Based Chess Timer ZeeMan Other Programming Languages 6 Oct 29th, 2006 9:43 PM
test lostcauz Coder's Corner Lounge 9 Jul 18th, 2006 3:20 PM
Help. Sudoku Board Generation Algorithm Manan C++ 32 Jun 30th, 2006 5:33 AM
cool interface looks in VB gpreetsingh Visual Basic .NET 2 Feb 8th, 2006 9:02 AM
Interface design? AusTex Java 2 Jul 4th, 2005 1:46 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:44 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC