Jump to content

generic method to follow the user activity


delagoutte

Recommended Posts

  • 4 weeks later...
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;

 

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
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 ?

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

  • 2 years later...

@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;

 

Link to comment
Share on other sites

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;

 

  • Thanks 1
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...