瀏覽代碼

kcApp.cpp:Text box UI widgets now have FL_WHEN_RELEASE|ENTER_KEY|NOT_CHANGED set. Prior to this none of these flags were set.

master
kevin 11 年之前
父節點
當前提交
aa5342147e
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      src/kc/kcApp.cpp

+ 1
- 0
src/kc/kcApp.cpp 查看文件

@@ -602,6 +602,7 @@ void kcApp::_createText(  const cmDspUiHdr_t* m )
602 602
   ctl_t* cp = _createCtl(m, kTextTypeId, x,y,w,h );
603 603
 
604 604
   cp->u.text.text = new Fl_Input(x,y,w,h);
605
+  cp->u.text.text->when(FL_WHEN_RELEASE | FL_WHEN_ENTER_KEY | FL_WHEN_NOT_CHANGED);
605 606
 
606 607
   _insertNewCtl(cp, m, cp->u.text.text, cp->u.text.varIdArray, kTextVarCnt );  
607 608
 }

Loading…
取消
儲存