I would like to StatusDlg.Show(); when it is loading the txt file but I can't seem to get it to work?
The code is not mine but Azmanar from a example he has.
If iI can't show the StatusDlg.Show(); could I show maybe a small window with some kind of gif type animations showing that it is working?
The code is not mine but Azmanar from a example he has.
If iI can't show the StatusDlg.Show(); could I show maybe a small window with some kind of gif type animations showing that it is working?
Code:
tSelected = ListBox.GetSelected("ListBox2"); if tSelected then StatusDlg.Show(); sPlayListFilePath = ListBox.GetItemData("ListBox2", tSelected[1]); tSelectedPlayList = TextFile.ReadToTable(sPlayListFilePath); nTable = Table.Count(tSelectedPlayList); if tSelectedPlayList then for i=1,nTable do sPath = tSelectedPlayList[i]; if sPath =="" then Table.Remove(tSelectedPlayList, i) -- remove empty lines else tFileParts = String.SplitPath(sPath); sFile = tFileParts.Filename..tFileParts.Extension; ListBox.AddItem("ListBox1", sFile, sPath); end end nPlayList = ListBox.GetCount("ListBox1"); Label.SetText("Total", nPlayList); StatusDlg.Hide(); end else --result = Dialog.Message("Notice", "No File Selected", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); end
Comment