Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 03-21-2001, 02:25 AM
cap cap is offline
Junior Member
 
Join Date: Mar 2001
Posts: 19
Default How wm_keydown works...?

I use this code:
Edit1.Perform(WM_CHAR, VK_BACK, 0)
it works properly but when I change wm_char by wm_keydown

Edit1.Perform(WM_KEYDOWN, VK_BACK, 0)
The edit control ignores it. Do I have to add somethings to lParam?
Reply With Quote
  #2  
Old 03-21-2001, 10:35 AM
Lapince Lapince is offline
Senior Member
 
Join Date: Jan 2001
Posts: 163
Default RE: How wm_keydown works...?

When you send WM_CHAR, it's something like WM_KEYDOWN then WM_KEYUP... When you only send WM_KEYDOWN, the edit box "think" the key hasn't been released.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 02:13 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.