Changeset 492 for trunk/Sibyl/SPCC/FORMS.PAS
- Timestamp:
- Dec 28, 2023, 3:58:08 AM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Sibyl/SPCC/FORMS.PAS
r7 r492 7 7 º º 8 8 ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍŒ} 9 9 10 10 Unit Forms; 11 11 … … 2057 2057 FOnCreate:TNotifyEvent; 2058 2058 FOnDestroy:TNotifyEvent; 2059 FSysModalWin:HWnd; // [ALT 2023-12-27] 2059 2060 Procedure CMRelease(Var Msg:TMessage); Message CM_RELEASE; 2060 2061 Procedure CMEndModalState(Var Msg:TMessage); Message CM_ENDMODALSTATE; … … 2464 2465 // This is not functionally needed but prevents unnecessary GpiDeleteSetId calls 2465 2466 // which fail and therefore make it more difficult to test for real problems. 2466 // Probably not safe to leave in due to incompatibility between components 2467 // Probably not safe to leave in due to incompatibility between components 2467 2468 // and IDE - AaronL 2468 2469 // FFontSet:boolean; … … 5416 5417 Begin 5417 5418 FFont.Destroy; 5418 FFont := nil; // AaronL - need to set ffont to nil 5419 FFont := nil; // AaronL - need to set ffont to nil 5419 5420 End; 5420 5421 End; … … 6213 6214 CurrentModalFrame:HWND=0; 6214 6215 DesktopHWND:HWND=0; 6215 ModalList:TList=NIL; 6216 ModalList:TList=NIL; 6216 6217 6217 6218 {$HINTS OFF} … … 6274 6275 Begin 6275 6276 MyPID := GetCurrentProcessID; 6276 6277 6277 6278 // Get the count of switch list items 6278 6279 SwitchListCount := WinQuerySwitchList( AppHandle, nil, 0 ); … … 6281 6282 // Allocate buffer 6282 6283 GetMem( pSwitchListInfo, BufferSize ); 6283 6284 6284 6285 // Call WinQuerySwitchList again to get the switch list items 6285 6286 WinQuerySwitchList( AppHandle, pSwitchListInfo^, BufferSize ); 6286 6287 6287 6288 for i := 0 to SwitchListCount - 1 do 6288 6289 begin … … 6293 6294 // This switch entry is for this application 6294 6295 if swctl.hwnd = Exclude.FFrame.Handle then 6295 continue; 6296 continue; 6296 6297 // so show/hide it 6297 6298 if Show then … … 6301 6302 WinChangeSwitchEntry( hswitch, 6302 6303 swctl ); 6303 6304 6304 6305 end; 6305 6306 end; … … 7965 7966 If OnDismissDlg <> Nil Then OnDismissDlg(Self); 7966 7967 If FModalResult <> cmNull Then EndModalState; 7968 7969 // [20231227 ALT] Restore any previous system-modal window 7970 if FSysModalWin <> NULLHANDLE then 7971 WinSetSysModalWindow( HWND_DESKTOP, FSysModalWin ); 7967 7972 End; 7968 7973 End; … … 8508 8513 Show; 8509 8514 BringToFront; 8515 8516 // [ALT 20231227] 8517 FSysModalWin := WinQuerySysModalWindow( HWND_DESKTOP ); 8518 if FSysModalWin <> NULLHANDLE then 8519 WinSetSysModalWindow( HWND_DESKTOP, Frame.Handle ); 8510 8520 8511 8521 again:
Note:
See TracChangeset
for help on using the changeset viewer.