Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of Flex full-screen method and its shortcomings

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly shows you the "Flex full-screen method and shortcomings of example analysis", the content is easy to understand, well-organized, hope to help you solve your doubts, the following let the editor lead you to study and learn "Flex full-screen method and shortcomings example analysis" this article.

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 full-screen mode of Flex.

You can achieve full screen Flex in the following ways:

◆ uses Flex's FullScreen mode, which is implemented as follows:

Modify the index.template.html file under the html-template folder by adding: "allowFullScreen", "true" in AC_FL_RunContent and: allowFullScreen= "true" in embed.

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 above is all the contents of the article "sample Analysis of Flex full-screen methods and shortcomings". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report