Re: Form beahviour
"Bisma Jayadi" <[email protected]> Thu, 17 Apr 2003 16:57:15 +0700
| Newsgroups | gmane.comp.lang.delphi.kylix |
|---|---|
| Organization | Brawijaya IT Services |
| Message-ID | <00a801c304c7$bd4b5660$910311ac@simba> |
We need to do some tricks since the BorderStyle property on Kylix does not work like the way it is on Delphi. All we have to do is set the Constraint property to the form size we want on the OnCreate event. To prevent the form from being resized is set Max and Min attributes to the same value of the form size. Example: procedure TForm1.FormCreate(Sender: TObject); begin // we want our form size is 600x400 pixel Constraint.MinHeight := 400; Constraint.MaxHeight := 400; Constraint.MinWidth := 600; Constraint.MaxWidth := 600; end; I do not know why the BorderStyle property does not work, and why we should do this. But the codes works on mine. Hope this helps. -Bee- --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.471 / Virus Database: 269 - Release Date: 10-04-2003 ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/W7NydA/hdqFAA/VygGAA/i7folB/TM ---------------------------------------------------------------------~-> ------------------------------------------------------- Forum / mailing list for Borland Kylix programmers Our web page: http://groups.yahoo.com/group/kylixgroup To join the forum: [email protected] To unsubscribe: [email protected] To post your messages: [email protected] To contact the moderator: [email protected] ------------------------------------------------------- Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/