Announcement

Collapse
No announcement yet.

BUG: Input Object - ReadOrder locked

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

  • BUG: Input Object - ReadOrder locked

    1. Create empty project.

    2. Place this code on Page event "On Show".

    3. Start app.

    Code:

    Code:
    local input_tab = {};
    input_tab.Text = "Start text -> End text..";
    input_tab.FontName = "Segoe UI";
    input_tab.FontSize = 12;
    input_tab.FontStrikeout = false;
    input_tab.FontUnderline = false;
    input_tab.FontAntiAlias = false;
    input_tab.FontItalic = false;
    input_tab.FontWeight = FW_NORMAL;
    input_tab.FontScript = RUSSIAN_CHARSET; -- try 1
    input_tab.FontColor = 0;
    input_tab.Multiline = false;
    input_tab.VScrollbar = false;
    input_tab.HScrollbar = false;
    input_tab.InputStyle = INPUT_STANDARD;
    input_tab.MaskText = "";
    input_tab.MaskReturnMode = MASK_AS_TYPED;
    input_tab.Placeholder = "";
    input_tab.Border = BORDER_NONE;
    input_tab.ReadOrder = READ_STANDARD;
    input_tab.BackgroundColor = 16777215;
    input_tab.ReadOnly = false;
    input_tab.Alignment = ALIGN_LEFT;
    input_tab.Enabled = true;
    input_tab.Visible = true;
    input_tab.X = 50;
    input_tab.Y = 50;
    input_tab.Width = 200;
    input_tab.Height = 23;
    input_tab.ResizeLeft = false;
    input_tab.ResizeRight = false;
    input_tab.ResizeTop = false;
    input_tab.ResizeBottom = false;
    input_tab.TooltipText = "";
    Page.CreateObject(OBJECT_INPUT, "NewObject", input_tab);
    local last_error = Application.GetLastError();
    local created_input = Input.GetProperties("NewObject");
    if (created_input) then
    	Dialog.Message("Setting ReadOrder - Step 1", "ReadOrder: " .. created_input.ReadOrder .. "\r\nLast error: " .. last_error, MB_OK, MB_ICONNONE, MB_DEFBUTTON1);
    	-- second try
    	Input.SetProperties("NewObject", {ReadOrder = 0});
    	last_error = Application.GetLastError();
    	Dialog.Message("Setting ReadOrder - Step 2", "ReadOrder: " .. created_input.ReadOrder .. "\r\nLast error: " .. last_error, MB_OK, MB_ICONNONE, MB_DEFBUTTON1);
    end
    Click image for larger version

Name:	input-bug-pic1.jpg
Views:	1
Size:	10.1 KB
ID:	288363Click image for larger version

Name:	input-bug-pic3.jpg
Views:	1
Size:	9.3 KB
ID:	288364Click image for larger version

Name:	input-bug-pic2.jpg
Views:	1
Size:	10.1 KB
ID:	288365

    InputProperties.ReadOrder parameter become not changable. Very very nasty bug.

    How avoid it? Any solutions?

    AutoPlay Media Studio 8.0.7.0, Win 7 x64

  • #2
    Sorry, one line of code lost

    Code:
    created_input = Input.GetProperties("NewObject");
    But this is no matter.

    Comment


    • #3
      It would appear that the ReadOrder field is actually a boolean (true / false), not a number (0 / 1). At least this is what I see with AMS 8.2, and changing the read order this way works as expected. Possibly the docs need to be reviewed.

      Ulrich

      Comment


      • #4
        Thank you for your reply. Boolean types works good.

        Comment

        Working...
        X