LCLIntf.EnableWindow and windows 7 lazarus / 31-LCL ---------------------------------------------------------------------- warcode · 2012-09-27 17:53 Hi all For making short i made a program that need to work in linux,windows xp and windows 7 im using the LCL function for Enables or disables mouse and keyboard input (EnableWindow). In windows xp its work perfecly but when i come to windows 7 every time that i Enables a windows (handle)  its make my cursor visible and make a annoying beep sound i try to disables the beep driver in Computer Management  -> System tools -> Device Manager -> Non-Plug and Play Drivers but its make no effect i wanna know if i can disables/Enables the mouse event witout this annoying sound in windows 7 Thanks for any help/tips ---------------------------------------------------------------------- taazz · 2012-09-29 13:15 Windows 7 ultimate 32bit New project with 2 buttons in the first button's onclick I put the following code Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i begin   LCLIntf.EnableWindow(Handle,False);    end;[Code]on the sceond I wrote the following[code =pascal]begin  LCLIntf.EnableWindow(Handle,True);end; pressing the first buton everything works fine no beep or anything pressing the second button had no effect since the mouse and keyboard input was disabled I have to reset the program from the IDE to stop it running. So I'm guessing there is some other code that has that effect? I had that annoying beeb when I made a stupid buffer overrun mistake and had the console output print some controls characters <#32 it sounded almost as a car alarm that got me scared really fast. You need to look elsewhere for your problem I think. ---------------------------------------------------------------------- zeljko · 2012-09-29 14:11 Why do you use LCLIntf.EnableWindow() ? Why not MyControl.Enabled := False/True ? Also, maybe problem comes because you disabled focused control ?