> Is there anyway to fool the application so when you minimize the main form
> it will leave another certian form open rather than minimizing it to?
Trap the minimize command with the code below, and just hide the
main form and show other form.
public
{ Public declarations }
procedure WMSysCommand(var Mess: TMessage);
message WM_SYSCOMMAND;
procedure TMainForm.WMSysCommand(var Mess: TMessage);
{Show small button panel and minimize main window}
begin
if (Mess.WParam=SC_MINIMIZE) and (GboolToolbarShow) then
begin
{hide main form and show other form}
end
else
inherited;
end;
John Mason
Kingston Morrison
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz