Article View: comp.os.os2
Article #692Entry field controls
From: Jeff Graber
Date: Mon, 02 Jul 1990 19:50
Date: Mon, 02 Jul 1990 19:50
27 lines
1723 bytes
1723 bytes
HELP!!! Can anyone out there help us? I am programming in OS/2 PM with Microsoft C . I have created a dialog box with a bunch of entry field controls. I want to click with the mouse on an entry field control and have the contents of the clipboard copied to the same entry field. I thought this would be easy as there is : WinSendDlgItem (entryfield number, EM_PASTE, NULL,NULL) But lo and behold when I do this it always writes the contents of the clipboard twice!! And then clears the clipboard. Since this discovery, I have tried all sorts of ways to prevent this. I have tried to capture WM_CHAR messages, tried writing the clipboard to a buffer and then writing the buffer to the control. I have tried to follow the PASTE message with a WinSetFocus. I have tried overlaying one entry field with another, but then I can't edit the entry field. I have tried counters, you name it. Could someone please tell me if it is possible to click with the mouse in an entry field and write to that same entry field only once. If so, how is it done.?????? Thank you. Please some one at Microsoft must be reading this. Or some OS/2 PM guru must be perusing this...... Thanks of a grateful nation Jeff Graber
Technical Details
Message-ID:
<112281@linus.mitre.org>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!know!samsung!think!linus!lid.mitre.org!jeffReferences:
<6054@helios.ee.lbl.gov>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!know!samsung!think!linus!lid.mitre.org!jeff From: jeff@lid.mitre.org (Jeff Graber) Newsgroups: comp.os.os2 Subject: Entry field controls Message-ID: <112281@linus.mitre.org> Date: 2 Jul 90 19:50:24 GMT References: <6054@helios.ee.lbl.gov> Sender: usenet@linus.mitre.org Reply-To: jeff@lid.mitre.org.UUCP (Jeff Graber) Organization: The MITRE Corporation Media Laboratory Lines: 27