
so here for example is a checkbox to set some option or another...
I set the flag, re-enable the Apply button etc...
Now, cool thing is that sometimes users press OK without pressing Apply, easily fixed by that flag, if istrue ChangesNotSaved then sendmessage GetDlgITem(oDlg,%idapply),%BM_CLICK,0,0 and walah you just pressed the apply button for them, and all of your code can be called in teh apply code and not duplicated....
It works for me, everyone has a different style but it works

Code:
Case %IDOK SendMessage GetDlgItem(oDlg,%IDAPPLY) , %BM_CLICK, 0, 0 Case %IDCHECK2 ChangesNotSaved = %TRUE Control Enable oDlg, %IDAPPLY Function = 1 Exit Function
Scott
------------------
Scott
mailto:[email protected][email protected]</A>
MCSE, MCP+Internet
Leave a comment: