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

Как заменить подменю на другое?   Найти похожие ветки 

 
Muller   (2005-08-04 16:07) [0]

const
 MENU_POSITION := 8;

var
 K,M : PMenu;

procedure MyFirstProc;
begin
 K := NewMenu...
 PopupMenu1.InsertSubMenu(K,MENU_POSITION)
 ...
end;

procedure MySecondProc;
begin
 M := NewMenu...

 // здесь хочу заменить (под)меню K на M
 // удаление К и вставка М нежелательна!!!

 ...
end;


 
Dodfr   (2005-08-04 16:43) [1]

I don"t read russain but babelfish translator help a bit.

If you want to replace a pmenu item by another one just do :

PopupMenu.Item[MENU_POSITION]:=M

This should work.


 
Muller   (2005-08-06 21:50) [2]

нет, не получается

есть только PopupMenu.ItemS, но ему нельзя присваивать



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

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



Память: 0.45 MB
Время: 0.029 c
15-1142070596
Nic
2006-03-11 12:49
2006.04.02
P IV - 2800 (533 MHz FSB) vs Athlon 64 3000+


15-1142005389
ArtemESC
2006-03-10 18:43
2006.04.02
Пневмоника


15-1141987726
unit
2006-03-10 13:48
2006.04.02
DBGrid


1-1141225888
ArtemESC
2006-03-01 18:11
2006.04.02
Алгоритм поиска относительного пути...


2-1142767748
Wood
2006-03-19 14:29
2006.04.02
О переменной окружения.




   Наверх