Object Plugin Container

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • RizlaUK
    Indigo Rose Customer
    • May 2006
    • 5552

    #31
    na, when i tried like that it just crashes the IDE upon object creation

    iv tried every trick i know, just cant access the structure!

    Do you need any help by the way?
    im pretty good for now, been waiting for this for so long, im enjoying working with it, and it will be a real sense of achievement to get this going myself, don't worry tho, i'll make my framework public source :yes
    Embrace change in your life, you never know, it could all work out for the best

    Comment

    • reteset
      Indigo Rose Customer
      • May 2006
      • 1692

      #32
      like i said before i can flatten structs to individual arguments
      Code:
      ProcedureCDLL.l _DrawDesign(ClassID ,HDC, hMainWnd, [B][COLOR="red"]left,top,right,bottom[/COLOR][/B], bVisible, bEnabled)
      i am also going to make _On** mouse events optional

      and this irPlg_Object_TranslateMessage as well

      i will try to build a MFCless version of proxy object
      so dll size will be smaller than current version , i will also remove some unnecessary garbage from it

      if you have requests or suggestions ,please write it here ,
      because in future i will do same steps for Delphi object plugins like you are doing now
      amsplugins.com Is Closed.

      Facebook Page

      Comment

      • RizlaUK
        Indigo Rose Customer
        • May 2006
        • 5552

        #33
        Personally speaking, i would rather use the structure as i use them often in my code anyway and it keeps the whole thing a bit more native to my style of coding, but for other more novice users maybe flattening the struct's would be a good idea

        BTW, using the struct pointer in _GetDefaultSize i have no problems, i am able to set the default size without problems

        also, size of the dll does not bother me at all, considering the AMS runtime is a little over 5MB, 70+KB of dll makes no difference to me, but removing garbage is always a good idea, lol

        as for suggestions, i can not progress any further until i get this struct problem sorted, and ideas will only come to me as i progress with my framework and find things i would need or want added/changed
        Embrace change in your life, you never know, it could all work out for the best

        Comment

        • Imagine Programming
          Indigo Rose Customer
          • Apr 2007
          • 4252

          #34
          I prefer structures as well, keeps the code a bit more clean.
          Dean, what structure problem exactly? I couldn't quite understand
          your problem before, the directly accepting a structure in the arguments?
          Bas Groothedde
          Imagine Programming :: Blog

          AMS8 Plugins
          IMXLH Compiler

          Comment

          • RizlaUK
            Indigo Rose Customer
            • May 2006
            • 5552

            #35
            the directly accepting a structure in the arguments?
            yes, the rect struct tells us the size of the host container, i can draw the object OK, but not at the right location as i can not access the struct, every time the object is moved or resized this function is called and we update our objects dimensions

            iv got the gurus at PB Forums on the case, if theres a solution, they will find it, but im guessing there going to tell me i need a pointer to the struct!
            Embrace change in your life, you never know, it could all work out for the best

            Comment

            • Imagine Programming
              Indigo Rose Customer
              • Apr 2007
              • 4252

              #36
              But, you are receiving a pointer to it right? If not, try

              Code:
              *ptr.RECT = @*rcObRect
              If that doesn't work, I'd like to see reteset's RECT structure.
              Bas Groothedde
              Imagine Programming :: Blog

              AMS8 Plugins
              IMXLH Compiler

              Comment

              • RizlaUK
                Indigo Rose Customer
                • May 2006
                • 5552

                #37
                you know those moments when you could kick yourself......well im having one right now!

                Bas, your a genius, that worked :yes
                Embrace change in your life, you never know, it could all work out for the best

                Comment

                • Imagine Programming
                  Indigo Rose Customer
                  • Apr 2007
                  • 4252

                  #38
                  Originally posted by RizlaUK View Post
                  you know those moments when you could kick yourself......well im having one right now!

                  Bas, your a genius, that worked :yes
                  Haha I have those moments 24/7, like with SPLAX (new plug), I had this bug I couldn't find. Now after hours of debugging, I found that little simple nagging bugger

                  I wanna help more, if you need me, tell me
                  Bas Groothedde
                  Imagine Programming :: Blog

                  AMS8 Plugins
                  IMXLH Compiler

                  Comment

                  • RizlaUK
                    Indigo Rose Customer
                    • May 2006
                    • 5552

                    #39
                    sure, any problems i hit, i'll post here for your attention, also, any work i can pass on, its yours

                    iv got objects drawing, moving and resizing correctly, multiple instances, next (for tomorrow) is tackle the events system

                    man, you dont know how good it feels to create my object from the object>>plugin menu, in fact, im going to celebrate with a quick JD before i hit the sack

                    @reteset, this system rocks, it may take a little while for me to perfect my framework, but its got a huge head start thanks to your work, man, i owe you one, big time :yes
                    Embrace change in your life, you never know, it could all work out for the best

                    Comment

                    • RizlaUK
                      Indigo Rose Customer
                      • May 2006
                      • 5552

                      #40
                      @reteset, im not getting boolean (0 or 1) readings from bVisible and bEnabled in both _DrawDesign and _DrawRuntime, am i missing something ?

                      in fact im getting inconsistent results at each run
                      Embrace change in your life, you never know, it could all work out for the best

                      Comment

                      • Imagine Programming
                        Indigo Rose Customer
                        • Apr 2007
                        • 4252

                        #41
                        What results do you get? Do you ever get 0? Does a negative number represent false in this case?
                        Do you get a pointer to a number?
                        Bas Groothedde
                        Imagine Programming :: Blog

                        AMS8 Plugins
                        IMXLH Compiler

                        Comment

                        • reteset
                          Indigo Rose Customer
                          • May 2006
                          • 1692

                          #42
                          Originally posted by RizlaUK View Post
                          @reteset, im not getting boolean (0 or 1) readings from bVisible and bEnabled in both _DrawDesign and _DrawRuntime, am i missing something ?

                          in fact im getting inconsistent results at each run
                          BOOL is actually an int and should be TRUE or FALSE

                          TRUE is 1 and FALSE is 0

                          so you can assume that it is an int
                          amsplugins.com Is Closed.

                          Facebook Page

                          Comment

                          • Imagine Programming
                            Indigo Rose Customer
                            • Apr 2007
                            • 4252

                            #43
                            That's how we handle booleans in PureBasic as well, however could it be
                            that we are receiving a pointer to an int instead of the int?
                            Bas Groothedde
                            Imagine Programming :: Blog

                            AMS8 Plugins
                            IMXLH Compiler

                            Comment

                            • RizlaUK
                              Indigo Rose Customer
                              • May 2006
                              • 5552

                              #44
                              strange, on further investigation on this, i seem to be getting the "top" and "right" coordinates of the object, beats me!

                              ui run a test by printing the variable results into the listicon, bVisible is equal to the top and bEnabled is equal to the right position

                              reteset, help me out here, im going crazy :(
                              Embrace change in your life, you never know, it could all work out for the best

                              Comment

                              • reteset
                                Indigo Rose Customer
                                • May 2006
                                • 1692

                                #45
                                there should be a problem with your variable types
                                like you can see it works well in sample MyButton project

                                can you show some code
                                amsplugins.com Is Closed.

                                Facebook Page

                                Comment

                                Working...
                                X