Hi all. I have a Delphi 7, and using XP theme I have a problem in Toolbar Component,wen i want to disable or enable Menu item the Main Menu of the toolbar at run time, the toolbar buttons never change their state. According to the help it says: " Note: The toolbar does not dynamically track any changes to the menu specified by Menu. That is, it sets the tool buttons to reflect the set of items in the menu at the point when the application sets this property, and ignores any subsequent changes. "
I tried to refresh the controls Menu Property of toolbar like this: Toolbar.Menu := nil; Toolbar.Menu := MainMenu; But after the testing the program an EAccessViolation error raised after reassigning the Main Menu. Then i set Enable property to the corresponding Buttons to those in the Main Menu, but they don't look in the right way. So haw can i refresh My Main menu in toolbar component?

