View Issue Details

IDProjectCategoryView StatusLast Update
0005957JEDI Code LibraryJclSysInfopublic2024-01-02 22:37
ReporterZENsanAssigned ToAHUser 
Status resolvedResolutionwon't fix 
PlatformWindowsOSWindows 7OS Version
Product VersionVersion 2.4 
Target VersionFixed in Version 
Summary0005957: IsMainAppWindow returns False for main windows in MDI application.
DescriptionIsMainAppWindow returns False for main windows in MDI application.
TagsNo tags attached.
Fixed in GIT commit
Fixed in SVN revision
IDE versionAll



2024-01-02 22:37

developer   ~0022070

The IsMainAppWindow function doesn't return True for the "MainWindow". It returns True only for the Main-App-Window ("App" is the keyword here). And that is the "TApplication" window in Delphi unless you set "Application.MainFormOnTaskbar := True;". Without it your MDI form is a child of the TApplication window and IsMainAppWindow returns False.

Hierarchie with Application.MainFormOnTaskbar=False (older Delphi versions and old Projects where the True value was not set in the *.dpr file)
- TApplication (Parent = Desktop)
- TMainForm (Parent = TApplication)

Hierarchie with Application.MainFormOnTaskbar=True
- TApplication (Parent = Desktop)
- TMainForm (Parent = Desktop)

Issue History

Date Modified Username Field Change
2012-08-17 10:28 ZENsan New Issue
2012-08-17 10:28 ZENsan IDE version => All
2024-01-02 22:37 AHUser Assigned To => AHUser
2024-01-02 22:37 AHUser Status new => resolved
2024-01-02 22:37 AHUser Resolution open => won't fix
2024-01-02 22:37 AHUser Note Added: 0022070