Results 1 to 10 of 10
  1. #1
    Newbie
    Overall activity: 0%

    Join Date
    Dec 2007
    Posts
    34
    Liked
    0 times
    Points
    4,019

    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

  2. #2
    Experienced User
    Overall activity: 0%

    Join Date
    Jun 2008
    Location
    India
    Posts
    2,445
    Liked
    31 times
    Points
    13,499
    WTF is this for? Sorry but can you explain it a bit more.

  3. #3
    Experienced User
    Overall activity: 0%

    Join Date
    Jan 2008
    Location
    Fgura, Malta
    Posts
    490
    Liked
    1 times
    Points
    6,050
    We're not programmers here (most of us)......

  4. #4
    The Fun Stuff Owner
    Overall activity: 0%

    Join Date
    Jun 2008
    Location
    UK
    Posts
    2,883
    Liked
    7 times
    Points
    28,077
    Huh?

    Yes - please provide more info..

  5. #5
    Experienced User
    Overall activity: 0%

    Join Date
    Sep 2007
    Location
    L*N*D*N
    Posts
    2,627
    Liked
    0 times
    Points
    26,492
    I think its Windows API code

  6. #6
    Newbie
    Overall activity: 0%

    Join Date
    Dec 2007
    Posts
    34
    Liked
    0 times
    Points
    4,019
    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.

  7. #7
    Experienced User
    Overall activity: 0%

    Join Date
    Sep 2007
    Location
    L*N*D*N
    Posts
    2,627
    Liked
    0 times
    Points
    26,492
    @domma: why do you write so large

  8. #8
    Experienced User
    Overall activity: 0%

    Join Date
    Jan 2008
    Location
    Fgura, Malta
    Posts
    490
    Liked
    1 times
    Points
    6,050
    What IDE/Compiler do you use for delphi?

  9. #9
    Newbie
    Overall activity: 0%

    Join Date
    Dec 2007
    Posts
    34
    Liked
    0 times
    Points
    4,019
    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.

  10. #10
    Experienced User
    Overall activity: 22.0%

    Join Date
    Aug 2008
    Location
    MY ~ Local Host
    Posts
    712
    Liked
    1 times
    Points
    9,501
    GOD give me some light here! im blur

    knackbag.com

 

 

Similar Threads

  1. 35 Linux Tutorials
    By solin in forum Linux
    Replies: 5
    Last Post: 08-22-2011, 12:21 PM
  2. How to write tutorials
    By Newbie Comp user in forum Tutorials
    Replies: 3
    Last Post: 09-04-2010, 12:08 AM
  3. Photoshop tutorials
    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.