Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Page 3 of 6 FirstFirst 1 2 3 4 5 ... LastLast
Results 31 to 45 of 80
  1. #31
    Join Date
    May 2006
    Posts
    5,556
    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
    Embrace change in your life, you never know, it could all work out for the best

  2. #32
    Join Date
    May 2006
    Posts
    1,688
    like i said before i can flatten structs to individual arguments
    Code:
    ProcedureCDLL.l _DrawDesign(ClassID ,HDC, hMainWnd, left,top,right,bottom, 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

  3. #33
    Join Date
    May 2006
    Posts
    5,556
    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

  4. #34
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,676
    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 :: Like the Facebook page for up-to-date info regarding plugins!

    My AMS Plugins:
    iEnc - AMS7, Object - AMS7 - AMS8, PluginInfo - AMS7 - AMS8, VersionInfo - AMS8, ListIcon 2.1 - AMS8, ProgressEx - AMS8, SPLAX - AMS8, MemoryEx - AMS8, MemoryEx Lua Header Compiler - Info - Ä20,-, Draw - Info - Ä5,- NEW

  5. #35
    Join Date
    May 2006
    Posts
    5,556
    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

  6. #36
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,676
    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 :: Like the Facebook page for up-to-date info regarding plugins!

    My AMS Plugins:
    iEnc - AMS7, Object - AMS7 - AMS8, PluginInfo - AMS7 - AMS8, VersionInfo - AMS8, ListIcon 2.1 - AMS8, ProgressEx - AMS8, SPLAX - AMS8, MemoryEx - AMS8, MemoryEx Lua Header Compiler - Info - Ä20,-, Draw - Info - Ä5,- NEW

  7. #37
    Join Date
    May 2006
    Posts
    5,556
    you know those moments when you could kick yourself......well im having one right now!

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

  8. #38
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,676
    Quote 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
    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 :: Like the Facebook page for up-to-date info regarding plugins!

    My AMS Plugins:
    iEnc - AMS7, Object - AMS7 - AMS8, PluginInfo - AMS7 - AMS8, VersionInfo - AMS8, ListIcon 2.1 - AMS8, ProgressEx - AMS8, SPLAX - AMS8, MemoryEx - AMS8, MemoryEx Lua Header Compiler - Info - Ä20,-, Draw - Info - Ä5,- NEW

  9. #39
    Join Date
    May 2006
    Posts
    5,556
    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
    Embrace change in your life, you never know, it could all work out for the best

  10. #40
    Join Date
    May 2006
    Posts
    5,556
    @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

  11. #41
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,676
    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 :: Like the Facebook page for up-to-date info regarding plugins!

    My AMS Plugins:
    iEnc - AMS7, Object - AMS7 - AMS8, PluginInfo - AMS7 - AMS8, VersionInfo - AMS8, ListIcon 2.1 - AMS8, ProgressEx - AMS8, SPLAX - AMS8, MemoryEx - AMS8, MemoryEx Lua Header Compiler - Info - Ä20,-, Draw - Info - Ä5,- NEW

  12. #42
    Join Date
    May 2006
    Posts
    1,688
    Quote 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

  13. #43
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,676
    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 :: Like the Facebook page for up-to-date info regarding plugins!

    My AMS Plugins:
    iEnc - AMS7, Object - AMS7 - AMS8, PluginInfo - AMS7 - AMS8, VersionInfo - AMS8, ListIcon 2.1 - AMS8, ProgressEx - AMS8, SPLAX - AMS8, MemoryEx - AMS8, MemoryEx Lua Header Compiler - Info - Ä20,-, Draw - Info - Ä5,- NEW

  14. #44
    Join Date
    May 2006
    Posts
    5,556
    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

  15. #45
    Join Date
    May 2006
    Posts
    1,688
    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

+ Reply to Thread
Page 3 of 6 FirstFirst 1 2 3 4 5 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts