-
Delphi Tutorials
Delphi Tutorials
I am not sure if i posted this in the right section if I didn't please admin or moderator move it to the correct section. Excuse me for my bad grammar.
How to open and hide Forms
Type in what your Form name and type Form1.Hide; that is to hide Form1 and to open Form2 you just type Form1.Hide; Form2.Show; and your done.
If then else statement
Here is an example of an If then else statement
If (Image1.Visible = True)
Then begin Image1Timer.Enabled:= True;
End
Else begin
Image1Timer.Enabled:= False;
How to make things move
This code tells it to move left
Image1.Left := Image1.Left +3
This code tells it to move right
Image1.Left := Image1.Left -3
This code tells it to move down
Image1.Top := Image1.Top -3
This code tells it to move up
Image1.Top := Image1.Top +3
How to Make things transparent
Just go to the object and scroll down where it says transparent double click on it that will set it to true. Just remember that shapes cannot be transparent but images, labels, buttons and bitbutton can.
Case Statement / Key reassign
Go to your form you want to add Click on the form name in Object TreeView click on events scroll done to you see OnKeyDown click on it then click on the white blank area then it will open the unit .pas
And it will automatically take you to the code and will automatically type the procedure just remember it will be different because of the different form name then type Case Key of
Then Type the key you want below Begin
VK stands for Virtual Key and the example below it tells it to close the application when you press escape key. If you don’t know the Virtual Key Codes just look below
Virtual Key Code Corresponding key
VK_LBUTTON Left mouse button
VK_RBUTTON Right mouse button
VK_CANCEL Control+Break
VK_MBUTTON Middle mouse button
VK_BACK Backspace key
VK_TAB Tab key
VK_CLEAR Clear key
VK_RETURN Enter key
VK_SHIFT Shift key
VK_CONTROL Ctrl key
VK_MENU Alt key
VK_PAUSE Pause key
VK_CAPITAL Caps Lock key
VK_KANA Used with IME
VK_HANGUL Used with IME
VK_JUNJA Used with IME
VK_FINAL Used with IME
VK_HANJA Used with IME
VK_KANJI Used with IME
VK_CONVERT Used with IME
VK_NONCONVERT Used with IME
VK_ACCEPT Used with IME
VK_MODECHANGE Used with IME
VK_ESCAPE Esc key
VK_SPACE Space bar
VK_PRIOR Page Up key
VK_NEXT Page Down key
VK_END End key
VK_HOME Home key
VK_LEFT Left Arrow key
VK_UP Up Arrow key
VK_RIGHT Right Arrow key
VK_DOWN Down Arrow key
VK_SELECT Select key
VK_PRINT Print key (keyboard-specific)
VK_EXECUTE Execute key
VK_SNAPSHOT Print Screen key
VK_INSERT Insert key
VK_DELETE Delete key
VK_HELP Help key
Last edited by domma; 11-19-2008 at 11:58 AM.
Reason: Automerged Doublepost
-
Experienced User
WTF is this for? Sorry but can you explain it a bit more.
-
Experienced User
We're not programmers here (most of us)......
-
The Fun Stuff Owner
Huh?
Yes - please provide more info..
-
Experienced User
I think its Windows API code
-
Delphi is a software development environment for Microsoft Windows applications. It has always supported development of native Windows applications in the Delphi programming language, a further development of Object Pascal.
Delphi and Kylix use the Pascal-based Delphi programming language, and compile Delphi source code into native x86 code or managed .NET code. They include the VCL/CLX (Visual Component Library), support for COM independent interfaces with reference counted class implementations, and support for a large number[citation needed] of third-party components. Interface implementations can be delegated to fields or properties of classes. Message handlers are implemented by tagging a method of a class with the integer constant of the message to handle. A strong emphasis is placed on database connectivity, and this made Delphi be often be mistaken for a database (only) front-end designer, given its rich database component set.
-
Experienced User
@domma: why do you write so large
-
Experienced User
What IDE/Compiler do you use for delphi?
-
i just copied it and paste it from wikipedia
i only use delphi 7 since since the school uses it
heres the link for delphi 7 http://www.brothersoft.com/delphi-76437.html
Last edited by domma; 11-20-2008 at 04:19 AM.
-
Experienced User
GOD give me some light here! im blur

knackbag.com
Similar Threads
-
Replies: 5
Last Post: 08-22-2011, 12:21 PM
-
By Newbie Comp user in forum Tutorials
Replies: 3
Last Post: 09-04-2010, 12:08 AM
-
By Lateralus in forum Graphics and Design
Replies: 4
Last Post: 06-09-2009, 11:02 AM
All times are GMT +8. The time now is 05:20 AM.