Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Tutorial] Understanding basic Delphi knowledge

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
iSteam
Grandmaster Cheater
Reputation: 0

Joined: 27 Oct 2006
Posts: 545
Location: Look up.

PostPosted: Sat Mar 03, 2007 3:56 pm    Post subject: [Tutorial] Understanding basic Delphi knowledge Reply with quote

*Originally posted by iSteam on http://www.selectedfew.co.nr*

Alright. This is a simple tutorial about the basics of coding Delphi 7. Please note that if your going to copy and paste this to some website, I will hunt you down if you don't give me credit.

===========================================
THE BASICS -

- Using Procedures
- Commands
- Finishing Up

~ Using Procedures ~
A small how to guide on what you need to know about implimenting
procedures into your own application.

So, you want to make a procedure eh? No problem, lol. It's quite
simple. First, here's what you need to have:

- Something to start the procedure (ex : a button)
- A brain ( I hope you have that...otherwise...)

Alright : Here are the steps to putting the procedure ONTO the button.


First...you need to know the type of procedure your going to be
using on the button (I'm using a button as an example). So, lets
use the procedure 'Click', since it is one of the most common. Of
course, you can use many procedure, and not just 'Click'.

First, open Delphi 7. A blank form should pop up, like this one:



Now, go to the top toolbar where all the components are located. Click the icon that is looks like a button (because it is!)



Once you've done that, click the main form. A button should have appeared.



Now, if you want to, you can customize what the button says. Goto 'Object Inspector' and edit where it says 'Caption'. I gave it the caption 'It's a Button!'

Now, do the same thing, but add a 'Label' instead. The icon for a label is selected in the below image.



Now, go to your main source. To do this, click 'Project' the the Main Menu bar in Delphi, and from there click 'View Source'
Notice the things that are highlighted. They are the button and the label you added.

PLEASE NOTE : When you add your label, clear the caption.



Now, go back the your Form, and double-click the button. Your source should immediately pop up, and a procedure was added. AUTOMATION FTW!



Now...after the word 'Begin' press enter, and type 'Form1.' . After you do that, a menu should have appeared with choices that can follow 'Form1.'. You need to select 'Label1' from the choices.



Once you have done that...lol...you need to type '.' after 'Label1'. It also will come up with a menu. Select 'Caption' from the choices.



Now, type what is highlighted. You can replace 'ZOMG I made a label appear!!!!' With anything you want.



Now, guess what? You wrote a procedure that isn't implemented. Hurray? Not so much. Go back to the main Form and click on the button. In the window 'Object Inspector', select from the tabs 'Events'. At 'OnClick', add the procedure 'Button1Click'. It may already be added though...



Now, if you want to test your application, press 'F9'. Your Form should come up.



Click on the button.



ZOMG! You now know some of the basics of making an Application in Delphi! *Hands Cookie*
===========================================

===========================================
COMMANDS

These are some commands you can use in your form. Remember, I am human. I may have missed some.

Besides the fact, I took the time to actually find all of them, and not copy and paste. What a waste of time. =\

Almost Everything -

Activate
CanResize
Close
CloseQuery
Constrained
Create
Click
ContextPopup
DragDrop
DragOver
EndDock
EndDrag
Enter
Exit
KeyDown
KeyPress
KeyUp
MouseDown
MouseMove
MouseUp
StartDock
StartDrag
Destroy
DockDrop
Deactivate
UnDock
Show
MouseWheel
MouseWheelDown
MouseWheelUp
Paint
Shortcut
Resize
Timer
Notify
PostClick
ObjectMove
ExecuteMacro
Execute
Open
Change
TitleClick
Draw

Graph -

CellClick
CellEnter
CellExit
CollumnMoved
ClickAxis
ClickBackground
ClickSeries
ClickLegend
CanResize
AllowScroll
BeforeDrawAxis
BeforeDrawSeries
Zoom
UndoZoom

Dialog-
SaveClipboard
Canclose
FolderChange
IncludeItem
SelectionChange
TypeChange
Find

ActiveX -
AfterPopup
AfterReplace
BeforeReplace
CheckError
CheckStatus
ClickIn
ClickOut
Complete
Found
Misspelled

Server -

DataChange
StateChange
UpdateData
RemoteServer
TransformApply
TransformGetData
TransformSetParams
AfterConnect
AfterDisconnect
BeforeConnect
AfterDisconnect
Login
GetUsername
Cancel
Post
Scroll
Refresh
Error
UpdateError
UpdateRecord
Update
Accept
Listening
CreatHandler
DestroyHandler
GetThread
Lowcapacity
DesignerSave
DesignerShare
DesignerSaveAs
ROF
First
Restore
SetSort
ValidateRow
Status
Work
WorkBegin
WorkEnd
RemoteIPAddress
RemoteIPPort
SelectProxy
SelectAuthor
Redirect
Authorization
NoCommandHandler
Exeption
Execute
AfterCommand
BeforeCommand
NoCommand
InvalidSession
ListenExeption
SeesionEnd
CreatePostSession
CreateSession
Send
Recieve
Sent
GetPassword
VerifyPeer
StatusInfo
InitializelISO
===========================================

_________________
I didn't quit Maple, maple quit me.

Lol I play MPH
Back to top
View user's profile Send private message MSN Messenger
furiosity
Master Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 448
Location: The Netherlands

PostPosted: Sat Mar 03, 2007 4:16 pm    Post subject: Reply with quote

Some of your pictures aren't working.

Nice tutorial btw, i know most of it because we get Delphi at skool, but still nice tutorial (Y)
Back to top
View user's profile Send private message
iSteam
Grandmaster Cheater
Reputation: 0

Joined: 27 Oct 2006
Posts: 545
Location: Look up.

PostPosted: Sat Mar 03, 2007 5:53 pm    Post subject: Reply with quote

furiosity wrote:
Some of your pictures aren't working.

Nice tutorial btw, i know most of it because we get Delphi at skool, but still nice tutorial (Y)


What school do you go to? Shocked

_________________
I didn't quit Maple, maple quit me.

Lol I play MPH
Back to top
View user's profile Send private message MSN Messenger
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sat Mar 03, 2007 6:32 pm    Post subject: Reply with quote

delphibasics.co.uk is a nice reference to strutils and sysutils
Back to top
View user's profile Send private message
Ungreat
Expert Cheater
Reputation: 0

Joined: 27 Feb 2007
Posts: 215

PostPosted: Sun Mar 04, 2007 4:01 am    Post subject: Reply with quote

I suggest you use the links on the right side as opposed to the left side, by the way. The left ones will give you some examples and a few links to other functions that are related, but the links on the right give you full-on lists still with definitions Smile

I learned all my basics from Delphibasics ... great, now I'm a poster child.

_________________
Code:
mov     r10, qword ptr [rsp+0A28h+arg_5F8]
shl     rdx, 20h
mov     r11, 7010008004002001h
or      rax, rdx
mov     rcx, r10
xor     rcx, rax
lea     rax, [rsp+0A28h+var_2C8]
Oh man, I'm getting too excited
Back to top
View user's profile Send private message
Haruhi Suzumiya.
Master Cheater
Reputation: 1

Joined: 05 Feb 2005
Posts: 463

PostPosted: Tue Mar 06, 2007 7:38 pm    Post subject: Reply with quote

nice tut
diddnt know InitializelISO is a command
Back to top
View user's profile Send private message
Ch04s
Master Cheater
Reputation: 0

Joined: 28 May 2007
Posts: 406
Location: One never knows.

PostPosted: Mon Jun 25, 2007 10:01 am    Post subject: Reply with quote

This is such a fairly easy concept and a retard would understand, nice tut!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites