Sign in Join
Wiki copytemporary

MSEide MSEgui first step: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11**My first mse program.**
22
33This introductory article for beginners. It contains step by step instructions to create the first program.
44
55Naturally, the software MSEide + MSEgui should already be installed.
66
77Start MSEide.
88
99The screen should get a window similar to the following:
1010
11-<figure>
12-<img src="mseide_132.png" title="mseide_132.png" />
13-<figcaption>mseide_132.png</figcaption>
14-</figure>
11+![](/wiki-images/6/67/Mseide_132.png)
1512
1613Let's create a new project.
1714
1815Project menu (Project) - New (New) - From template (From Template).
1916
2017On the screen you get the following:
2118
22-<figure>
23-<img src="mseide_142.png" title="mseide_142.png" />
24-<figcaption>mseide_142.png</figcaption>
25-</figure>
19+![](/wiki-images/a/a4/Mseide_142.png)
2620
2721At this point MSEide prompts you to select a template file for the new project.
2822
2923We can use or default.prj or default_all_langs.prj.
3024
3125Template default.prj has a smaller executable file, default_all_langs.prj will connect automatically language constants, and dialogs (eg, file open dialog), windows maintenance...
3226
3327For this first program we do not have any dialog and service windows, so it is sufficient template default.prj.
3428
3529Select and press Ok.
3630
3731Click new. Cat-g (New dir) to create a directory.
3832
3933In the dialog box that appears, type "hellodemo" and click Ok.
4034
4135In the second field from the bottom of the window New Project (New Project), enter "hello".
4236
4337Prj extension will be added automatically.
4438
4539Now click Ok:
4640
47-<figure>
48-<img src="mseide_152.png" title="mseide_152.png" />
49-<figcaption>mseide_152.png</figcaption>
50-</figure>
41+![](/wiki-images/0/0b/Mseide_152.png)
5142
5243You have created your first project !
5344
5445You should have at least four windows :
5546
5647\- 'MSEide (hello.prj)' - 'Component Palette (Component palette)' - 'Messages' - 'Source Code (Source, Messages) (Ctrl + F1) 'and' * mainfo '.
5748
5849Click on the box '* mainfo' (the smallest).
5950
6051Now you've got another important window =\> 'Object Inspector mainfo (Object inspector mainfo)'.
6152
6253For added convenience, grab the mouse box '* mainfo' for any angle and a little stretch.
6354
6455You will get something like this:
6556
66-<figure>
67-<img src="mseide_162.png" title="mseide_162.png" />
68-<figcaption>mseide_162.png</figcaption>
69-</figure>
57+![](/wiki-images/3/36/Mseide_162.png)
7058
7159This is the main form of your project - its main window.
7260
7361On it you will put the necessary visual or non-visual components.
7462
7563Take components needed from the ('Palette components (Component palette)'):
7664
77-<figure>
78-<img src="mseide_172.png" title="mseide_172.png" />
79-<figcaption>mseide_172.png</figcaption>
80-</figure>
65+![](/wiki-images/9/90/Mseide_172.png)
8166
8267The components are located on multiple pages.
8368
8469To switch between pages click on tabs at the top of the window.
8570
8671If you hold for a while the mouse pointer over a component, you will be prompted with the class (type) of this component.
8772
8873Now get component Widget tbutton and once click on it
8974
9075Now click on the main form of your project. Component appeared on the form.
9176
9277Place the mouse over the component.
9378
9479Now press the left mouse button and hold, move it to the side.
9580
9681Release the mouse button. Thus it is possible to move the component form.
9782
9883To change the size, perform the same steps with the black squares arranged around the perimeter of the component.
9984
10085Place the component in the right top of the form:
10186
102-<figure>
103-<img src="mseide_182.png" title="mseide_182.png" />
104-<figcaption>mseide_182.png</figcaption>
105-</figure>
87+![](/wiki-images/6/6d/Mseide_182.png)
10688
10789Go to the ('The object inspector mainfo (Object inspector mainfo)').
10890
10991In the drop-down list, select (if there is not already selected) tbutton1 (tbutton).
11092
11193Below in the box to the right of the field caption, type the - button.
11294
11395Now you have set the value of the caption in the 'button:
11496
115-<figure>
116-<img src="mseide_192.png" title="mseide_192.png" />
117-<figcaption>mseide_192.png</figcaption>
118-</figure>
97+![](/wiki-images/3/35/Mseide_192.png)
11998
12099Get the component type tlabel and place it on the left of our first button.
121100
122101Go to the Inspector window and select the object tbutton1 (tbutton) and
123102
124103set the value of a field in onexecute 'pressed' and press the Enter key on the keyboard.
125104
126105In the description of the class will be added the setnewaction method,
127106
128107and in the text of the module will be an empty implementation of this method.
129108
130109This method (procedure) will be called when the button is pressed.
131110
132111Go to the editor ('messages, source code (Source, Messages) (Ctrl + F1)') and edit the procedure pressed:
133112
134113` procedure tmainfo.pressed(const sender:TObject);`\
135114` begin`\
136115` tlabel1.caption:='Hello World!';`\
137116` end;`
138117
139118Back in the form with a second button, write 'output' and in the procedure body onexecute,
140119
141120called by pressing the (procedure name as you want), register one line:
142121
143122` application.terminated:=true;`
144123
145124Run one of three ways:
146125
147126\- By clicking on the green triangle in the main window;
148127
149128\- Pressing F9;
150129
151130\- In menu (Target) - Continue to start (Continue)
152131
153-<figure>
154-<img src="mseide_202.png" title="mseide_202.png" />
155-<figcaption>mseide_202.png</figcaption>
156-</figure>
132+![](/wiki-images/1/18/Mseide_202.png)
157133
158134This wiki was greatly inspired by web page of Alexei Yu Ulasevich (STAKANOV) =\> <http://freepascal.ru/article/mse>
159135
160136---
161137*From the Free Pascal wiki, page "MSEide MSEgui first step", as it stood on 2020-09-01 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
162138Category: MSEide+MSEgui
163139Category: Tutorials

Back to history