Вниз
Скачать: CL | DM;

Субменю в PopupMenu   Найти похожие ветки 

← →
Phoenix ©   (2005-05-24 12:32) [0]

Как добавить субменю в PopupMenu?


← →
Phoenix ©   (2005-05-24 12:33) [1]

ЧТо бы не возникло непонимания уточню - как ПРОГРАММНО добавить субменю в PopupMenu


← →
Gero ©   (2005-05-24 12:35) [2]


> ЧТо бы не возникло непонимания уточню - как ПРОГРАММНО добавить
> субменю в PopupMenu

Не думаю, что кто-то попытался бы сделать это аппаратно.


← →
Alx2 ©   (2005-05-24 12:35) [3]

MenuItem.Add(TMenuItem.Create(MenuItem));


← →
Alx2 ©   (2005-05-24 12:37) [4]

Пример в Help:

This example assumes that the main form of the application has a main menu with a Windows menu item.  The following code adds a separator, and the name of all forms to the Windows menu.

var
 NewItem: TMenuItem;
 I : integer;
begin
 { first create the separator }
 NewItem := TMenuItem.Create(Self);
 NewItem.Caption := "-";
 { add the new item to the Windows menu }
 Windows.Add(NewItem);
 { now create and add a menu item for each form }
 for  I := 0 to Screen.FormCount-1 do
 begin
   NewItem := TMenuItem.Create(Self);
   NewItem.Caption := Screen.Forms[I].Name;
   Windows.Add(NewItem);

 end;

end;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.033 c
14-1116629152
Palladin
2005-05-21 02:45
2005.06.06
Как вам SOAD - Mezmerize, Vol. 1 aka Soldier side ?


1-1116480020
Аноним
2005-05-19 09:20
2005.06.06
Всем Как в консолном приложении вернуть Error level для обработки


1-1116487474
dp200
2005-05-19 11:24
2005.06.06
Как програмно открыть файл в конкретном приложении


14-1116577335
_RusLAN
2005-05-20 12:22
2005.06.06
Delphi World 6.0 со всеми базами и сразу. Скачать


1-1116553868
guest22
2005-05-20 05:51
2005.06.06
Chart компонент




   Наверх