I need to create an active link to a website from my application.
One way I see to accomplish this is to use the TWebBrowser. The component allows for the access to the website, but there is absolutely no navigation interface (Address Bar, Tool Bar etc.), that is usually present in Internet...
I’ve replaced the existing Menu with ToolBar, but now all Menu shortcuts are not working (I use Delphi 6).
I would greatly appreciate help in this matter.
Thank you, Buho!
Locking the canvas solved the problem. I am using Multimedia Timer to emulate animation and didn’t consider that it runs in its own thread.
I’ve built software which animates a chess game showing the sliding movements of the pieces in a designated area of the main window. I use TPaintBox component for that purpose passing a TBitmap to TPaintBox.Canvas.Draw as a parameter.
Sometimes the picture freezes when I move the cursor during...
Correct. My program is a viewer with some unique replay and graphical annotation features, and not a search engine. Other established chess database management software can be used for that purpose. There is no sense in copying their features unless you come up with something new. I’ve just...
That’s why I am somewhat reluctant to use a database for such kind of text files – there is no relationship between records except the games order. Using a database seems a sort of overkill in this case. I’ve also checked how ChessBase (a recognized chess database management program) handles pgn...
Creating an efficient index file seems to be an interesting problem. Let me describe some of my program’s functionalities to give you an idea of the scope of problems connected with rebuilding the code to work with an index file.
Current version of my program does the following:
1. Copies and...
I do realize that a database would be a perfect solution in my case, but the problem is that I have to save the file in the pgn (and not other) format for the purpose of compatibility. It’s a standard chess format read by many conventional chess software – databases, engines, viewers, etc...
Thank you guys,
It’s good to know that the physical memory is not a question, as the current version of my program (Smart Chess Viewer) is currently loading the whole file to a TList and then uses a TStringList to save changes to disk. The format of the file is pgn (portable game notation) used...
Thank you buho,
Still I have some doubts. If I am going to use the first method (copying to a new file), I don’t see another way but copying all lines of the old file to the new one using ReadLn and WriteLn procedures. But there are millions lines in the file (it’s 400 MB and one line is less...
I’ve got a large text file – about 400 MB. The text has a special format, so it’s easy to find a particular line within the file, etc, but the format itself is not important in my question. I need to insert some new text at a specific point. The rest of the text remains unchanged. What is the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.