In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
What are the three methods to achieve full-screen Flex? in view of this problem, this article introduces the corresponding analysis and solutions in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
Introduction of Flex full screen method
Recently, in the content related to the process design tools of workflow, the web application uses a relatively standard distribution way, that is, top, left and right layout. The result is that the design interface of the design tool is relatively small, and when it comes to a more complex process, it feels that the design process is more compact, and the ease of use of the design tool is not good enough. To solve this problem, you need to support Flex full-screen mode.
After thinking about it, you can achieve full screen Flex in the following ways:
◆ uses Flex's FullScreen mode, which is implemented as follows:
1. Modify the index.template.html file under the html-template folder by adding: "allowFullScreen", "true" in AC_FL_RunContent and: allowFullScreen= "true" in embed.
two。 Switch to full screen mode by setting the value of stage.displayState to StageDisplayState.FULL _ SCREEN.
Disadvantages:
Although you can switch Flex to full-screen mode in this way, controls such as InputText in Flex cannot be edited, and "PressEscToExistFullScreen" appears in the center of the Flex. Therefore, this way can not meet the design requirements.
Of course, there is still a way to remove the subtitles that appear in the central government, although the removal will not change the result. For ways to remove the central "PressEscToExistFullScreen" subtitles, please see:
Http://stackoverflow.com/questions/1415436/flex-fullscreen-translate-edit-press-esc-to-exit-fullscreen-mode
This article explains how to remove the full-screen subtitles of Flex from IE,Firefox.
◆ uses showModalDialog to simulate the full-screen mode of Flex. Toolbars, menu bars, and address bars are removed from showModalDialog, while the width and height are set to the width and height of the screen. However, this approach is more complex to implement, because it involves the problem of data synchronization, and the way of synchronization varies according to the complexity and requirements of the project. A relatively simple way is to synchronize the data to the main page when showModalDialog is closed. Because the implementation of this method is complex and error-prone, it is not implemented, and interested friends can try it on their own.
◆ simulates the full-screen mode of IE's F11. When users choose full-screen mode, simulate the F11PressDown event of IE, hide the address bar, menu bar and toolbar of IE, and hide the upper and left Frame so that the Frame on the right is displayed full screen to achieve the desired results.
IE's F11PressDown event simulation method is implemented as follows:
Varshell=newActiveXObject ('WScript.Shell') shell.SendKeys (' {F11}')
Of course, there are many ways to hide Frame, so I won't go into detail.
Disadvantages:
This method requires users to modify the security options of IE by:
Tools > Internetoptions > Security > CustomLevel ActiveXcontrolsandplug-ins > InitializingandScriptActiveXcontrolsnotmarkedassafe > Enable
If the above option is not set to Enable, an automationservercan'tcreateobject error will be reported.
The answers to the questions about what are the three major ways to achieve full-screen Flex are shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.