Pressing the Alt key removes the built-in TWebBrowser

I have a TWebBrowser built into TForm. Whenever I press the Alt button, the browser window turns white. If I drag a shape around it, it will repaint properly.

What am I doing wrong?

Do I have DevExpress Bars and Quantum Grid, if that matters?

I am using Delphi 2010 and Windows 7 and XP SP2. IE versions are 7 and 8. Playable at all.

Before pressing Alt: Before pressing the Alt

After pressing Alt:

After pressing alt

I resolved this by usnig the following:

procedure TMainForm.WndProc(var Message: TMessage);
begin
  inherited WndProc(Message);
  if Message.Msg = WM_UPDATEUISTATE then
  begin
    if Assigned(ProblematicWebBrowser) then
      ProblematicWebBrowser.Repaint;
  end;
end;
+3
source share
2 answers

, Delphi , Windows IE , TWebBrowser . ( , , , . , , - : , . , ? " .)

, , , , Alt, . Windows (, F File), Alt. , WM_DRAWITEM, - . . WM_CHANGEUISTATE.

Delphi (. ), , Alt. TWebBrowser , .

, :

  • Delphi 7
  • XP
  • , TWebBrowser

: Delphi , QC.

+3

FWIW, TWebBrowser D2010, Alt WebBrowser.

0

Source: https://habr.com/ru/post/1764070/


All Articles