TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Todd Weis
from: Darin McBride
date: 1997-03-05 17:24:44
subject: Insert Vs overtype mode

TW> Is it possible to switch the PM to overtype mode versus insert mode?

 TW> We have some applications that default all currency fields to 0.00
 TW> and when you tab to that field you are in insert mode.  It is a pain
 TW> to delete the entry field before typing in the new value.  I have
 TW> noticed that the WinXX operating systems default to Overtype mode
 TW> and OS/2 defaults to insert mode.  Any utilities out there that can
 TW> change that?  If not, any ideas on how one could go about writing
 TW> one?

EM_SETINSERTMODE message.  :-)

You can do this whenever that field gets the WM_FOCUSCHANGE message telling
it that it is gaining the focus, or perhaps just at the beginning.

There is another interpretation here - if you want the field to be
"selected" by "default," have you considered getting
the WM_FOCUSCHANGE message, and then using EM_SETSEL to "select"
the entire field?


--- Maximus/2 3.01
* Origin: Tanktalus' Tower BBS (PVT) (1:342/708)
SEEN-BY: 50/99 54/99 270/101 620/243 625/160 711/401 413 430 934 712/311 407
SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1
@PATH: 342/5015 61 3615/50 396/1 270/101 712/624 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.