Hi there,
I'm developing an application in .NET, but it seems that every app that I design/compile on my system, won't work on any others. Here is a quote from somebody else describing the error (I do not get any errors myself):
"yeah it gave me an error, exception which could not be handled...
The reason I was using the shortcutkey etc. was because I needed to trap the keyboard at the form level, so that when I pressed the arrow keys, my code would get executed directly rather than moving to the next tab in a tabset if it happens to be selected. I discovered that changing the Modifier...
procedure TRPG.WMHotKey(var Msg: TWMHotKey);
begin
if (Msg.HotKey = KeyID.Enter) then
ConsoleButtonClick(nil)
else if (Msg.HotKey = KeyID.Ctrl) then
Map.Action;
end;
[/code]
I apologize for all the posts. I'm not sure why it wouldn't process my posts. Is there a maximum size for...
Also, I've been trying to trap the Ctrl key using a similar method to the enter key, but it doesn't seem to even count as a key in the WMHotKey procedure (it isn't even called). I assume this has something to do with shift states...
[code]
procedure TRPG.RPGCreate(Sender: TObject);
var
Key...
else if (QList = 3) then
begin
Map.MapObjects[Length(Map.MapObjects)-1].Action := StrToInt(CMessage);
QList := QList + 1;
ConsolePrompt(QArray[QList], 0);
end
else if (QList = 4) then
begin
Map.MapObjects[Length(Map.MapObjects)-1].CMessage := CMessage...
For some reason, the forum isn't letting me post my reply. I think it will let me post in chunks though.
Hi,
I got my console working using the following code. The only problem is that it will be somewhat difficult each time I want to implement a new set of questions. I will have to write a...
I will try that when I get home today... I just have a quick question though: When I trap the enter key, I need to call the SubmitButtonClick procedure. What do I include as a parameter for Sender: TObject? I tried without anything, and it told me I was missing parameters. I am unfamiliar with...
Thanks for the reply,
I am already trapping at the form level, so the submit button was easy to implement, but I'm not sure how I'm going to manipulate that data that I collect inside that prompting procedure. That is, how does the program know to go back to that procedure, when the console is...
Hi,
I have two components, a RichEdit which acts as a console, and an Edit which acts as input to the console.
What I want to be able to do is prompt for several pieces of information in the console (RichEdit), while providing the information through the input (Edit).
My problem is that I am...
Thanks for the reply.
I downloaded DelphiX, but unfortunately it doesn't appear to be compatible with my Delphi 2005. Is there any way around this besides downgrading?
Hello, I'm just looking for some advice. First of all, I don't even know if its wise to use Delphi for this genre of game, but it's all I have to work with.
I'm just a little bit unsure how I should approach the whole graphics element of the project. Should I use certain components or just like...
Yes and no. I had removed that when you advised me against it, but I had done it in another destructor. It works fine now.
Now I can finally get into programming the sprite movement. I'll be sure to take things slowly so the errors don't pile up and I can pinpoint them more easily.
Thanks,
Pat
No need to apoligise, you've already been outstanding.. there was one thing I'm not sure if you had commented on it
"Furthermore, whenever I exit my program, I recieve another error: Failed to load resources from resource file, Please check your setup."
If you know what causes that (not...
That clears alot of things up... I should be able to implement it into my game now. Thanks for the post. I have to go to work now, but I'll look at it afterwards.
If you're not too busy, do you think you could go through my game and pick out the other fatal flaws I seem to make all the time, so...
Alright well here is a similar bit of code that produces the exact same results.
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, System.ComponentModel, Borland.Vcl.StdCtrls, Borland.Vcl.ImgList;
type
TTiles = record...
Essentially that is what I am doing, within a program that already exists. All the errors are coming from what I've added. I could send you the code if you'd like to have a look at it.
Yes, I forgot to create Buffer and Screen. That issue is now solved, but for some reason luck isn't on my side. It seems like every step forward is 2 steps back for me...
I'm now getting a "Canvas does not allow drawing" error on the same draw function. I've searched it on Google with plenty of...
I've done most of what you suggested but I can't figure out how to get the images drawn into the buffer (from a .bmp file).
I am using an ImageList, so I tried the Draw function, but it gives me an error. "Object reference not set to an instance of an object"
Here is a snippet of the code I...
Buho,
Interesting post, you've given me a little insight on how I'm going to do this.
I have a question though, regarding the buffer. I've never really understood how you use it, code-wise. I searched it on Google, but I can't seem to find any relevant results. How do I draw bitmaps in 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.