摘要:        
在MenuItem的属性Parameters里设置一个参数;然后在Form的Init里如下进行判断:if(element.args().parm() == "参数"){......}譬如:MenuItem1的Paramters设置first MenuItem2的Paramters设置second然后在Form里的init方法里进行如下判断if(element.args().parm() == "first"){ .........................}if (element.args().parm() == "second"    阅读全文
posted @ 2012-04-17 16:09
K小子
阅读(166)
评论(0)
推荐(0)
        
            
        
        
摘要:        
static void randomTest(Args _args){ Random myRand = new Random(); int i; ; for(i=0;i<=3;i++) { info(strfmt("%1",myRand.nextInt())); }}    阅读全文
posted @ 2012-04-17 14:48
K小子
阅读(199)
评论(0)
推荐(0)
        
            
        
        
摘要:        
窗体desgin的属性:MaxMizeBox:No MinMizeBox:No 然后--------------------------------------------------------------------1、public void run(){ #winapi super(); winapi::ShowWindow(element.hWnd(),#SW_MAXIMIZE);}2、public void run(){#define.SC_MAXIMIZE (61488)#define.WM_SYSCOMMAND (0x0112)super();WinAPI::SendMessag    阅读全文
posted @ 2012-04-17 14:13
K小子
阅读(175)
评论(0)
推荐(0)
        
            
        
        
摘要:        
static void TestTableName(Args _args){ str tmpStr = "TableName"; ; if (TableName2Id(tmpStr)) { info("It is a table"); } else { info("Sorry,it is not a table"); }}// another methodstatic server boolean checkTableName(str 50 _str){ Dictionary dictionary ; int tableCnt ; i    阅读全文
posted @ 2012-04-17 10:07
K小子
阅读(187)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号