Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2005.06.06;
Скачать: 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 вся ветка

Текущий архив: 2005.06.06;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.026 c
14-1116490997
GrayFace
2005-05-19 12:23
2005.06.06
Протестируйте программу на Win9x и WinMe.


14-1116396012
Kerk
2005-05-18 10:00
2005.06.06
С днем рожденья! 18 мая


3-1114701922
Alex77777
2005-04-28 19:25
2005.06.06
Как организовать загрузку в Stringgrid из текстового файла


14-1116441712
AlterEgo of WondeRu
2005-05-18 22:41
2005.06.06
Есть ли прибамбас - ТуллбарКнопка для IE


3-1114500228
Max Zyuzin
2005-04-26 11:23
2005.06.06
Отображение строк в DBGrdi