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.017 c
4-367
mishaa1
2002-01-31 01:21
2002.04.01
win api


14-287
Sir alex
2002-02-04 19:44
2002.04.01
DMFC 1.1.003a (that's what competition means!)


1-130
Zool
2002-03-21 20:46
2002.04.01
How to create your class


1-218
from
2002-03-20 13:30
2002.04.01
How to programmatically create a temporary form?


1-197
tovSuhov
2002-03-19 18:03
2002.04.01
Inactive form ...





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 ภาษาไทย turkish Ukrainian urdu Tiếng Việt 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