uniguisyriusz Posted July 23, 2018 Share Posted July 23, 2018 How to set onclick action to menuitem with subitems? After click on arrow of menuitem it extends and fires onclick, but I want only extend and see subitems. Quote Link to comment Share on other sites More sharing options...
uniguisyriusz Posted July 23, 2018 Author Share Posted July 23, 2018 Uni GUI v 1.10.0.1457, Complete Professional Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 23, 2018 Share Posted July 23, 2018 Hi, How to set onclick action to menuitem with subitems? After click on arrow of menuitem it extends and fires onclick, but I want only extend and see subitems. Sorry, can you explain in more details, OnClick handler of what ? Quote Link to comment Share on other sites More sharing options...
uniguisyriusz Posted July 24, 2018 Author Share Posted July 24, 2018 Here is video: https://www.useloom.com/share/e6acc7c1ae084ba9893400db4a01a9ed When I click item3 over the arrow, subitems are expanding and onclick is fire. I want to only expand subitems of item3. When I click over the text "item3" only onclick is executing, subitems not expanding. Code: procedure TMainForm.item11Click(Sender: TObject); begin ShowMessage('item1onclick'); end; procedure TMainForm.item21Click(Sender: TObject); begin ShowMessage('item2onclick'); end; procedure TMainForm.item31Click(Sender: TObject); begin ShowMessage('item3onclick'); end; procedure TMainForm.subitem11Click(Sender: TObject); begin ShowMessage('subitem1onclick'); end; procedure TMainForm.subitem21Click(Sender: TObject); begin ShowMessage('subitem2onclick'); end; Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 24, 2018 Administrators Share Posted July 24, 2018 Please do as following: Set SelectOnExpander to False. Set ExpanderOnly to True. Quote Link to comment Share on other sites More sharing options...
uniguisyriusz Posted July 25, 2018 Author Share Posted July 25, 2018 I can't see ExpanerdOnly property. I see two properties starting with E Enabled and ExpanderFirst (I'm looking at TUniTreeMenu properties). Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 25, 2018 Share Posted July 25, 2018 I can't see ExpanerdOnly property. I see two properties starting with E Enabled and ExpanderFirst (I'm looking at TUniTreeMenu properties). Please upgrade to the latest build Quote Link to comment Share on other sites More sharing options...
uniguisyriusz Posted July 26, 2018 Author Share Posted July 26, 2018 Version 1.10.0.1472: https://www.useloom.com/share/8cfb6ac147974b8a9cb10992c9cbf241 Still Onclick fires when menu is expanding. Properties set corectly. Delphi XE7 project: https://drive.google.com/open?id=1QHI67HaKGVzshiswy8oH7Nw4OWO24FS0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.