A strange problem encountered in Delphi's MDI programming (a problem worth studying)

Source: Internet
Author: User

Recently in the use of Delphi to write a multi-document application, in addition to a main interface is automatically generated, and other features of the page are all through the Application.createform () dynamically generated, that is, in the Projectmanager click the program name right, The last option, open the Options page, is only the main form under Auto-create forms. The Formstyle properties for both the main form and the feature page form are Fsmdichild, and the remaining properties are default. I have changed some properties of the main form during the design, and found that it was not possible to change back, but once the program called Application.createform () to create a function page error, prompted: "Cannot create form." No MDI forms are currently active ". On the internet for half a day, all say is the form creation order, yes, the main form should really be the first to be created, my program is like this AH. Then the next day, today, I compared the default creation of the main form and I do the various properties of the form, then an unintentional change actually succeeded! That's what I did. When the Visibal property of the main form is false, everything is fine. Dizzy, supposedly should be true to ah, or how can show it? But it is so shown, and changed to True also error it, can use on the line, write down as a note, may be useful later.

Http://blog.csdn.net/chaijunkun/article/details/4503480#reply

A strange problem encountered in Delphi's MDI programming (a problem worth studying)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.