Announcement

Collapse
No announcement yet.

FREE: Resize Plugin

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

  • FREE: Resize Plugin

    This code was created by the author of the ResizeAJK example. I'm not sure who you are so if you created this code let me know and I'll put your actual name in the credits.

    This code was made to resize most of the objects in your project at runtime as the user resized the application. I modified it to work with grid and plugin objects and it seems to work like a charm.

    Please let me know if you guys find any bugs.
    Last edited by Centauri Soldier; 08-26-2009, 04:35 PM.
    https://github.com/CentauriSoldier

  • #2
    Wow! I shouldn't be posting this late. I meant to say "I modified it to work with grid and plugin objects as well and it seems to work like a charm".

    This plugin will resize all of the objects in the application.
    https://github.com/CentauriSoldier

    Comment


    • #3
      BUG

      Install.txt
      Place the Goto plugin folder in you "AutoPlay Media......
      amsplugins.com Is Closed.

      Facebook Page

      Comment


      • #4
        im pretty sure one of the IR team posted that example, nice work :yes

        Place the Goto plugin folder in you "AutoPlay Media......
        lol, copy n paste error!, i do it all the time

        Comment


        • #5
          Originally posted by reteset View Post
          BUG

          Install.txt
          Lol, yep, copy and paste. Thanks Reteset.

          UPDATE:

          Code:
          Version 1.1.0.0
          Added Compatibility with the following objects:
          OBJECT_RADIOBUTTON
          OBJECT_RICHTEXT
          OBJECT_CHECKBOX
          OBJECT_SLIDESHOW
          Last edited by Centauri Soldier; 08-26-2009, 04:35 PM.
          https://github.com/CentauriSoldier

          Comment


          • #6
            thank u

            thank u i added the plugin but i don't know how to make it work

            Comment


            • #7
              it didn't work with me

              it didn't work with me and i don't know why

              Comment


              • #8
                The three actions must be placed at the top of the page on each respective event.

                Resize.OnClose() goes in the On Close event of each page and so on.
                https://github.com/CentauriSoldier

                Comment


                • #9
                  The three actions must be placed at the top of each of your project's pages in each respective event.

                  Resize.OnPreload() goes in the On Preload event.
                  Resize.OnClose() goes in the On Close event.
                  Resize.OnSize() goes in the On Size event. Do not change the default tables listed in this action.
                  https://github.com/CentauriSoldier

                  Comment


                  • #10
                    thank u for your help,but it didn't work

                    Originally posted by Centauri Soldier View Post
                    The three actions must be placed at the top of each of your project's pages in each respective event.

                    Resize.OnPreload() goes in the On Preload event.
                    Resize.OnClose() goes in the On Close event.
                    Resize.OnSize() goes in the On Size event. Do not change the default tables listed in this action.

                    thank u for your help,but it didn't work , i added the three lines to all pages as u said but it gives me a lot of errors when i try to start the project like

                    ( on preload : attempet to call field 'on preload' (a nil value) )
                    and another error on size and a third one on close .

                    Comment


                    • #11
                      I haven't been able to duplicate your errors. I have tested the plugin on different projects and it works fine. I am using Windows XP x64 with AMS 7.5ish.

                      That error indicates that the Resize.OnPreload() function is not being declared properly. Have you tried to input the actions via the action wizard instead of manually?

                      Is anyone else experiencing this issue?
                      https://github.com/CentauriSoldier

                      Comment


                      • #12
                        thank u

                        thank u again for fast responding , i used action wizard and it works , u know man u are a hero . u helped me to solve a big problem , i have to finish my project before the end of the week and here u are the great programmer .
                        Last edited by mimo; 07-26-2009, 12:31 PM.

                        Comment


                        • #13
                          well i have got a problem

                          well i have got a problem , i think there are some bugs in the plugin , when i change from page to another i get a problem . and the text isn't resizable too .

                          Comment


                          • #14
                            I will do my best to fix any problems with the plugin.

                            Could you please explain what problems you have when switching pages.
                            What do you mean by "text"? Are you referring to a paragraph object?
                            https://github.com/CentauriSoldier

                            Comment


                            • #15
                              I found what you meant. The labels weren't resizing. I modified the original code to redraw them as they change size and now it works fine.
                              I found the page change error as well and fixed that.

                              Thanks for bringing these items to my attention mimo.

                              Code:
                              Version 1.2.0.0
                              Fixed a bug that caused errors on page change.
                              Added the ability for OBJECT_LABEL objects to be resized
                              Converted code to be used with the Lua Helper Functions by MicroByte.
                              Last edited by Centauri Soldier; 08-26-2009, 04:34 PM.
                              https://github.com/CentauriSoldier

                              Comment

                              Working...
                              X