Announcement

Collapse
No announcement yet.

Mudar a côr de um pugin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mudar a côr de um pugin

    Hi, guys

    Can someone help me please.
    I need to change the color of a plugin when I hover over another one, as shown in the image.

    (On Enter in plugin1 changes the color of plugin2)

    I don't know how to do it, I've tried some codes but nothing works.

    Thanks.​

    Click image for larger version

Name:	OVER_COLOR.png
Views:	80
Size:	95.1 KB
ID:	310465

  • #2
    Hi are the plugins "Object - Shape"?
    Click image for larger version

Name:	shapes.png
Views:	63
Size:	20.2 KB
ID:	310467

    Comment


    • #3
      Yes friend colc

      Comment


      • #4
        OK it is in the plugin help file , but here is an example
        shape properties.apz

        Cheers

        Comment


        • #5
          Thanks a lot buddy colc, it was exactly what I needed.

          One question, does it work with any object?​

          Comment


          • #6
            Yes if the object has a color properties - or you can change any property of the object see set properties in help file
            Here is an example of changing cursor

            Code:
            --Change all object cursors at once/runtime?
            
            function SetArrowCursor()
            --Using a default table containing the cursor type
            tblProperties = {Cursor = CURSOR_ARROW};
            
            --Enumerating all objects in the page
            tblObjects = Page.EnumerateObjects();
            
            --Using a for to perform actions for each object, and for its type
            for sObject in pairs(tblObjects) do
            
            --Getting the object type
            nOBJType = Page.GetObjectType(sObject);
            
            --Setting the properties
            if (sOBJType == OBJECT_BUTTON) then
            Button.SetProperties(sObject, tblProperties);
            elseif (sOBJType == OBJECT_LABEL) then
            Label.SetProperties(sObject, tblProperties);
            elseif (sOBJType == OBJECT_PARAGRAPH) then
            Paragraph.SetProperties(sObject, tblProperties);
            elseif (sOBJType == OBJECT_IMAGE) then
            Image.SetProperties(sObject, tblProperties);
            elseif (sOBJType == OBJECT_VIDEO) then
            Video.SetProperties(sObject, tblProperties);
            elseif (sOBJType == OBJECT_HOTSPOT) then
            Hotspot.SetProperties(sObject, tblProperties);
            elseif (sOBJType == OBJECT_RADIOBUTTON) then
            RadioButton.SetProperties(sObject, tblProperties);
            elseif (sOBJType == OBJECT_CHECKBOX) then
            CheckBox.SetProperties(sObject, tblProperties);
            elseif (sOBJType == OBJECT_SLIDESHOW) then
            SlideShow.SetProperties(sObject, tblProperties);
            elseif (sOBJType == OBJECT_XBUTTON) then
            xButton.SetProperties(sObject, tblProperties);
            end
            end
            end
            
            --to call function use this:
            SetArrowCursor();
            
            --Note 1: not all objects in AMS have a cursor property, this function will operate only with the ones that have it.​
            --Note 2: this function enumerates the objects only on one page, the one where it's called.
            -- If you have multiple pages, you may need to call the function for each page.​

            Comment


            • #7
              I am very grateful for your help friend colc
              I will definitely use these codes well, it is very useful for my projects.

              Thank you very much

              Strong hug​

              Comment

              Working...
              X
              😀
              🥰
              🤢
              😎
              😡
              👍
              👎