I have this OPTIONS dialog box, in the "OK" button I do this, so that it will do the apply button.
One of the options is to display the log in reverse order, so what I do is re-read the file, redisplay it with the reverse order flag set.
That works, but SOMETIMES, nad not OFTEN if I JUST click "OK" instead of APPLY, (sometimes, not all the time) it hesitates for a second then does NOT do the update.
is it possible my Dialog End cbhndl,1 is taking place while the function call is executed to re-read the log file???
------------------
Scott
One of the options is to display the log in reverse order, so what I do is re-read the file, redisplay it with the reverse order flag set.
That works, but SOMETIMES, nad not OFTEN if I JUST click "OK" instead of APPLY, (sometimes, not all the time) it hesitates for a second then does NOT do the update.
is it possible my Dialog End cbhndl,1 is taking place while the function call is executed to re-read the log file???
Code:
' 'In optionsproc: Case %IDOK, 130 'OK 'Click the Apply button If IsWindowEnabled(GetDlgItem(CbHndl,%IDAPPLY)) Then SendMessage GetDlgItem(CbHndl,%IDAPPLY) , %BM_CLICK, 0, 0 End If Dialog End CbHndl, 1 Exit Function Case %IDAPPLY 'Does a bunch of ini or registry stuff, then to the root fo the problem: 'This will encrypt/decrypt the log file based on use encryption settings EncryptLogFile 'Decrypts or re-crypts 'This puts the refresh on the screen SendMessage g_hListView, %LVM_DELETEALLITEMS,0,0 g_Result = ReadLogFile() 'This displays/updates Listview Control Disable CbHndl, %IDAPPLY 'Now indicate that we are done once through here and do not do items again with OK button Function = 0 Exit Function
Scott
Comment