Jan 8, 2006 #1 Gigatech Programmer Jul 12, 2000 80 CR Hi, I use D7. I want to simulate an user click of a SpeedButton by code. If a write: speedbutton1.click; the onclick event fires but the button doesn´t change its state. I want to simulate the "visual" effect of pressing the button. Thanks
Hi, I use D7. I want to simulate an user click of a SpeedButton by code. If a write: speedbutton1.click; the onclick event fires but the button doesn´t change its state. I want to simulate the "visual" effect of pressing the button. Thanks
Jan 8, 2006 1 #2 dredfern Technical User Dec 7, 2003 14 GB You could try using the following WindowMessage routines:- speedbutton1.Perform(WM_LBUTTONDOWN, 0, 0); speedbutton1.Perform(WM_LBUTTONUP, 0, 0); which will perform a virtual keypress. Upvote 0 Downvote
You could try using the following WindowMessage routines:- speedbutton1.Perform(WM_LBUTTONDOWN, 0, 0); speedbutton1.Perform(WM_LBUTTONUP, 0, 0); which will perform a virtual keypress.