New article Graphical Interfaces II: the Menu Item Element (Chapter 1) has been published:
the second part of the series, we will show in detail the development
of such interface elements as main menu and context menu. We will also
mention drawing elements and create a special class for it. We will
discuss in depth such question as managing program events including
In the chapters of the first series, we discussed in full the process of
developing the main structure of the library for creating graphical
interfaces. There, we also created the main element of the interface - a
form for controls. The first article: Graphical Interfaces I: Preparation of the Library Structure (Chapter 1)
explains in detail what this library is for. A complete list of links
to the articles of the first part is at the end of each chapter. There,
you can also download a complete version of the library at the current
stage of development. The files must be placed in the same directories
as they are located in the archive.
It is difficult to find a program that does not have the main menu. The MetaTrader
terminals also have this interface element (see the screenshot below).
Usually, the menu is located in the top left part of the program window
and consists of several items. A left mouse click on a menu item brings
up a drop-down list with the program options.
Fig. 1. Main menu in the MetaTrader 5 terminal
This drop-down list is called a context menu and can contain several types of items. Let us consider each of them in detail:
Author: Anatoli Kazharski