Вниз
Скачать: 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.44 MB
Время: 0.053 c
2-1142724038
ga3
2006-03-19 02:20
2006.04.02
проблема с ActiveX dll


2-1142841790
RomanH
2006-03-20 11:03
2006.04.02
Ввод в MaskEdit


15-1141971458
Mozart
2006-03-10 09:17
2006.04.02
ADSL


2-1142841579
Dust
2006-03-20 10:59
2006.04.02
Найти максимальное кол-во символов в указанном Rect


15-1141968672
nap<>
2006-03-10 08:31
2006.04.02
Сервисы




   Наверх