I downloaded Delphi 7. I launch it, there opens a window for editing Unit1.pas. Further I click File-> New-> Application. Flies the same. If you want, look at the screenshot of this window:

alt text

Closed due to the fact that the issue is too general for the participants Pavel Mayorov , user194374, fori1ton , Kromster , Bald Jul 6 '16 at 4:52 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • one
    Throw a button on the form, double-click with the mouse, he will throw the cursor into the necessary part of the editor: there and write the processing of pressing the button. - DelphiM0ZG
  • one
    Well, write this code: ShowMessage ('OK was pressed'); - DelphiM0ZG
  • one
    and what's the problem? ))) - IgorShum
  • @ DelphiM0ZG I am laughing to correct you, but the code would be more acceptable to the situation: ShowMessage('Hello World'); - I_CaR
  • People, start learning something by reading INSTRUCTIONS, books for beginners. Or if it is difficult to read, then you can watch the Video Course. And best of all (better) go to study! - I_CaR

1 answer 1

So it should be, there is also a form designer. This is a module of the main form, in it and write the code of your program (handlers of various events from controls). And if you want to see the source, then so: Project -> ViewSource .

  • In which part exactly should I write the program code? private, public or implementation - delphikettle
  • 2
    In general, in the implementation section of the modules - Implementation - here you need to describe the procedures and functions, and their names - depending on the level of visibility: Private - only this module can be used, Public - the procedure can be used everywhere (from this program). - DelphiM0ZG
  • one
    And, in general, as I understand it, you need: <a href=" masterlite.delphicomponent.ru/"> here </ a >. There's a video course for dummies. - DelphiM0ZG
  • In general, as in Pascal. And how, for example, to display some text in this window? For example, how do I execute this code here: var buttonSelected: Integer; begin // Display a dialog with confirmation buttonSelected: = MessageDlg ('Confirmation', mtError, mbOKCancel, 0); // Show the type of the selected button if buttonSelected = mrOK then ShowMessage ('OK was pressed'); if buttonSelected = mrCancel then ShowMessage ('Cancel was pressed'); end; - delphikettle