Board index » delphi » Delphi 2: How to make app respond to CmdShow

Delphi 2: How to make app respond to CmdShow

   Hi

I'm having a lot of trouble with making my app respond to the CmdShow
variable. Or perhaps
is it my CmdShow variable whish is wrong - it dosn't reflect the settings
that I set in a
shortcut, it allways contains the value 10.

This means that I can't take any action based on that variable. Does this
sound familiar
or am I doing something totally wrong?

            Hakon (h...@hdc.hha.dk)

 

Re:Delphi 2: How to make app respond to CmdShow


Try the following:

      procedure TForm1.FormCreate(Sender: TObject);
      begin
      ShowWindow (Handle, CmdShow);
      end;

I hope this helps.

Best regards,
Michael Vincze
vin...@ti.com

In article 19e4e...@H14K01.HHA.DK, Hakon Baunsgaard <h...@hdc.hha.dk> () writes:

Quote
>   Hi

>I'm having a lot of trouble with making my app respond to the CmdShow
>variable. Or perhaps
>is it my CmdShow variable whish is wrong - it dosn't reflect the settings
>that I set in a
>shortcut, it allways contains the value 10.

>This means that I can't take any action based on that variable. Does this
>sound familiar
>or am I doing something totally wrong?

>            Hakon (h...@hdc.hha.dk)

Re:Delphi 2: How to make app respond to CmdShow


following up a message from Michael Vincze to All:

MV> From: vin...@ti.com (Michael Vincze)

MV> Try the following:

MV>       procedure TForm1.FormCreate(Sender: TObject);
MV>       begin
MV>       ShowWindow (Handle, CmdShow);
MV>       end;

Or try our MinimizeFixer unit, and solve the problem for good. For now, the
product is for Delphi 1.0 only. MNFIX100.ZIP can be found on CompuServe DELPHI
forum, and on the following WWW sites:

  Delphi Super Page
    http://sunsite.icm.edu.pl/archive/delphi/

  Temple of Delphi
    http://www.coast.net/~jkeller/index.html

  The Delphi Connection
    http://www.delphi32.com/

Best regards,
   Christian // ctib...@silver.ct.se

Other Threads