Making the program POP UP.


Posted by James McLain on March 28, 2001 at 07:47:25:

There seems to be a bug in the FormState property or forms. I have an app that I would like to POP UP. Setting the window stat to fsNormal, does nothing if the form is minimized. But changing to fsMaximized does work. So what I am doing in my code is making the form invisible, maximizing it, and the normalizing it, the making it visible again. This works BUT. For some reason after I do this, the minimize button on the form doesn't work anymore. Anyone know why this is, and how I can correct it? Here's my code:


If not convo.active then
begin
Convo.Visible := false;
Convo.WindowState := wsMaximized;
Convo.WindowState := wsNormal;
Convo.show;
setforegroundwindow(convo.handle);
beep();
end;

convo is the name of the form I'm poping up.


Related Articles and Replies: