- Timestamp:
- Dec 29, 2023, 2:09:06 AM (20 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NewView/MainForm.pas
r492 r493 521 521 522 522 // ALT 2023-12-24 523 Procedure CheckS etSysModal(FormWindow: TForm);524 Procedure Check UnsetSysModal;523 Procedure CheckSaveSysModal(FormWindow: TForm); 524 Procedure CheckReturnSysModal; 525 525 526 526 // Bookmarks ------------------------------------------ … … 3746 3746 end; 3747 3747 } 3748 Check UnsetSysModal;3748 CheckReturnSysModal; 3749 3749 3750 3750 // TODO rbri maybe we have to do this … … 4379 4379 } 4380 4380 // [ALT 2023-12-26] move above to procedure 4381 CheckS etSysModal(Self);4381 CheckSaveSysModal(Self); 4382 4382 4383 4383 LogEvent(LogStartup, 'RUN PROGRAM'); … … 4701 4701 EndUpdate; 4702 4702 end; 4703 // CheckS etSysModal(InformationForm);4703 // CheckSaveSysModal(InformationForm); 4704 4704 InformationForm.ShowModal; 4705 // CheckS etSysModal(Self);4705 // CheckSaveSysModal(Self); 4706 4706 End; 4707 4707 … … 7217 7217 end; 7218 7218 7219 7220 Procedure TMainForm.CheckSetSysModal(FormWindow: TForm); 7219 Procedure TMainForm.CheckSaveSysModal(FormWindow: TForm); 7221 7220 begin 7222 7221 // Override any existing system-modal state 7223 7222 if g_LastSysModalWindow <> NULLHANDLE then 7224 7223 begin 7225 WinSetSysModalWindow( HWND_DESKTOP, FormWindow.Frame.Handle ); 7226 end; 7227 end; 7228 7229 7230 Procedure TMainForm.CheckUnsetSysModal; 7224 //WinSetSysModalWindow( HWND_DESKTOP, FormWindow.Frame.Handle ); 7225 WinSetSysModalWindow( HWND_DESKTOP, NULLHANDLE ); 7226 WinSetActiveWindow( HWND_DESKTOP, FormWindow.Frame.Handle ); 7227 end; 7228 end; 7229 7230 Procedure TMainForm.CheckReturnSysModal; 7231 7231 begin 7232 7232 // Restore any previous system-modal window state … … 7234 7234 begin 7235 7235 WinSetSysModalWindow( HWND_DESKTOP, g_LastSysModalWindow ); 7236 WinSetActiveWindow( HWND_DESKTOP, g_LastSysModalWindow ); 7236 7237 end; 7237 7238 end; -
trunk/NewView/VersionUnit.pas
r492 r493 17 17 18 18 const 19 Version = 'V2.19.8 d'; // $SS_REQUIRE_NEW_VERSION$20 BldLevelVersion = '2.19.8 d'; // Embedded for IBM BLDLEVEL tool19 Version = 'V2.19.8e'; // $SS_REQUIRE_NEW_VERSION$ 20 BldLevelVersion = '2.19.8e'; // Embedded for IBM BLDLEVEL tool 21 21 CopyrightMsg = 'Copyright 2005 Aaron Lawrence; 2006-2019 Ronald Brill'; 22 22 LicenseMsg = 'Licensed under the GNU Public License'; -
trunk/Sibyl/SPCC/FORMS.PAS
r492 r493 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]2060 2059 Procedure CMRelease(Var Msg:TMessage); Message CM_RELEASE; 2061 2060 Procedure CMEndModalState(Var Msg:TMessage); Message CM_ENDMODALSTATE; … … 2465 2464 // This is not functionally needed but prevents unnecessary GpiDeleteSetId calls 2466 2465 // which fail and therefore make it more difficult to test for real problems. 2467 // Probably not safe to leave in due to incompatibility between components 2466 // Probably not safe to leave in due to incompatibility between components 2468 2467 // and IDE - AaronL 2469 2468 // FFontSet:boolean; … … 5417 5416 Begin 5418 5417 FFont.Destroy; 5419 FFont := nil; // AaronL - need to set ffont to nil 5418 FFont := nil; // AaronL - need to set ffont to nil 5420 5419 End; 5421 5420 End; … … 6214 6213 CurrentModalFrame:HWND=0; 6215 6214 DesktopHWND:HWND=0; 6216 ModalList:TList=NIL; 6215 ModalList:TList=NIL; 6217 6216 6218 6217 {$HINTS OFF} … … 6275 6274 Begin 6276 6275 MyPID := GetCurrentProcessID; 6277 6276 6278 6277 // Get the count of switch list items 6279 6278 SwitchListCount := WinQuerySwitchList( AppHandle, nil, 0 ); … … 6282 6281 // Allocate buffer 6283 6282 GetMem( pSwitchListInfo, BufferSize ); 6284 6283 6285 6284 // Call WinQuerySwitchList again to get the switch list items 6286 6285 WinQuerySwitchList( AppHandle, pSwitchListInfo^, BufferSize ); 6287 6286 6288 6287 for i := 0 to SwitchListCount - 1 do 6289 6288 begin … … 6294 6293 // This switch entry is for this application 6295 6294 if swctl.hwnd = Exclude.FFrame.Handle then 6296 continue; 6295 continue; 6297 6296 // so show/hide it 6298 6297 if Show then … … 6302 6301 WinChangeSwitchEntry( hswitch, 6303 6302 swctl ); 6304 6303 6305 6304 end; 6306 6305 end; … … 7966 7965 If OnDismissDlg <> Nil Then OnDismissDlg(Self); 7967 7966 If FModalResult <> cmNull Then EndModalState; 7968 7969 // [20231227 ALT] Restore any previous system-modal window7970 if FSysModalWin <> NULLHANDLE then7971 WinSetSysModalWindow( HWND_DESKTOP, FSysModalWin );7972 7967 End; 7973 7968 End; … … 8513 8508 Show; 8514 8509 BringToFront; 8515 8516 // [ALT 20231227]8517 FSysModalWin := WinQuerySysModalWindow( HWND_DESKTOP );8518 if FSysModalWin <> NULLHANDLE then8519 WinSetSysModalWindow( HWND_DESKTOP, Frame.Handle );8520 8510 8521 8511 again:
Note:
See TracChangeset
for help on using the changeset viewer.