Perfil de 品万众风情品风品网FotosBlogListasMás ![]() | Ayuda |
品风品网品味大众风情 |
|||||||||
14 noviembre Flex嵌套HTML框架处理心得功能描述:在Flex中嵌套框架,并且进行数值传递
1、编辑Flex框架组件iFrame.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
resize="callLater(moveIFrame)" move="callLater(moveIFrame)"> <mx:Script>
<![CDATA[ import flash.external.ExternalInterface;
import flash.geom.Point; import flash.net.navigateToURL; private var __source: String;
/**
* Move iframe through ExternalInterface. The location is determined using localToGlobal() * on a Point in the Canvas. **/ private function moveIFrame(): void { var localPt:Point = new Point(0, 0);
var globalPt:Point = this.localToGlobal(localPt); ExternalInterface.call("moveIFrame", globalPt.x, globalPt.y, this.width, this.height);
} /**
* The source URL for the IFrame. When set, the URL is loaded through ExternalInterface. **/ public function set source(source: String): void { if (source) { if (! ExternalInterface.available)
{ throw new Error("ExternalInterface is not available in this container. Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime are required."); } __source = source; ExternalInterface.call("loadIFrame", source); moveIFrame(); } } public function get source(): String
{ return __source; } /**
* Whether the IFrame is visible. **/ override public function set visible(visible: Boolean): void { super.visible=visible; if (visible)
{ ExternalInterface.call("showIFrame"); } else { ExternalInterface.call("hideIFrame"); } } ]]>
</mx:Script> </mx:Canvas>
2、放置到要使用框架的Flex中index.mxml,并写入引用哪个frame.html
<ui:IFrame id="iFrame" source="frame.html" visible="true" width="100%" height="300"/>
3、在引用框架的Flex生成页index.html里加入:
<1. wmode set to opaque
在调用swf的后面加上"wmode","opaque"
例如:"pluginspage", "http://www.adobe.com/go/getflashplayer",
"wmode","opaque"
<2. the moveIFrame,hideIFrame,showIFrame,loadIFrame methods
<3. the 'myFrame' div
在</body>这前写入:
<div id="myFrame" style="position:absolute;background-color:transparent;border:0 px;visibility:hidden;"></div>
4、在Flex页面index.mxml输入的函数值,调用index.html中的'getEditorText'函数,并且写入到text1.text中
text1.text=ExternalInterface.call('getEditorText',param1,param2,param3,...)
getEditorText:函数名称
param:参数值
5、在生成页中取得框架中的函数
框架内的frame.html,放置在head之间:
function GetEditorText1(){
return getHTML(params); index.html生成页的调用,设置在head之间:
function getEditorText(){
return document.getElementById("myIFrame").contentWindow.GetEditorText1(); } 后记:实际中在这里只是调用一个层放在对应位置而已,当我们在Flex中做申缩动作时,层也要跟着改变,我是如此处理的:
设置move或show事件,当move或show时则调用:iFrame.source = "frame.html"
参考:
14 agosto SQL语句实际应用中的精彩例子转载请申明本博客出处!!!
好久没有时间写东西,索性把这段时间积累的一些SQL例子贴出来,有意者阅之!
->
1、当查询语句为数组变量时,不能采用IN来处理,而应采用CharIndex来处理 Declare @Nv nvarchar(100) Set @Nv='2,18,25' Select * From tblSell Where Charindex(','+cast(StoreId as nvarchar(7)) + ',',','+@Nv+',') 比较: Select * From tblSell Where StoreId in (2,18,25) 2、当要把子存储过程取出来,一个方式可以使用output这是单一值,另一个方式可以使用临时表方式取得这是一组值。 方式一: 假设有存储过程 方式二: Create Table #t insert into #t exec Sp_getstocksnumber @Time = 'Jun 27 2006 16:28:27:390PM', @ShopId = 2, @WarehouseId = N'2' Select * From #t Drop table #t 3、要求如图: BillID OrderNumber ==>tblDataVer + BillID OrderNumber QtyNumber ==>tblDataTotal = BillID OrderNumber QtySum Select dv.BillID,dv.OrderNumber,Sum(dt.QtyNumber) QtySum From tblDataVer dv 4、表如下: BillID PlanID QtyNumber ==>tblPlanNumber 要求:相同的BillID,按PlanID来重新指定ID传为OrderNumber,如下: 跨库查询 SELECT a.* 07 septiembre 我爱你我爱你,
可是我不敢说。
我怕我说了,
我就会死去。
我不怕死,
但我怕我死了,
再也没有人像我一样爱你!
=======================
自娱自乐!! 15 julio 24个佳句对译非常好的文笔(转载) 1.记住该记住的,忘记该忘记的。改变能改变的,接受不能改变的 Remember what should be remembered, and forget what should be forgotten.Alter what is changeable, and accept what is mutable. 2.能冲刷一切的除了眼泪,就是时间,以时间来推移感情,时间越长,冲突越淡,仿佛不断稀释的茶 Apart from tears, only time could wear everything away. While feeling is being processed by time, conflicts would be reconciled as time goes by, just like a cup of tea that is being continuously diluted. 3.怨言是上天得至人类最大的供物,也是人类祷告中最真诚的部分 Complaints are the greatest offerings that God obtains from human beings, as well as the most faithful prayers human beings might utter to God. 4.智慧的代价是矛盾。这是人生对人生观开的玩笑。 Wisdom appears in contradiction to itself, which is a trick life plays on philosophy of life. 5.世上的姑娘总以为自己是骄傲的公主(除了少数极丑和少数极聪明的姑娘例外) Girls always look on themselves as proud princesses, with the exception of a small number of either extremely ugly or exceedingly smart ones. 6.如果敌人让你生气,那说明你还没有胜他的把握 It can be inferred that you lack confidence in a victory over your rivals from the fact that you're irritable against them. 7.如果朋友让你生气,那说明你仍然在意他的友情 From that you would get angry with your friends, we can conclude you sitll care about the friendship between you. 8.令狐冲说“有些事情本身我们无法控制,只好控制自己。” 可是,他算什么!! “ Something is out of our control, so we have to command ourselves.“ said Linghu Chong, a known character in a Chinese novel about persons adept in martial arts(武侠小说?). Who is, however, ****ing he? 9.我不知道我现在做的哪些是对的,那些是错的,而当我终于老死的时候我才知道这些。所以我现在所能做的就是尽力做好每一件事,然后等待着老死。 Only till my natural death.could I tell which of what I have been doing is right or wrong, so now I have to try to do well in everything, and then wait to die a natural death. 10.也许有些人很可恶,有些人很卑鄙。而当我设身为他想象的时候,我才知道:他比我还可怜。所以请原谅所有你见过的人,好人或者坏人 Some may be wicked, and some may be despicable. Only when I put myself in their position did I know they are more miserable than I. So forgive all that you have met, no matter what kind of persons they are. 11.鱼对水说你看不到我的眼泪,因为我在水里.水说我能感觉到你的眼泪,因为你在我心里。 “You couldn't see my tears cause I am in the water.“ Fish said to water. “But I could feel your tears cause you are in my heart.“ Answered water. 12.快乐要有悲伤作陪,雨过应该就有天晴。如果雨后还是雨,如果忧伤之后还是忧伤.请让我们从容面对这离别之后的离别。 微笑地去寻找一个不可能出现的你! Happiness is accompanied by sorrow, and it would turn sunny after rain as well. If rain remains after rain and sorrow remains after sorrow, please take those farewells easy, and turn to smilingly look for yourself who is never to appear. 13.死亡教会人一切,如同考试之后公布的结果??虽然恍然大悟,但为时晚矣! Like the outcome after an exam, death makes us aware of anything, That is, it's too late to take a tumble. 14.你出生的时候,你哭着,周围的人笑着;你逝去的时候,你笑着,而周围的人在哭! When you were born, you're crying but lookers-on were smiling. When you are passing away, you're smiling but lookers-on are crying. 15.男人在结婚前觉得适合自己的女人很少,结婚后觉得适合自己的女人很多 Man might think that few women fit him before his marriage, and contrarily when they get married. 16.于千万人之中,遇见你所遇见的人;于千万年之中,时间的无涯荒野里,没有早一步,也没有晚一步,刚巧赶上了 Among thousands of people, you meet those you've met. Through thousands of years, with the boundlessness of time, you happen to meet them, neither earlier nor a bit too late. 17.每个人都有潜在的能量,只是很容易:被习惯所掩盖,被时间所迷离,被惰性所消磨. Everyone has his inherent ability( power or capacity?) which is easily concealed by habbits, blured by time, and eroded by laziness( or inertia?). 18.人生短短几十年,不要给自己留下了什么遗憾,想笑就笑,想哭就哭,该爱的时候就去爱,无谓压抑自己 Be sure that you have never had any regrets in your life which only lasts for a few decades. Laugh or cry as you like, and it's meaningless to oppress yourself. 19.《和平年代》里的话:当幻想和现实面对时,总是很痛苦的。要么你被痛苦击倒,要么你把痛苦踩在脚下 While our dream is confronted with the reality, you always feel painful. Just trample on the pain, or you'll be beat down by it. 20.真正的爱情是不讲究热闹不讲究排场不讲究繁华更不讲究嚎头的 A true love is what doesn't strive for busyness, for extravagance, for luxury, and moreover for hokum. 21.生命中,不断地有人离开或进入。于是,看见的,看不见了;记住的,遗忘了。生命中,不断地有得到和失落。于是,看不见的,看见了;遗忘的,记住了。 然而,看不见的,是不是就等于不存在?记住的,是不是永远不会消失? There is someone that is coming or passing away in your life around the clock, so you may lose sight of those seen, and forget those remembered. There is gain and loss in your life, so you may catch sight of those unseen, and remember those forgotten. Nevertheless, doesn't the unseen exist for sure? Will the remembered remain for ever? 22.我们确实活得艰难,一要承受种种外部的压力,更要面对自己内心的困惑。在苦苦挣扎中,如果有人向你投以理解的目光,你会感到一种生命的暖意,或许仅有短暂的一瞥,就足以使我感奋不已。 It's true that we have been leading a difficult life, for we need not only to be under various external pressures, but also to be in the face of internal perplexities.You would be affected by the warmth of life if someone gives you an understanding look during your bitter struggle.Even a mere glance would make you moved and inpired. 23.我不去想是否能够成功,既然选择了远方,便只顾风雨兼程;我不去想,身后会不会袭来寒风冷雨,既然目标是地平线,留给世界的只能是背影. I wouldn't care success or failure, for I will only struggle ahead as long as I have been destined to the distance. I wouldn't care the difficulties around, for what I can leave on the earth is only their view of my back since I have been marching toward the horizontal. 24.后悔是一种耗费精神的情绪.后悔是比损失更大的损失,比错误更大的错误.所以不要后悔 Penitence is something that enervates our spirit, causing a greater loss than loss itself and making a bigger mistake than mistake itself, so never regret. 23 mayo 路口 我经常为一件事而要思考良久,思考多了,反而使这件事失去了原有的意义。
人就是这样奇怪的动物,每件事都想把他理清,在这个过程中,有些是可能发生的,有些却是不可能发生的,但综合考虑后,感到事情太过复杂或出错机率比较大,从而放弃了想去做事,放弃的过程中却又会出现两种情况:一种是别人这件事做好了,你后悔自己没有去处理,另一种是别人把这件事做错了,你庆幸自己没有做这件事。
别以为这件事就这样终结了,别人做对了或做错了,其中又可以分出几个甚至几十个可能,人生无处不在十字路口,只看你如何去认识这些路口的标识,也许你做错了,可你去曾辉煌过,也许你做对了,可你一生却是平淡无奇。
人生苦短几十年,如何才能把自己的一生体现出来,还是要看如何把握这十字路口了,那么要看你如何认识这些路标了。
你想怎么走呢?
别想了,走自己的路,让别人说去
16 diciembre VSS使用手册1VSS概述
版本控制是工作组软件开发中的重要方面,它能防止意外的文件丢失、允许反追踪到早期版本、并能对版本进行分支、合并和管理。在软件开发和您需要比较两种版本的文件或找回早期版本的文件时,源代码的控制是非常有用的。 1.1 VSS中的文件 1.2 VSS中的项目 1.3 VSS的版本控制功能 1.4 文件的拆分和共享 1.5 工作文件夹(workingfolder) 一旦你将文件签出,VSS就开始在你的本地机上创建并管理你的工作文件夹。 2 VSS的客户端安装 2.1安装VSS的系统条件 2.2从网络安装VSS客户端 3 VSS的基本使用操作 3.1登录VSS 3.2VSS浏览器 当你一打开VSS,如果你设定了密码的话,它会提示你输入密码。如果你没有设定密码,你可以直接看到浏览器。在浏览器上,你可以浏览你的数据库、查看项目列表、显示文件统计信息、执行命令对文件和项目进行操作等。浏览器的最上方的标题栏是你当前连接的数据库。VSS使用符号来提供有关文件和项目信息。 3.3VSS基本操作 3.3.1创建新的文件夹 3.3.2添加文件夹 3.3.3添加文件 3.3.3查看文件 3.3.4创建工作文件夹 3.3.5修改和编辑文件 3.3.6移动文件/文件夹 3.3.7共享文件/文件夹(share) 3.3.8拆分文件(branch) 3.3.9删除/恢复文件或文件夹 3.3.10查看文件/文件夹的历史信息或早期版本 3.3.11获取文件的最新版本 3.3.12获取文件的早期版本 3.3.13修改用户密码 3.3.15打开/关闭数据库 13 septiembre 莫蹉跎一个祖父与一个要当兵的孙子对话!
爷:你入伍有两种可能,要么当官要么当兵!
孙:那,如果是后一种呢?
爷:那也是有两种可能!要么光荣回来要么负伤前线!
孙:那,那如果是后一种呢?
爷:那也是有两种可能!要么负伤医好要么光荣牺牲!
孙:那,那,那如果是后一种呢?
爷:既然牺牲了,那还有什么可怕的呢?
人的一生也许都徘徊在这些交叉路口中,
有那么多好的可能,
为什么却种是报着坏的思维呢?
如果徘徊不前,
那么最终却只是在原步踏步而已!
蹉跎这么多岁月,
老了回想起来,
心中是否会带着愧疚呢?
莫蹉跎,
你选择了就大步地跨上去!!
别在退缩!!! 29 julio 下拉计算器的用户控件部分主要源码由于此框限定了显示的字数,所以只好把主要代码放出来了。 =========================================== ‘文本框输入时的计算过程,下拉的过程只是把各个控件进行相应操作而已 Private Sub textBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles textBox1.KeyPress If (Asc(e.KeyChar) >= 48 AndAlso Asc(e.KeyChar) <= 57) Then '用于判断数据是否输 ’清0操作 Private Sub DeleteZero() ‘计算函数 Private Sub Cacul() str = Decimal.Round(Result, Me.TC_Decimal).ToString DataGrid只允许修改,不允许添加、删除 Dim Cm As CurrencyManager = CType(Me.BindingContext(DataGrid1.DataSource, DataGrid1.DataMember), CurrencyManager)
CType(Cm.List, DataView).AllowNew = False CType(Cm.List, DataView).AllowDelete = False |
|
||||||||
|
|