Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

About form Resizing

Posted on 1998-11-03
3
Medium Priority
?
190 Views
Last Modified: 2010-04-06
how I to handle Form's OnResize event?Tankyou very much!
0
Comment
Question by:havensjg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Expert Comment

by:scrapdog
ID: 1345530
What do you want to happen when the form is resized?
0
 
LVL 1

Accepted Solution

by:
Oli2 earned 150 total points
ID: 1345531
if you want to react on a user resizing your form, here's some help:

type
  TForm1 = class (TForm)
private
 procedure WMPosChange(var Message: TWMWINDOWPOSCHANGING);
 Message WM_WINDOWPOSCHANGING;
end;


procedure TForm1.WMPosChanging(var Message: TWMWINDOWPOSCHANGING);
begin
     //do something
end;

if you don't want the user to change the size of your form, insert the following into the
//do something part:

PWindowPos(TMessage(Message).lParam).Flags :=
PWindowPos(TMessage(Message).lParam).Flags or SWP_NOMOVE
0
 
LVL 1

Expert Comment

by:Oli2
ID: 1345532
correction : SWP_NOMOVE is for "not moving the Form"
SWP_NOSIZE is for "not sizing the Form"
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question