Browse Source

+ also check for system events

pierre 23 years ago
parent
commit
ea5df44258
2 changed files with 30 additions and 6 deletions
  1. 15 3
      fv/app.pas
  2. 15 3
      fvision/app.pas

+ 15 - 3
fv/app.pas

@@ -951,8 +951,17 @@ BEGIN
            End;
            End;
 {$endif DEBUG}
 {$endif DEBUG}
          If (Event.What = evNothing) Then Begin       { No mouse event }
          If (Event.What = evNothing) Then Begin       { No mouse event }
-           Drivers.GetMouseEvent(Event);                      { Load mouse event }
-           If (Event.What = evNothing) Then Idle;     { Idle if no event }
+           Drivers.GetMouseEvent(Event);              { Load mouse event }
+           If (Event.What = evNothing) Then
+{$ifdef HasSysMsgUnit}
+             begin
+               Drivers.GetSystemEvent(Event);         { Load system event }
+               If (Event.What = evNothing) Then
+{$endif HasSysMsgUnit}
+                 Idle;     { Idle if no event }
+{$ifdef HasSysMsgUnit}
+             end;
+{$endif HasSysMsgUnit}
          End;
          End;
        End;
        End;
      End;
      End;
@@ -1184,7 +1193,10 @@ END;
 END.
 END.
 {
 {
  $Log$
  $Log$
- Revision 1.16  2002-05-25 23:24:29  pierre
+ Revision 1.17  2002-06-06 20:34:19  pierre
+  + also check for system events
+
+ Revision 1.16  2002/05/25 23:24:29  pierre
   * add DoneResource to fix memory leak
   * add DoneResource to fix memory leak
 
 
  Revision 1.15  2002/05/23 07:30:33  pierre
  Revision 1.15  2002/05/23 07:30:33  pierre

+ 15 - 3
fvision/app.pas

@@ -951,8 +951,17 @@ BEGIN
            End;
            End;
 {$endif DEBUG}
 {$endif DEBUG}
          If (Event.What = evNothing) Then Begin       { No mouse event }
          If (Event.What = evNothing) Then Begin       { No mouse event }
-           Drivers.GetMouseEvent(Event);                      { Load mouse event }
-           If (Event.What = evNothing) Then Idle;     { Idle if no event }
+           Drivers.GetMouseEvent(Event);              { Load mouse event }
+           If (Event.What = evNothing) Then
+{$ifdef HasSysMsgUnit}
+             begin
+               Drivers.GetSystemEvent(Event);         { Load system event }
+               If (Event.What = evNothing) Then
+{$endif HasSysMsgUnit}
+                 Idle;     { Idle if no event }
+{$ifdef HasSysMsgUnit}
+             end;
+{$endif HasSysMsgUnit}
          End;
          End;
        End;
        End;
      End;
      End;
@@ -1184,7 +1193,10 @@ END;
 END.
 END.
 {
 {
  $Log$
  $Log$
- Revision 1.16  2002-05-25 23:24:29  pierre
+ Revision 1.17  2002-06-06 20:34:19  pierre
+  + also check for system events
+
+ Revision 1.16  2002/05/25 23:24:29  pierre
   * add DoneResource to fix memory leak
   * add DoneResource to fix memory leak
 
 
  Revision 1.15  2002/05/23 07:30:33  pierre
  Revision 1.15  2002/05/23 07:30:33  pierre