Left side of Firemonkey [4]

Source: Internet
Author: User

Development involves discovering, solving, and discovering problems...

The following is a bug in Firemonkey.

Description in the official document:

Using the FireMonkey TMenuBar's OSMenu Property to Place Your Main Menu for Windows and Mac.

But, the OSMenu attribute cannot be found in XE4.

After testing, we found that,

TMenuBar cannot implement Mac style in Mac;

TMainMenu can;

But the problem has not ended,

If no Item is added to the TMainMenu, everything is normal. However, once there is an Item, the division by zero error occurs when running in Win.

The reason is that the Coordinate Transformation of SetMartix causes LineLength: = 0;

However, the details have not been further explored. The addition of Item items affects the code process and causes this problem.

Note the following:

The Item of TMainMenu cannot be dynamically added to MacOS, but it works normally in Win.

To put it bluntly: cross-platform is a great dream, but today we are one step closer to it. Let's look forward to the arrival of XE5.

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.