type TFormStyle = (fsNormal, fsMDIChild, fsMDIForm, fsStayOnTop); property FormStyle: TFormStyle;
Description
Use FormStyle to get or set the form’s style. FormStyle is one of the following values:
Value Meaning
fsNormal The form is neither an MDI parent window nor an MDI child window. fsMDIChild The form is an MDI child window. fsMDIForm The form is an MDI parent window. fsStayOnTop This form remains on top of the desktop and of other forms in the project, except any others that also have FormStyle set to fsStayOnTop. If one fsStayOntop form launches another, neither form will consistently remain on top.
If the form is the main form of an MDI application, its FormStyle property must be set to fsMDIForm.
Note: It is not advisable to change FormStyle at runtime.
Med den metode jeg angav er der ikke noget problem i at skifte flere gange mens programmet kører. Som Delphi selv skriver i SJensens klip, så er det ikke smart at skifte FormStyle under runtime (hvorfor mon?).
Delphi
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.