- 浏览: 1048980 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (538)
- 奇文共赏 (36)
- spring (13)
- hibernate (10)
- AOP/Aspectj (9)
- spring security (7)
- lucence (5)
- compass (3)
- jbmp (2)
- jboss rule(drools) (0)
- birt (1)
- jasper (1)
- cxf (3)
- flex (98)
- webgis (6)
- 设计模式 (1)
- 代码重构 (2)
- log4j (1)
- tomcat (9)
- 神品音乐 (1)
- 工作计划 (2)
- appfuse (1)
- svn (4)
- 寻章摘句 (3)
- eclipse (10)
- arcgis api for flex (1)
- 算法 (5)
- opengis-cs (1)
- bug心得 (13)
- 图标 (1)
- software&key (14)
- java (17)
- 搞笑视频 (13)
- sqlserver (9)
- postgresql (1)
- postgis (0)
- geoserver (5)
- 日子 (50)
- 水晶报表 (1)
- 绝对电影 (3)
- Alternativa3D (1)
- 酷站大全 (10)
- c++ (5)
- oracle (17)
- oracle spatial (25)
- flashbuilder4 (3)
- TweenLite (1)
- DailyBuild (6)
- 华山论贱 (5)
- 系统性能 (5)
- 经典古文 (6)
- SOA/SCA/OSGI (6)
- jira (2)
- Hadoop生态圈(hadoop/hbase/pig/hive/zookeeper) (37)
- 风水 (1)
- linux操作基础 (17)
- 经济 (4)
- 茶 (3)
- JUnit (1)
- C# dotNet (1)
- netbeans (1)
- Java2D (1)
- QT4 (1)
- google Test/Mock/AutoTest (3)
- maven (1)
- 3d/OSG (1)
- Eclipse RCP (3)
- CUDA (1)
- Access control (0)
- http://linux.chinaunix.net/techdoc/beginner/2008/01/29/977725.shtml (1)
- redis (1)
最新评论
-
dove19900520:
朋友,你确定你的标题跟文章内容对应???
tomcat控制浏览器不缓存 -
wussrc:
我只想说牛逼,就我接触过的那点云计算的东西,仔细想想还真是这么 ...
别样解释云计算,太TM天才跨界了 -
hw_imxy:
endpoint="/Hello/messagebr ...
flex+java代码分两个工程 -
gaohejie:
rsrsdgrfdh坎坎坷坷
Flex 与 Spring 集成 -
李涤尘:
谢谢。不过说得有点太罗嗦了。
Oracle数据库数据的导入及导出(转)
http://feedproxy.google.com/~r/flexorg/~3/XfQJ3GkTo-E/change-font-size-whole-app-ctrl
Problem
Browser supports changing page font size with C+/- and Ctrl+scrolling, but Flex applications are not affected by this. People with failing sight can not use such applications.
Solution
Work with StyleManager and set "fontSize" at runtime.
Detailed explanation
There is a simple way to change font size in the Flex application. This works through styles without any serious restrictions (+ view source). For CSS classes that use greater or smaller font size "fontSizeDelta" style should be specified with the delta for example 2 or -1:
<mx:Style>
.header
{
fontSizeDelta: 3;
}
</mx:Style>
Code that actually changes the font size:
private function applyFontSize(fontSize:Number):void
{
// Loop through all styles and set
// new "fontSize" value based
// on new size and "fontSizeDelta" style
var selectors:Array = StyleManager.selectors;
for each (var selector:String in selectors)
{
var declaration:CSSStyleDeclaration =
StyleManager.getStyleDeclaration(selector);
var delta:Number = declaration.getStyle("fontSizeDelta");
if (delta)
{
declaration.setStyle("fontSize", fontSize + delta);
StyleManager.setStyleDeclaration(selector, declaration,
false);
}
}
// global style is applied to all Flex visual components
var global:CSSStyleDeclaration =
StyleManager.getStyleDeclaration("global");
if (!global)
global = new CSSStyleDeclaration("global");
global.setStyle("fontSize", fontSize);
// update styles only on last change
StyleManager.setStyleDeclaration("global", global, true);
}
private function addedToStageHandler():void
{
stage.addEventListener(KeyboardEvent.KEY_UP, my_keyUpHandler);
}
private function my_keyUpHandler(event:KeyboardEvent):void
{
if (event.ctrlKey)
{
var keyCode:uint = event.keyCode;
// Ctrl +/up
if (keyCode == 107 || keyCode == 187 || keyCode == 38)
fontSize++;
// Ctrl -/down
else if (keyCode == 109 || keyCode == 189 || keyCode == 40)
fontSize--;
}
}
In order to make Ctrl+/- rigth after application starts (without clicking on it to give focus), set focus automatically:
<body scroll='no'
onLoad="document.getElementById('${application}').focus();">
Problem
Browser supports changing page font size with C+/- and Ctrl+scrolling, but Flex applications are not affected by this. People with failing sight can not use such applications.
Solution
Work with StyleManager and set "fontSize" at runtime.
Detailed explanation
There is a simple way to change font size in the Flex application. This works through styles without any serious restrictions (+ view source). For CSS classes that use greater or smaller font size "fontSizeDelta" style should be specified with the delta for example 2 or -1:
<mx:Style>
.header
{
fontSizeDelta: 3;
}
</mx:Style>
Code that actually changes the font size:
private function applyFontSize(fontSize:Number):void
{
// Loop through all styles and set
// new "fontSize" value based
// on new size and "fontSizeDelta" style
var selectors:Array = StyleManager.selectors;
for each (var selector:String in selectors)
{
var declaration:CSSStyleDeclaration =
StyleManager.getStyleDeclaration(selector);
var delta:Number = declaration.getStyle("fontSizeDelta");
if (delta)
{
declaration.setStyle("fontSize", fontSize + delta);
StyleManager.setStyleDeclaration(selector, declaration,
false);
}
}
// global style is applied to all Flex visual components
var global:CSSStyleDeclaration =
StyleManager.getStyleDeclaration("global");
if (!global)
global = new CSSStyleDeclaration("global");
global.setStyle("fontSize", fontSize);
// update styles only on last change
StyleManager.setStyleDeclaration("global", global, true);
}
private function addedToStageHandler():void
{
stage.addEventListener(KeyboardEvent.KEY_UP, my_keyUpHandler);
}
private function my_keyUpHandler(event:KeyboardEvent):void
{
if (event.ctrlKey)
{
var keyCode:uint = event.keyCode;
// Ctrl +/up
if (keyCode == 107 || keyCode == 187 || keyCode == 38)
fontSize++;
// Ctrl -/down
else if (keyCode == 109 || keyCode == 189 || keyCode == 40)
fontSize--;
}
}
In order to make Ctrl+/- rigth after application starts (without clicking on it to give focus), set focus automatically:
<body scroll='no'
onLoad="document.getElementById('${application}').focus();">
发表评论
-
ActionScript 3.0 性能优化小知识
2010-07-30 14:12 1040http://xinsync.xju.edu.cn/in ... -
Flex企业级UI权限控制
2010-07-28 16:14 1306http://www.pin5i.com/showtopic- ... -
flex4中PopUpManager在module中有问题
2010-06-24 11:10 3146flex4中module加载module后flex4中 a ... -
Flex 开发: 类的反射
2010-06-24 10:56 1280http://www.ibm.com/developerwor ... -
Problems with ByteArray.writeObject()
2010-05-19 21:47 1732http://www.actionscript.org/for ... -
利用 E4X解决 XML 处理的性能问题
2010-05-19 21:11 1756http://www.blogjava.net/rosen/a ... -
正在安装的adobe flash player版本不是最新的版本
2010-04-22 09:56 2460打开注册表编辑器,定位到HKEY_LOCAL_MACHINE\ ... -
AS3 优化 之 FOR内循环
2010-02-10 15:39 1573写游戏只要有思路,就能实现,但这也只是从功能角度出发,能不能有 ... -
flex模块切换时导致对象不正确序列化的解决办法
2009-12-02 09:08 1631http://lkfnn.iteye.com/blog/506 ... -
漂亮的登陆
2009-11-19 16:32 1165http://dougmccune.com/360Flex_A ... -
Download all 177 Flash Effects Source Files .fla
2009-11-13 09:27 1234http://www.jeffjoneslive.com/Fl ... -
flex如何接受其他页面Post过来的数据
2009-10-10 11:15 2564问题描述: 有个程序需要调用我的flex页面,需要给我传 ... -
flex delete关键词和类成员
2009-10-09 09:01 1419flash中delete关键词用来移除定义的变量,并不能从内存 ... -
Flex HTTPService如何给后台传递参数
2009-10-09 08:56 1529http://blog.csdn.net/joeyshi/ar ... -
FLEX Builder compiler arguments 的设置
2009-09-28 08:20 1662http://flash.9ria.com/thread-18 ... -
12 Best Adobe AIR Applications for Web Designers
2009-09-25 08:20 108612 Best Adobe AIR Applications ... -
做网页如何改变IE地址栏的显示IE图标
2009-09-23 16:55 2710这个问题的解决其实在flex之外 修改index.templa ... -
Flex设置html(页面标题)title问题
2009-09-23 15:31 3293如果你是一个整体系统用了同一个标题:可以修改模板页index. ... -
flex中文问题,访问中文路径问题
2009-09-23 14:36 1209本文最先发表在本人个 ... -
一些漂亮的Flex主题下载
2009-09-17 17:29 2340http://www.flexer.cn/blog/?p=64 ...
相关推荐
+--------------+------------------+----------------------------------+ | table_name | expected_records | expected_crc | +--------------+------------------+----------------------------------+ | ...
Along the way, you�ll dig deep into detailed case studies with source code and documentation and explore best practices for team development, planning for change, and tool choice.
**Ctrl + M - 改变编辑器大小(Change Editor Size)** - **用途**:调整编辑器窗口的大小。 - **应用场景**:根据个人喜好或当前工作需求调整编辑器窗口的尺寸,便于查看代码。 #### 10. **Ctrl + . / Ctrl + 1 ...
We strongly recommend that you read the following information about this release. 1) IRPTrace Components ===================== README.TXT - This file HOWTOREG.TXT - How to register IRPTrace and ...
- **图纸尺寸调整:** F4 (Change Sheet Size) - **图纸属性查看:** FP (Sheet Properties) - **图纸层管理:** FO (Sheet Layers) - **图纸层显示:** FS (Show Sheet) - **图纸层隐藏:** FH (Hide Sheet) ##### 4. ...
/+-- bin/+-- boot/+-- dev/+-- etc/|+-- alternatives/|+-- ...|+-- network/||+-- if-down.d/||+-- ...||+-- if-pre-up.d/|||+-- change-mac ** :: When the lo interace is loading on boot, change the
+---------------------------------------------------------------------------------------- - 0000796: DBGrid: Render bug when Column color is clWindow and project is created with 0.82 - 0000795: Grid:...
- **Change Font Size (Ctrl+Shift+NumPad+/-)**:改变字体大小。 - **Move Line Up/Down (Alt+Up/Down)**:移动行上/下。 - **Split Editor Horizontally (Ctrl+] )**:水平分割编辑器。 - **Split Editor ...
Java drastically changed with the introduction of Java 8, and this change has been elevated to a whole new level with the new version, Java 9. Java has a well-established past, being more than 20 ...
Modern web technologies are still improving at lightning-fast speed, with an increasing, perceptible, and measurable interest being in the client-side aspects of the game. Angular, React, and VueJS ...
-----+--------------------+-------------+-------------+ | | | | V V | | +---------+ n0, n1 +----------+ | | | Model 1 |--------->| Mixer 1 |\ p | | +---------+ \ / | | \ V V \ / +----------+ \ ...
// change for your purposes. // 注意,下面的温度设置是以我的T61为例,特别是蓝牙EDR设置为1,第五个传感器名称改为no5,并且忽略这个传感器的温度显示.在T4X,R5X机器上,温度设置要高个10°,总之以你自己实测的效果来...
- fixed bug with lost of focus in font size combo-box in designer - fixed bug with truncate of font size combo-box in Windows Vista/7 in designer (lost of vertical scroll bar) - fixed bug when lost ...
Although I’d taken a lot of programming classes in college, I never fully appreciated programming until I had a job that involved a lot of repetitive tasks. After amusing myself by automating much of...
Keeping up with the fast pace of surveillance and data collection is one of the main political challenges of our time. We are dealing here with a phenomenon that is so massive, that changes so quickly...
- Displaying the list of GameObjects in the form of a tree - Option to add right indent (useful if you use other plugins that add another icons to the hierarchy window) - Any feature can be disabled ...
- **操作**:选择`Mouse`选项卡下的`Change font size with Ctrl + Mouse Wheel`进行设置。 - **作用**:通过此设置,用户可以通过Ctrl键与鼠标滚轮结合使用来调整编辑器中的字体大小,提高编程时的视觉舒适度。 **...
例如:They debated with experts about the impact of climate change.(他们与专家就气候变化的影响进行了辩论。) - `beyond debate` 表示“无可争论,毋庸置疑”,常用来强调事实的确定性。例如:It is beyond ...