![]() |
dxBarManager и TForm.WindowMenu
Delphi
Использую dxBarManager в качестве главного меню главной формы MDI приложения. Можно ли как-то подключить WindowMenu к элементу меню dxBarManager , чтобы в него автоматом добавлялся список открытих дочерних окон? Т.е. чтобы работало навроде подключения стандартого элемента меню TMainMenu. |
Код:
The following code demonstrates organization of MDI child lists with the help of the TdxBarListItem object. If the ShowCheck property of a given class is equal to True, then at the current item (in our case it is the current MDI child form) a "check" is displayed. While selecting any window from the list, it becomes active - While destroying - it removes the corresponding string. This example assumes that the window caption contains the file name. With the change of this name, the caption and the corresponding string in the MDI child list also changes.Код:
This example illustrates how you can create a list of MDI child windows with the help of TdxBarListItem. When creating a child window, its caption is added to the item list. Upon selecting a window from the list, the dxBarListWindowsClick procedure (the OnClick event handler) is called. The OnGetData event handler is used to mark the current active child window within the list. |
Большое спасибо.
Сейчас буду пробовать. |
| Часовой пояс GMT +4, время: 18:06. |
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.