Вниз
Скачать: 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.036 c
6-1111410766
Chaser
2005-03-21 16:12
2005.06.06
Indy TCP клиент и сервер не коннектятся если 2 сетевухи на компе


4-1113482304
_AndreW_
2005-04-14 16:38
2005.06.06
Можно ли управлять чужим приложением, используя его же классы?


6-1111128147
leonidus
2005-03-18 09:42
2005.06.06
Копирование файлов по локальной сети


1-1116713847
Max_005
2005-05-22 02:17
2005.06.06
Компиляция программы в Delphi 2005


1-1116501266
microcomp
2005-05-19 15:14
2005.06.06
Дельфийский ассемблер




   Наверх