Difference between revisions of "MSEide MSEgui first step"

From Lazarus wiki
Jump to navigationJump to search
Line 65: Line 65:
  
 
[[File:mseide_17.png]]
 
[[File:mseide_17.png]]
 +
 +
 +
The components are located on multiple pages.
 +
To switch between pages click on tabs at the top of the window.
 +
If you hold for a while the mouse pointer over a component, you will be prompted with the class (type) of this component.
 +
 +
Now get component Widget tbutton and once click on it
 +
Now click on the main form of your project. Component appeared on the form.
 +
Place the mouse over the component.
 +
Now press the left mouse button and hold, move it to the side.
 +
Release the mouse button. Thus it is possible to move the component form.
 +
To change the size, perform the same steps with the black squares arranged around the perimeter of the component.
 +
Now, taking advantage of the knowledge acquired place the component in the right top of the form:

Revision as of 23:12, 1 December 2014

The first mse program.


This introductory article for beginners. It contains step by step instructions to create the first program. Naturally, the software MSEide + MSEgui should already be installed.


Start MSEide. The screen should get a window similar to the following:

mseide 13.png


Let's create a new project. Project menu (Project) - New (New) - From template (From Template). On the screen you get the following: mseide 14.png


At this point MSEide prompts you to select a template file for the new project.


We can use or default.prj or default_all_langs.prj. Template default.prj has a smaller executable file, default_all_langs.prj will connect automatically language constants, and dialogs (eg, file open dialog), windows maintenance...


In this case, we do not have any dialog and service windows, so it is sufficient template default.prj.

Select and press the Ok.


Click new. Cat-g (New dir) to create a directory. In the dialog box that appears, type "hello" and click Ok. In the second field from the bottom of the window New Project (New Project), enter "hello". Prj extension will be added automatically.


Now click Ok:

mseide 15.png


You have created your first project !


You should have at least four windows :


- 'MSEide (hello.prj)' - 'Component Palette (Component palette)' - 'Messages' - 'Source Code (Source, Messages) (Ctrl + F1) 'and' * mainfo '.

Click on the box '* mainfo' (the smallest). Now you've got another important window => 'Object Inspector mainfo (Object inspector mainfo)'.


For added convenience, grab the mouse box '* mainfo' for any angle and a little stretch. You will get something like this: mseide 16.png


This is the main form of your project - its main window. On it you will put the necessary visual or non-visual components. Take components needed to be in the ('Palette components (Component palette)'):

mseide 17.png


The components are located on multiple pages. To switch between pages click on tabs at the top of the window. If you hold for a while the mouse pointer over a component, you will be prompted with the class (type) of this component.

Now get component Widget tbutton and once click on it Now click on the main form of your project. Component appeared on the form. Place the mouse over the component. Now press the left mouse button and hold, move it to the side. Release the mouse button. Thus it is possible to move the component form. To change the size, perform the same steps with the black squares arranged around the perimeter of the component. Now, taking advantage of the knowledge acquired place the component in the right top of the form: