0

I have an application written in Delphi XE and I can maximize and minimize using Windows XP without problems. Using Windows 7 I can't restore the application after minimize it. I click the taskbar and the window don't appears. I have to kill the application using the system administrator. Any clues to find the problem?

Thanks

  • Is this a brand new project or does it come from an older Delphi version? – whosrdaddy Nov 19 '12 at 15:51
  • The project comes from Delphi 7 –  Nov 19 '12 at 15:53
  • 1
    Add `Application.MainFormOnTaskbar := True;` after `Application.Initialize` in your poject DPR file and it should be OK – whosrdaddy Nov 19 '12 at 15:58
  • Tell us what special/different you do with the main window or application handle in your program? I ask because the standard Delphi application does not show this behavior. – jachguate Nov 19 '12 at 17:37
  • Do you create your main form using Application.CreateForm call? – jachguate Nov 19 '12 at 17:38
  • No, that was exactly the problem. The application don't have main form. After Application.Run a form is created and used –  Nov 20 '12 at 09:37

1 Answers1

3

alter your project according to

  Application.Initialize;
  Application.MainFormOnTaskbar := True;
bummi
  • 27,123
  • 14
  • 62
  • 101
  • Now the application minimizes in the bottom left of the screen but not appears in the taskbar. What am I doing wrong? –  Nov 19 '12 at 16:04
  • No, I don't use this operation –  Nov 19 '12 at 16:28
  • sounds like MDIChild behavior ... but a child without a parent? – bummi Nov 19 '12 at 16:55
  • I found the problem. The main form wasn't create properly in the dpr. Tranks for the help –  Nov 19 '12 at 17:12
  • 2
    @whosrdaddy I can see it in the comments, didn't see it before posting, what can be done? – bummi Nov 19 '12 at 17:47
  • 3
    bummi - AFAICS your answer is posted about 2 minutes before @whos's comment. My guess would be, he probably explains his upvote reason, not that he wants to take credit. – Sertac Akyuz Nov 19 '12 at 17:58