i am developing a Lazarus application and i am using a TAction.onUpdate event to enable/disable actions by checking some values (this is the best clear way to do this in Delphi)... in Lazarus this works fine actions are disabled or enabled when it required.. but some the elements that have this actions associated are not updated... for example
i have a Mainmenu with 6 items New open Save Save As Close Exit each item has an Action associated The actions for Save, Save As and Close have the following onUpdate event associated procedure TMainForm.EnableAction(Sender: TObject); begin TAction(Sender).Enabled := Assigned(Course); end; when the program starts Course = nil the items Save and Close appears disabled but Save As looks enabled but it is not cause when you clicked it no action is performed. if someone can help me Wilder González Díaz Faculty of Distance Education Central University of Las Villas
<<winmail.dat>>
