Skip to main content
gamedev.net
🔒 Locked

Edit Control Problems

Started by Great Milenko 3 replies 500+ views
Original Post
Great Milenko
Great Milenko
ok heres the deal I''ve got a window full of edit controls... I need to be notified by the edit controls any time the user makes a change to the text of each edit control (so I can update other controls) well the problem is only way I have found to do this (base on the info in MS-VC''s help files) is to do a SendMessage (EM_GETMODIFIED) to each edit using a timer... this seams to create bugs... like the cursor keeps on jumping to the begining of the text or the text just magicaly disapears... I tried to fix it by making shure that the edit control that has been changed doesn''t get the update message.... well this only half worked.... it seems to have lessened the problem but it still doesn''t fix it... anyone got an idea?
The Great Milenko"Don't stick a pretzel up your ass, it might get stuck in there.""Computer Programming is findding the right wrench to hammer in the correct screw."
krez
krez
c++?
you should be able to handle it in your winproc (windows will send the messages there by itself).

--- krez (krezisback@aol.com)
--- krez ([email="krez_AT_optonline_DOT_net"]krez_AT_optonline_DOT_net[/email])
ShawnO
ShawnO
Take a look at EN_UPDATE and EN_CHANGE.
These messages are sent when the contents of an edit control changes.
When using the Windows calculator program, always remember to clear any values from memory before exiting to prevent burn-in.
slepyii
slepyii
< snip from Platform SDK >
EN_CHANGE

The EN_CHANGE notification message is sent when the user has taken an action that may have altered text in an edit control. Unlike the EN_UPDATE notification message, this notification message is sent after the system updates the screen. The parent window of the edit control receives this notification message through a WM_COMMAND message.

< /snip >

Look for that message in the Platform SDK and it will give you everything you need to know .

Here is a link to get you pointed in the right direction.

Slepyii

Edited by - slepyii on December 13, 2001 10:29:26 AM
Great Milenko
Great Milenko
thanx... I knew there was a message like that I just couldn''t remeber what it was... heh by the time I got here I was starting to think that I had just imagined it =)
The Great Milenko"Don't stick a pretzel up your ass, it might get stuck in there.""Computer Programming is findding the right wrench to hammer in the correct screw."

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.