Hi...
I've written a macro which brings up a dialog box of my own creation. I'm very happy with the macro and dialog, with one small exception: when I exit the dialog, no buffer seems to be selected. The cursor appears in the window I was in when I invoked the macro, but it's a grey box instead of a vertical line, the same as it would be if SlickEdit were not selected, but were still visible behind another window.
A single click inside the buffer selects it, so it's not a major problem, but I know that SlickEdit-provided dialog boxes don't have this problem. I've studied the code associated with several SlickEdit dialogs, but I haven't spotted the problem.
I've tried setting a line number after leaving the dialog, just before leaving the macro; the cursor moves to the new line, but the buffer still isn't selected. I've tried preserving the window ID and restoring it (via activate_window()) just prior to returning from the macro; no help.
Any ideas?