Thanks.
Does SlickC have a sleep() function?
Or, instead of looping 1000 times, loop until elapsed time is > 2 seconds?
Oh! SlickC does have timer callbacks right? So I could set a timer callback to clear the vertical line after a couple of seconds.
For now I decided to just use a simple toggle.
The only problem with the code below is that sometimes the vertical line also appears in search results. Not always, but often.
Why would that be?
_command void set_col() name_info(','VSARG2_READ_ONLY|VSARG2_REQUIRES_MDI_EDITORCTL)
{
_str result = _default_option('R');
if (result == "0") {
_default_option('R', p_col-1);
} else {
_default_option('R', "0");
}
}