Вниз
Скачать: 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.035 c
2-1142438297
Vitalik__
2006-03-15 18:58
2006.04.02
stringgrid


15-1141730029
Pazitron_Brain
2006-03-07 14:13
2006.04.02
Skype


3-1139468674
DELORAC
2006-02-09 10:04
2006.04.02
BLOB Поля. Invalid Field Type!


2-1142724038
ga3
2006-03-19 02:20
2006.04.02
проблема с ActiveX dll


11-1123749677
Dodfr
2005-08-11 12:41
2006.04.02
Amazing bug ?




   Наверх