Announcement

Collapse
No announcement yet.

ListBox Object with Checklist box BUG!

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

  • ListBox Object with Checklist box BUG!

    Has anyone else have this issue.

    I have a listbox with "checklist box" option selected.

    when the "checklist box" option is selected, I am unable to "setvisible" to "false" with code. it continues to show on screen.

    But if I uncheck "checklist box" the isvisible code works.

    Why can't we hide a "ListBox" with "Checklist box enabled"?

    Does anyone have any fixes for this?

    Here is the basic code of a new project with two listboxes and the issue is still there:
    Code:
    if Button.GetText("Button1") == "Show ListBoxes" then
    	ListBox.SetVisible("ListBox1", true)  -- Regular Listbox
    	ListBox.SetVisible("ListBox2", true)  -- Checklist Listbox
    	Button.SetText("Button1", "Hide ListBoxes")
    else
    	ListBox.SetVisible("ListBox1", false) -- Regular Listbox
    	ListBox.SetVisible("ListBox2", false) -- Checklist Listbox (Continues to show regardless)
    	Button.SetText("Button1", "Show ListBoxes")
    end

    I have attached an example of the issue:
    ListBox Issue.apz

  • #2
    Yeah, this shouldn't happen, so I'll find a report for this. Thanks. Luckily, it is easy to address via code until the behavior is fixed, just by redrawing the window:

    Code:
    if Button.GetText("Button1") == "Show ListBoxes" then
    	ListBox.SetVisible("ListBox1", true)
    	ListBox.SetVisible("ListBox2", true)
    	Button.SetText("Button1", "Hide ListBoxes")
    else
    	ListBox.SetVisible("ListBox1", false)
    	ListBox.SetVisible("ListBox2", false)
    	Button.SetText("Button1", "Show ListBoxes")
    	[highlight]Application.SetRedraw(true);[/highlight]
    end
    Ulrich

    Comment


    • #3
      Thanks, I knew someone would have a workaround.

      Comment

      Working...
      X