I have a 640*480 fullscreen game (in development), if I use a ShowMessage or a MessageDlg command, then the little dialog appears nicely, and the screenmode remains unaffected. I want to use other forms in my app, and I am currently using the following code inside a button:
[pascal]
var
f : form2.TClientForm;
begin
f:=TClientForm.Create(self);
try
f.ShowModal;
finally
f.Release;
end;
end; // buttonclick
[/pascal]
now this code works, but before the form becomes visible, the monitor flashes and the screenmode goes back to windows settings, while the form is open. when the form finishes its operation, and control is handed back to the game form (form with a dxdraw) fullscreen resumes.
I would ideally like the form to leave the screenmode alone, and just appear over the other form, much like the message boxes I described already. I have tried to change the parent of the new form, but the behaviour of the form persists. I tried to make the game MDI forms, but this completly dident work.

If anyone can help, it would be appreciated....