Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Page 3 of 3 FirstFirst 1 2 3
Results 31 to 39 of 39
  1. #31
    Join Date
    Oct 2009
    Location
    Merton, United Kingdom
    Posts
    684

    Star

    Quote Originally Posted by Imagine Programming View Post
    Okay, a recreation of the problem, make an object named "Input1",
    make it multiline and paste the next code in the On Show event of
    the page.

    Code:
    local function cp(s,v)
    	local p = Input.GetProperties("Input1");
    	for i, nv in p do
    		if(tostring(i)==tostring(s))then
    			p[i]=v;
    		end
    	end
    	Input.SetProperties("Input1", p);
    end
    Input1 = Object:Create("Input1");
    cp("FontColor", Val("FFFFFF"));
    cp("BackgroundColor", 0);
    cp("X", 10);
    cp("Y", 10);
    cp("Width", Input1:GetSize().Width-20);
    cp("Height", Input1:GetSize().Height-20);
    Input1:SetAppendDelimiter("\r\n");
    Input1:SetText("What the ****!");
    Input1:Append("is wrong,");
    Input1:Append("with me!");
    Input1:Append("");
    Input1:Append("http://test.com/backslash_not_behind_this_but_first_character/");

    This is what I see: (See attached)

    Oh, and change **** to h.e.l.l without dots in above code

    I even tested other ways, like modifying each key seperately by statements like
    Code:
    if(tostring(i)=="FontColor")then
        p.FontColor = v;
    end
    but it still failed... what the, did I find an unfindable bug or is it me?


    Not happening here.

  2. #32
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,277
    Thanks for testing Sakuya, I guess I'm off reinstalling AMS then
    I don't know wth this is, I tested this again and again, just like you
    just have, and tried to get the ReadOrder from the properties... after the
    first on the fly change, it changed to 1... which is strange, because it doesn't
    over there.
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  3. #33
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,277
    Update Online!
    version 1.2, 231 functions!

    I changed a few things, and Updated alot! A few functions
    were added and support for POTF (Properties on the fly) is now
    also active for DialogEx/Page. Check out the helpfile for a short
    howto on POTF.

    Changelog:
    12-03-2010 Version 1,2,0,0

    * Renamed: Object:Create to Object.Create
    * Renamed: Properties on the fly field 'Props' to 'Properties'
    * Added : Object.GetPageHandle and Object.GetDialogHandle
    See helpfile on what these do!
    * Added : Support for DialogEx/Page functions using Dialog/Page handle:FunctionName
    * Added : Object:ClearContents, Object:SetScript, Object:GetScript
    * Added : Object:Click, Object:Focus, Object:SetZOrder

    Downloadlinks updated. See first post for links. An updated example is included!

    __________________
    Bas,
    Imagine Programming
    iEnc Action Plugin
    Object Action Plugin
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  4. #34
    Join Date
    May 2006
    Posts
    5,291
    Object.GetPageHandle
    if thats doing what i think its doing, this will really help!

    guess i'll go read the help file, lol

  5. #35
    Join Date
    Jun 2007
    Location
    Delphi II
    Posts
    1,508
    Hey IP, why not combine those two new functions into one?

    Object.GetPageOrDialogHandle()
    or
    Object.GetWindowHandle()

    Here's the code for getting the page or dialog.

    Code:
    if Application.GetCurrentDialog() ~= "" then
    YOUR CODE FOR DIALOG
    else
    YOUR CODE FOR PAGE
    end
    Action Plugins
    AllOn | Box | Class | Code | Cursor | DXML | Error | Frames | GlobalPaths | Group | INIPlus |KeyBind | KeyLock | MathEx | Menu | Name | Project | Resize | StatusBar
    Download

  6. #36
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,277
    Quote Originally Posted by Centauri Soldier View Post
    Hey IP, why not combine those two new functions into one?

    Object.GetPageOrDialogHandle()
    or
    Object.GetWindowHandle()

    Here's the code for getting the page or dialog.

    Code:
    if Application.GetCurrentDialog() ~= "" then
    YOUR CODE FOR DIALOG
    else
    YOUR CODE FOR PAGE
    end
    Thanks, yes I know, Object:Create checks wether it's called from a page
    or a dialog. I could add a function which does the same
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  7. #37
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,277
    Quote Originally Posted by Centauri Soldier View Post
    Hey IP, why not combine those two new functions into one?

    Object.GetPageOrDialogHandle()
    or
    Object.GetWindowHandle()

    Here's the code for getting the page or dialog.

    Code:
    if Application.GetCurrentDialog() ~= "" then
    YOUR CODE FOR DIALOG
    else
    YOUR CODE FOR PAGE
    end
    By the way, this does not get a Windowhandle, it get's a new L-OOP object
    for a page/dialog to change properties for that page/dialog on the fly.

    Also, functions like hPage:SetObjectScript and stuff can be called like that,
    but those work exactly the same as Page.SetObjectScript does. (Only from
    the current page/dialog)

    Anyhow, I'm going to work sakuya's script in eventually and Object:Create
    will be without objectnames in later versions (it'll work with incremental
    names, you don't worry about the names, they'll all be unique. This, because
    then Object:SetText etc will work from other pages.)

    This will take a while though, because I'd have to change 231 functions haha

    A small comment on your script Sakuya, I shouldn't be using On Preload
    should I? I should On Show because On Preload does not always edit object's.
    And I'm probably leaving a marker in the line I add, like "--[[%iObjLine%]]FunctionCall()--%LineEnd%"
    So I can replace the line every time, not a new line will be added every time.
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  8. #38
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,277
    Oh, has someone found the easteregg already? Hehehe
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  9. #39
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,277
    Version 1,3,0,0 for AMS8 available, more info here:
    http://www.indigorose.com/forums/gro...discussionid=9

    It'll be available on the AMS Directory as well, once IR has approved it.
    I'll make a seperate thread to announce that later.
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

Posting Permissions

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