unixsmsg.inc 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. $Id$
  3. System dependent system messages for unix
  4. Copyright (c) 2002 by Pierre Muller
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Library General Public
  7. License as published by the Free Software Foundation; either
  8. version 2 of the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Library General Public License for more details.
  13. You should have received a copy of the GNU Library General Public
  14. License along with this library; if not, write to the Free
  15. Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. }
  17. { This file is still a dummy,
  18. it should use ioctl to get information about resizing of windows }
  19. Const
  20. SystemEventActive : Boolean = false;
  21. procedure InitSystemMsg;
  22. begin
  23. If SystemEventActive then
  24. exit;
  25. { Code to enable size tracking should go here }
  26. SystemEventActive:=true;
  27. end;
  28. procedure DoneSystemMsg;
  29. begin
  30. if not SystemEventActive then
  31. exit;
  32. { Code to disable size tracking should go here }
  33. SystemEventActive:=false;
  34. end;
  35. procedure GetSystemEvent(var SystemEvent: TSystemEvent);
  36. begin
  37. PollSystemEvent(SystemEvent);
  38. end;
  39. function PollSystemEvent(var SystemEvent: TSystemEvent):boolean;
  40. var
  41. CloseState : word;
  42. begin
  43. SystemEvent.typ:=SysNothing;
  44. if not SystemEventActive then
  45. exit(false);
  46. PollSystemEvent:=false;
  47. end;
  48. {
  49. $Log$
  50. Revision 1.1 2002-05-21 11:59:57 pierre
  51. + system messages unit added
  52. }