用delphi实现冰河的远程屏幕操作功能(23) if BorderStyle = bsSizeable then begin BeforeFull := BoundsRect; Menu := nil; Left := 0; Top := 0; Width := Screen.Width; Height := Screen.Height; BorderStyle := bsNone; StatPanel.Visible := False; StatusBar1.Visible := False; ScrollBox1.BorderStyle := bsNone; FSTopForm.Show; end else begin BoundsRect := BeforeFull; Menu := MainMenu1; BorderStyle := bsSizeable; StatPanel.Visible := True; StatusBar1.Visible := True; ScrollBox1.BorderStyle := bsSingle; FSTopForm.Hide; end; end;
procedure TClientForm.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin // If in Full-Screen mode, do an extra check for Hot-Keys on the popup menu if BorderStyle = bsNone then begin FSTopForm.CheckShortCut(Key, Shift); end; end;