SCADA-brick_Edit属性和方法

类型
 type:  brick_Edit
 这个是描述Edit窗体的属性.

文字:
 text 

初始化是否可见:

 initVisible   //  0:不可见, 1:可见. ( 这个过时, 应该用 WS_VISIBLE替代 )

风格:
 ES_AUTOHSCROLL   // 0: 无此属性, 1:有此属性, 参见 MSDN edit style
 ES_AUTOVSCROLL    // 0: 无此属性, 1:有此属性, 参见 MSDN edit style
 ES_CENTER    // 0: 无此属性, 1:有此属性, 参见 MSDN edit style
 ES_LEFT    // 0: 无此属性, 1:有此属性, 参见 MSDN edit style 
 ES_LOWERCASE   // 0: 无此属性, 1:有此属性, 参见 MSDN edit style
 ES_MULTILINE   // 0: 无此属性, 1:有此属性, 参见 MSDN edit style
 ES_NOHIDESEL   // 0: 无此属性, 1:有此属性, 参见 MSDN edit style
 ES_OEMCONVERT   // 0: 无此属性, 1:有此属性, 参见 MSDN edit style 
 ES_PASSWORD    // 0: 无此属性, 1:有此属性, 参见 MSDN edit style
 ES_RIGHT   // 0: 无此属性, 1:有此属性, 参见 MSDN edit style
 ES_UPPERCASE   // 0: 无此属性, 1:有此属性, 参见 MSDN edit style
 ES_READONLY   // 0: 无此属性, 1:有此属性, 参见 MSDN edit style
 ES_WANTRETURN   // 0: 无此属性, 1:有此属性, 参见 MSDN edit style


 WS_VISIBLE    // 0: 无此属性, 1:有此属性, 参见 MSDN window style
 WS_DISABLED   // 0: 无此属性, 1:有此属性, 参见 MSDN window style
        WS_BORDER   // 0: 无此属性, 1:有此属性, 参见 MSDN window style
        WS_HSCROLL   // 0: 无此属性, 1:有此属性, 参见 MSDN window style
        WS_VSCROLL   // 0: 无此属性, 1:有此属性, 参见 MSDN window style


////////////////////////////////////////////////////


字体:

 font    // 标准的字体属性( 参见brick中字体相关文档 )
  .name
  .size
  .weight
  .italic
  .underline
  .strikeOut 

 


方法:

 /// 设置焦点: 
 setFocus()

 /// 获取到窗体文字
 $text = getWindowText() ;

 /// 设置窗体文字
 setWindowText( $text ) ;

 

 

 

   

posted on 2012-06-14 14:02  smartfish_liu  阅读(233)  评论(0编辑  收藏  举报

导航