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

Down

How to correctly associate a button with ToolBara with a menu item in MainMenu? Find similar branches


kserg@ukr.net   (2001-12-19 13:11) [0]

I linked the menu with the menu button via its MenuItem link.
And everything automatically hooked on the menu:
OnClick event, hint, icon.
But when I programmatically set the menu item Enable,
then the button still looks accessible.
Although the onclick event is not really called.
What's the matter?
Thanks in advance.



Jony   (2001-12-19 13:28) [1]

All parameters associated with the MenuItem (Hint, Enable, icon) button must be set programmatically synchronously with the corresponding menu items. Unfortunately.



Digitman   (2001-12-19 13:29) [2]

Link these controls (menu element and button) through a single TAction in a TActionList. This centralization of logic will allow you to manage the state of the sv-va Enabled of all TAction-related controls through the state of a single sv-va - TAction.Enabled



Александр С.   (2001-12-19 13:41) [3]

Not only Enabled but also Visible, Checked, etc.



kserg@ukr.net   (2001-12-19 14:10) [4]

> Jony
Dear, I think you are mistaken: I do not have Hint-a on the button,
and he "leaves"; ImageIndex on the button = -1, and when loading the button has a corresponding icon.
So I realized that the case is dark ...



Pages: 1 whole branch

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

Top





Memory: 0.55 MB
Time: 0.03 c
14:22391
Serg5
2001-11-10 10:29
2002.01.08
Who is not lazy, go to http://forum.ru-board.com/, it really hangs, or IP filtering, they won't let me.


6:22276
Lamok
2001-10-05 23:13
2002.01.08
Sending data to the Internet


3:21939
SAN
2001-12-04 16:01
2002.01.08
MSSQL


1:22257
Dmitry1
2001-12-14 16:53
2002.01.08
Good day


1:22000
Striker
2001-12-13 07:59
2002.01.08
Transferring data to an Excel worksheet cell





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