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.56 MB
Time: 0.02 c
We answer immediately.
Daiz13
2002-03-05 10:58
2002.04.01
Creating Interbase users


We answer immediately.
vasilly
2002-03-06 10:01
2002.04.01
Using MS SQL 7 + BDE stored procedures !!!


We answer immediately.
PEC
2002-03-20 10:33
2002.04.01
Help plz


We answer immediately.
Malder
2002-03-05 19:23
2002.04.01
How to cancel a transaction in a trigger?


We answer immediately.
alexts
2002-03-20 15:21
2002.04.01
Problems with MDI and DLL





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 Español 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