Jump to content

Why TUniMenuItem.Click Does Nothing?


Frederick

Recommended Posts

I have a TUniMenuItem with a name property of mnuSomething that has the following code in the OnClick event:-

showmessage('here');

In another part of the main form, I have a button that has the following code:-

mnuSomething.Click;

The OnClick event code is not processed and I do not see the message.

I have tested the above code in a VCL application and the method call works, as it should.

How do I get the OnClick event for the UniGUI application to fire? 

--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1511)
 

Link to comment
Share on other sites

28 minutes ago, Frederick said:

The OnClick event code is not processed and I do not see the message.

One possible solution for now I think:

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  //mnuSomething.Click;
  mnuSomethingClick(mnuSomething);
end;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...