Article View: comp.os.os2.programmer
Article #1426Re: Help with editing
From: Alistair BANKS
Date: Sat, 21 Jul 1990 21:44
Date: Sat, 21 Jul 1990 21:44
25 lines
1353 bytes
1353 bytes
OS/2 1.2 & beyond contains a new PM class called MLE, Multi-Line Edit. This is the control class which the PM Editor in os/2 1.2 uses, with style bits indicating scroll bars. So the editor is really just a regular window, with a simple menu and the main window is just an instance of MLE. MLE allows for a choice of foreground and background colours, but only on a per-window basis, not per-word. MLE allows full cut and paste operations, with keyboard and mouse. Sadly, I cannot offer the sourc code to MLE as a working example but would ask that if MLE is not sufficient for your purposes, that you realise that a PM mouse message only returns the position, and that you have to relate that position to any text character using your own algorithms - there really cannot be a general solution for all arbitary GPI based text output! Alistair Banks OS/2 Group Microsoft
Technical Details
Message-ID:
<56008@microsoft.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!microsoft!alistairReferences:
<1990Jul12.202632.21275@arnor.uucp> <1854@ns-mx.uiowa.edu> <3774@csccat.UUCP> <113788@linus.mitre.org>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!microsoft!alistair From: alistair@microsoft.UUCP (Alistair BANKS) Newsgroups: comp.os.os2.programmer Subject: Re: Help with editing Message-ID: <56008@microsoft.UUCP> Date: 21 Jul 90 21:44:37 GMT References: <1990Jul12.202632.21275@arnor.uucp> <1854@ns-mx.uiowa.edu> <3774@csccat.UUCP> <113788@linus.mitre.org> Reply-To: alistair@microsoft.UUCP (Alistair BANKS) Organization: Microsoft Corp., Redmond WA Lines: 25