Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable Maximize

Status
Not open for further replies.

gforrest

Programmer
Apr 26, 2000
39
CA
Hi,<br><br>&nbsp;&nbsp;&nbsp;I'm starting an application from within my Delphi app.&nbsp;&nbsp;I set it to<br>MINIMIZE on start up.&nbsp;&nbsp;I don't want the user to be able to MAXIMIZE the app.<br>I just want it to stay in the tool bar at the bottom of the screen.&nbsp;&nbsp;Anyone<br>know how I can prevent the app. from being maximized?<br><br>&nbsp;&nbsp;&nbsp;Thanks.<br>
 
Change the bordericons property to exclude biMaximize. Also to minimize the app when you run, set the form's WindowState property to wsMinimized.
 
&nbsp;&nbsp;protected<br>&nbsp;&nbsp;&nbsp;&nbsp;procedure EvGetMinMaxInfo(var M:TWMGetMinMaxInfo);<br>&nbsp;&nbsp;&nbsp;&nbsp;message WM_GETMINMAXINFO;<br><br><br><br><br>implemetation<br><br>procedure TAboutBox.EvGetMinMaxInfo( var M:TWMGetMinMaxInfo);<br>begin<br>&nbsp;&nbsp;inherited;<br>&nbsp;&nbsp;M.MinMaxInfo^.ptMinTrackSize.x:=100;<br>&nbsp;&nbsp;M .MinMaxInfo^.ptMaxTrackSize.x:=100;<br>&nbsp;&nbsp;M.MinMaxInfo^.ptMinTrackSize.y:=100;<br>&nbsp;&nbsp;M.MinMaxInfo^.ptMaxTrackSize.y:=100;<br>end;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top