delagoutte Posted June 18, 2020 Author Share Posted June 18, 2020 i don't see th feature in the new version v1.90.0.1533. is it an oversight ? or is it for the next , next, next ,next ..... release Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted July 16, 2020 Share Posted July 16, 2020 On 6/18/2020 at 11:22 AM, delagoutte said: i don't see th feature in the new version v1.90.0.1533. is it an oversight ? or is it for the next , next, next ,next ..... release Hello, You will get it with the next build. You need to use this code OurComponent:= TExtObject(aObject).AttachedComponent; if OurComponent is TUniMenuControl then OurComponent:= TUniMenuControl(OurComponent).AttachedComponent; 1 Quote Link to comment Share on other sites More sharing options...
delagoutte Posted August 7, 2020 Author Share Posted August 7, 2020 On 7/16/2020 at 9:57 PM, Hayri ASLAN said: Hello, You will get it with the next build. You need to use this code OurComponent:= TExtObject(aObject).AttachedComponent; if OurComponent is TUniMenuControl then OurComponent:= TUniMenuControl(OurComponent).AttachedComponent; thanks for this feature in version1535. now, with this new property i know the name of the tunimenucontrol but i don't know th item on this menu that is clicked. is there a mathod for having this information ? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted August 8, 2020 Share Posted August 8, 2020 On 8/7/2020 at 5:37 AM, delagoutte said: thanks for this feature in version1535. now, with this new property i know the name of the tunimenucontrol but i don't know th item on this menu that is clicked. is there a mathod for having this information ? Hi, Yes, I realized it's always unimainmenu. We are changing it and you will get it with the next build. Quote Link to comment Share on other sites More sharing options...
delagoutte Posted January 2, 2023 Author Share Posted January 2, 2023 @Hayri ASLAN i come back on this topic because it seems that you dont make th change. or maybe i don't understand how can i have the item that is clicked in a menu ? Quote Link to comment Share on other sites More sharing options...
delagoutte Posted January 2, 2023 Author Share Posted January 2, 2023 @Hayri ASLAN ithink i found the solution in the property : i use this : if aObject.ClassName = 'TJSMenuItem' then begin OurComponent:= TJSMenuItem(aObject).AttachedMenuItem; end else begin OurComponent:= TExtObject(aObject).AttachedComponent; if OurComponent is TUniMenuControl then OurComponent:= TUniMenuControl(OurComponent).AttachedComponent; end; Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted January 2, 2023 Share Posted January 2, 2023 10 minutes ago, delagoutte said: @Hayri ASLAN ithink i found the solution in the property : i use this : if aObject.ClassName = 'TJSMenuItem' then begin OurComponent:= TJSMenuItem(aObject).AttachedMenuItem; end else begin OurComponent:= TExtObject(aObject).AttachedComponent; if OurComponent is TUniMenuControl then OurComponent:= TUniMenuControl(OurComponent).AttachedComponent; end; can you try this OurComponent:= TExtObject(aObject).AttachedComponent; if TExtObject(aObject) is TJSMenuItem then begin OurComponent:= TJSMenuItem(TExtObject(aObject)).AttachedMenuItem; end; 1 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.