On Tue, 15 Aug 2006 11:50:51 -0500
"Wilder Gonzalez Diaz" <[EMAIL PROTECTED]> wrote:
> 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
Can you create a small example?
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives