Commit 3f42637 causes most scripts to stop working entirely or lose functionality.

Issue #37 closed
Winter Laite created an issue

All Keysharp test GUIs no longer function. Some smaller scripts work. GUI functionality is still there for many scripts. Among other things, the “Focus” fix of commit 96f5a19 does not work any longer.

Comments (6)

  1. Winter Laite reporter

    Working with latest commit:

    MyGui := Gui()
    LV := MyGui.Add("ListView", "r20 w700", ["Name","Size (KB)"])
    
    Loop Files (A_MyDocuments "\*.*")
      LV.Add(, A_LoopFileName, A_LoopFileSizeKB)
    
    LV.ModifyCol()  ; Auto-size each column to fit its contents.
    LV.ModifyCol(2, "Integer")  ; For sorting purposes, indicate that column 2 is an integer.
    
    MyGui.Show()
    

    Not working with latest commit (line 38 error) but working following ‘git revert’ to previous commit.

    MyGui := Gui()
    LV := MyGui.Add("ListView", "r20 w700", ["Name","Size (KB)"])
    LV.OnEvent("DoubleClick", "LV_DoubleClick")
    
    Loop Files, A_MyDocuments "\*.*"
      LV.Add(, A_LoopFileName, A_LoopFileSizeKB)
    
    LV.ModifyCol()  ; Auto-size each column to fit its contents.
    LV.ModifyCol(2, "Integer")  ; For sorting purposes, indicate that column 2 is an integer.
    
    MyGui.Show()
    
    LV_DoubleClick(LV, RowNumber)
    {
        RowText := LV.GetText(RowNumber, 1)  ; Get the text from the row's first field.
          ColumnText := LV.GetText(RowNumber, 2)
        ToolTip("You double-clicked row number " RowNumber ". File '" RowText "' has size " ColumnText "kb.")
    }
    

  2. Winter Laite reporter

    It looks like addition of the third line and the associated callback result in generating the error.

    Keyview shows no error when code is entered there.

  3. Log in to comment