Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.04.01;
Download: [xml.tar.bz2];

Down

QUICK MENU Find similar branches


GenBr   (2002-03-18 13:22) [0]

Hello!
The question is probably not too complicated.
The fact is that I need to dynamically add several items to the main menu.
I do as follows:
var mmiFile: TMenuItem; begin mmiFile.Add (SmthArrayOfTMenuItem); end;
And now the question: is it possible to make the group not added to the end of the list, but, for example, to the penultimate position.
Thank you in advance.



Виктор Щербаков   (2002-03-18 13:25) [1]

TMenuItem.Insert



Song   (2002-03-18 13:26) [2]

Inserts a menu item into a specified position in the Items array.

procedure Insert (Index: Integer; Item: TMenuItem);




GenBr   (2002-03-18 13:50) [3]

4all
Thanks a lot! :-)



ПиВО!!   (2002-03-18 22:08) [4]

And I still have a question, in the subject ...
How to dynamically change the menu, I figured out ...
And how, for each of the elements to describe its event (OnClick)



N/A   (2002-03-18 23:41) [5]

type
TForm1 = class (TForm)
procedure MenuItemClick (Sender: TObject);
.

mmiFile.Items [i] .OnClick: = MenuItemClick;



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.04.01;
Download: [xml.tar.bz2];

Top





Memory: 0.55 MB
Time: 0.019 c
1-252
Dok_3D
2002-03-20 14:36
2002.04.01
How to programmatically remove COM + application?


14-316
mr_X
2002-02-13 17:24
2002.04.01
Who will tell who will tell where you can get the resource files, all sorts of icons bmp-shki, etc.


1-131
vampire
2002-03-20 21:33
2002.04.01
~ CGI ~


4-367
mishaa1
2002-01-31 01:21
2002.04.01
win api


1-213
Vasya-X
2002-03-20 11:54
2002.04.01
Import from Word





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic Indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Spanish swahili Swedish Thai turkish Ukrainian urdu Vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada Khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish