Application.SetRedraw() + fObj.SetVisible Bug ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • RaMb
    Forum Member
    • Apr 2011
    • 66

    Application.SetRedraw() + fObj.SetVisible Bug ?

    I just made a small script to check object and invisible it (Input and Checkbox) in main progress

    PHP Code:
    Application.SetRedraw(false);
    for 
    i,v in pairs(Page.EnumerateObjects()) do
        if 
    Page.GetObjectType(v) == OBJECT_INPUT then    
            
    if Input.IsVisible(vthen Input.SetVisible(v,false); end
        end
    --]]
        if 
    Page.GetObjectType(v) == OBJECT_CHECKBOX then
            
    if CheckBox.IsVisible(vthen CheckBox.SetVisible(v,false); end
        end
    --]]
    end
    Application
    .SetRedraw(true); 
    And after complete, the input is not invisible. Also, when check the visible, it's invisible (return false).

    But when remove "Application.SetRedraw(false);" in top of script, the input is invisible. :lol ~

    v8.0.7.0
  • RizlaUK
    Indigo Rose Customer
    • May 2006
    • 5552

    #2
    Confirmed, Its a bug for sure, even if i add a "Page.Redraw" it does not hide the checkboxes
    Embrace change in your life, you never know, it could all work out for the best

    Comment

    • RaMb
      Forum Member
      • Apr 2011
      • 66

      #3
      So, i try test with size of input and i know (maybe, im not sure): when size width of input ~ size of page, its not hide after use draw(true). but when width is small than, its hide ~
      Just now, i must call Draw(true) before call SetVisible

      Comment

      • Darryl
        Indigo Rose Staff Member
        • Jul 2001
        • 1908

        #4
        We'll take a look at the issue you described.
        REF: AMS-557

        Comment

        Working...
        X