Delphi learning thread
Meanage
2007-05-20 00:48:40
Ok, me and my friend Phonokin are learning Delphi.
This thread is for people to post thier programs, get help, rate programs, share knowledge etc. If anyone wants to start learning too then just make a post with your programs in it. If you know Delphi then you can share your knowledge, rate programs, help people and stuff.
If anyone feels like teaching me the basics and helping me with understanding the basics please add my msn.
phonokin
2007-05-20 00:51:28
ok heres my first program its similar to meanages because were using the same tut
Meanage
2007-05-20 00:51:42
Knowledge so far:
Quite basic, Im trying to understand how to make it do something, I dont really understand how to make and exicute a procedure. If you could help/teach me anything add my msn please.
Also if anyone knows where a command list like the SRL manual is please post a link here
My programs:
Jason2gs
2007-05-20 01:55:13
I'm just getting started, as well :) I'm yet to make my first Delphi application.
From what I've seen of it, though experimenting, is that it's basically just like any other form editor.
If you've used any other form editors, such as VB6, and you know the basics of SCAR/Pascal scripting- Which I'm sure you all do- this should soon become second nature to you.
As far as a command list; Alt + Space. Just like in SCAR ;)
Edit:
@ Meanage
"How to make it do something"? That's the same problem I ran into with VB6 :p
All you have to do is double click on the form component, while it's up on your form.
Open up Delphi.
Start of with just a normal… Button?
Make it whatever size you want. Doesn't matter.
Double click on it.
The window that was somewhat hidden by the form, is now completely visible and awaiting your commands.
Meanage
2007-05-20 02:34:13
Yeah I can do that, hence the fact that Ive made that Hello thing but I just dont understand how to make it do stuff, Ill have a look at alt + space thing and see if I understand it more.
Edit: alt space brings up the close, restore minimize etc menu in the corner lol?
Sp0rky
2007-05-20 02:58:04
Well, I know delphi quite well, been programming in it for 2 years, so just ask me if you ever need any help, I'll be more than willing to help.
Love helping people.
:)
@meanage, ill add you on msn.
Hugolord
2007-05-20 03:54:39
From: Sp0rk-eh
Well, I know delphi quite well, been programming in it for 2 years, so just ask me if you ever need any help, I'll be more than willing to help.
Love helping people.
:)
@meanage, ill add you on msn.
add me 2? pl0x
Sp0rky
2007-05-20 04:54:54
lol, its hard when I dont know your msn =p
Jason2gs
2007-05-20 09:34:09
From: Meanage
Yeah I can do that, hence the fact that Ive made that Hello thing but I just dont understand how to make it do stuff, Ill have a look at alt + space thing and see if I understand it more.
Edit: alt space brings up the close, restore minimize etc menu in the corner lol?
Ah, I guess that would make sense, now wouldn't it :p
It brings up what now? Here's what it brings up for me:
Hugolord
2007-05-20 09:45:10
From: Sp0rk-eh
lol, its hard when I dont know your msn =p
[email]hugolrd@hotmail.com[/email] Sp0rk
phonokin
2007-05-20 15:35:33
Hey Sp0rk-eh can you add me please :)
IEatJ00erBaybees
2007-05-20 16:32:10
Wow this is weird…I decided to start learning Delphi today too :p
I'm downloading Delphi 7 right now :)
bullzeye95
2007-05-20 16:57:27
Here's my BIGGEST project ;). I ran out of ideas though…
EDIT: Sweet, 777 posts! Lucky :rolleyes:
Jason2gs
2007-05-20 21:48:04
Oooh, that's pretty sweet :p
Mind posting the source?
bullzeye95
2007-05-20 21:56:42
Okey dokey :).
Jason2gs
2007-05-20 22:43:15
Thanks mate ;)
I'll take a look at it tomorrow. I gotta go to bed now.
Edited:
I seem to be confused about something. Kind of embarrassing, but…
How do I export my project as an exe?
Probably a bit of a nub for asking, but please answer :)
bullzeye95
2007-05-21 15:38:21
Don't worry, it took me days to figure that out :p. You have to save the project, and then press the run button (there's another way, but that's the easiest). It will then create the exe file in the folder you saved the project.
Meanage
2007-05-21 16:04:17
Or project->build project
Jason2gs
2007-05-21 18:20:23
Oooh, thanks guys :p
rkroxpunk
2007-05-22 06:00:56
Yaaay the Josh is starting tomorrow :D shall be fun. spky has already given me some tut's what are u guys using? Also I'm using that delphi 7.2 thingy. I'm not even sure if I have the proper thing lol it was like a kinda modded edition or something I couldn't find the actual proper delphi 7……anyone got a link?
and Why did bullezeyes source code for notepad install open in Visual studio? Was that because I opened the wrong thing? or does that mean I don't have delphi?
EDIT: I just read Freddy's thread and realised I have SE even tho I don't actually know where it is lol I guess I'll have to do a search. Although I think I might download Jason's upload :p thx
EDIT: Oh it was 7.2 which i already had =,= lol oh well thx anyway :P now I'll remember to look before I click ok :p
Jason2gs
2007-05-22 12:03:19
It was 7.2? Hmm… Dang. Where did I get mine then…
I'll have to remember to look around for it.
bullzeye95
2007-05-22 15:44:11
Always open the .dpr files ;)
Meanage
2007-05-22 21:00:46
I got 7SE from a link on Cruels.net.
@ Jason, this is what comes up.
Smartzkid
2007-05-22 21:16:16
Hey meanange, you didn't happen to download delphi from Murtagh's thread, did you?
Meanage
2007-05-22 22:59:48
Yeah I did, is there something wrong with that one? Im guessing I need 7.2
rkroxpunk
2007-05-23 03:41:55
everyone wanna post their links to Tut's?
Here's the site that spky gave me:
http://delphi.about.com/od/beginners/Getting_Started_with_Delphi.htmthe whole website is apparently sweet and is meant to be the best for learning delphi
Sp0rky
2007-05-23 11:05:46
Hugolord asked for a program that changes the internet explorer homepage, so I made him one. He wanted to trick his friends or something, so if you just add the change homepage to the form create procedure they won't need to click any buttons.
Thought this code might be useful to you. Just includes Registry in the uses and edits the registry to change the internet explorer homepage. Only changes when you click change, so its safe to run :P
Included the executable aswell.
It is defined in a function btw.
Robbiej
2007-05-24 10:38:35
How bout sendkeys?
Freddy1990
2007-05-25 08:42:32
From: Sp0rk-eh
Hugolord asked for a program that changes the internet explorer homepage, so I made him one. He wanted to trick his friends or something, so if you just add the change homepage to the form create procedure they won't need to click any buttons.
Thought this code might be useful to you. Just includes Registry in the uses and edits the registry to change the internet explorer homepage. Only changes when you click change, so its safe to run :P
Included the executable aswell.
It is defined in a function btw.
There's no need to put it in a createform event rly, just put this in a dpr and compile it:
program Projectchangeie;
uses
Forms,
Registry,
Types;
const
{$EXTERNALSYM HKEY_CURRENT_USER}
HKEY_CURRENT_USER = Types.DWORD($80000001);
function SetIEHomePage(PageName: string): Boolean;
begin
with TRegistry.Create do
try
RootKey := HKEY_CURRENT_USER;
OpenKey('Software\Microsoft\Internet Explorer\Main', False) ;
try
WriteString('Start Page', PageName) ;
Result := True;
except
Result := False;
end;
CloseKey;
finally
Free;
end;
end;
begin
Application.Initialize;
SetIEHomePage('www.pokemon.com');
Application.Run;
end.
From: Robbiej
How bout sendkeys?
For sendkeys download the attached file, it's an include by Zarko Gajic which has a SendKeys function.
Smartzkid
2007-05-25 21:08:45
From: Meanage
Yeah I did, is there something wrong with that one? Im guessing I need 7.2
:D No, there's nothing wrong with it, that was my post, and I'm surprised that it helped anyone
Meanage
2007-05-25 21:17:20
From: Smartzkid
:D No, there's nothing wrong with it, that was my post, and I'm surprised that it helped anyone
Oh cool. Thanks for it. How do I get that list of functions to come up? alt+space did what my other post says.
Im KBD :)
Smartzkid
2007-05-25 21:27:53
[ctrl]+[space]
Meanage
2007-05-25 21:39:51
From: Smartzkid
[ctrl]+[space]
Yusss, it worked, cool thanks.