Today we create our first document in TechEditor — we will type the text, format it and add one elementary application to the project.
1. Create a new report
Start TechEditor to create a new document. On the ribbon Tools File / Document, click New, and then New report:
2. Type the text
Type "Hello, engineering world!" in a text editor:
Select the text in the editor. Format it using the Format ribbon tools:
- font size: 16
- style: bold
3. Create an elementary application
To create a new application, click the New application button on the File/Document toolbar:
Click the New Form button in the appearing application editor:
Select the application language Pascal and click Ok.
Go to the Form tab and click the Components button:
Select the TButton component (button) on the component palette and click on the form:
Click the Inspector button to open the Object Inspector.
Highlight the button on the form. Make sure its properties are displayed in the Inspector:
In the Object Inspector, go to the Events tab and double-click the OnClick event. A template for the Button1Click procedure will automatically appear in the code editor:
In the body of the procedure, enter the following code:
procedure Button1Click(Sender: TObject);
begin
ShowMessage('Hello!');
end;
4. Run application in TeсhEditor
Go to the Run tab and start the application with the Run button. A window with the title "Form1" will appear on the screen — this is the main window of your application.
Click on the "Button1" button. Make sure the message "Hello!" appears on the screen:
Congratulations! This was your first acquaintance with TechEditor.
Download helloworld.zip