@icon: fixed by GerdtR

notes: final version
mouse: better hold wheel with other buttongs clicked

git-svn-id: svn://kolibrios.org@7437 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2018-10-05 22:10:27 +00:00
parent 66a0391246
commit 839dde62cc
12 changed files with 327 additions and 103 deletions

View File

@@ -53,12 +53,13 @@ int NOTES::OpenTxt(dword file_path)
int i=0, linepos=0;
int item_n=-1;
count = LINES_COUNT;
strcpy(#txt_path, file_path);
ReadFile(0, 4096, #txt_data, #txt_path);
if (!txt_data) || (strncmp(#txt_data, "notes", 5)!=0)
{
txt_file_exists = false;
notify("'Notes\nData file does not exists or is not valid' -tE");
return 0;
}
else
@@ -84,7 +85,6 @@ int NOTES::OpenTxt(dword file_path)
//lines[item_n].Delete();
item_n++;
}
count = LINES_COUNT;
return 1;
}
}