Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- M E W E L - <b>edit controls now start in insert mode.</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Edit controls now start in insert mode.

  Edit controls are in insert mode when they are created and when the
focus is set to them. This is consistent with the behavior of edit controls
in Microsoft Windows.
  If you don't like this behavior, you can modify the MEWEL source code.
In the file WINEDIT.C, remove the following lines :

  /* about line 212 */
  case WM_SETFOCUS   :
    b->fFlags |= (STATE_INSERT | STATE_HASFOCUS); <- delete "STATE_INSERT |"

  /* about line 2456 in EditBufferCreate() */
  b->fFlags = STATE_INSERT;   <- delete this line

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson