A alaclp Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-23 #1 我想模仿mwCustomEdit,作一个高亮编辑器控件,但却 出现:不能自动在父窗口中按下Tab键自动focus的功能? 我在WM_SetFocus中作了处理啊?
Y yoking Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-24 #2 还要发送这个消息 perform(WM_SETFOCUS,0,0) 究竟是不是能够通过创建参数来控制,还在研究中
A alaclp Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-24 #4 procedure TMyEdit.WMGetDlgCode(var Msg: TWMGetDlgCode); begin inherited; Msg.Result := DLGC_WANTARROWS or DLGC_WANTCHARS; //此句决定了当按下Tab键时候,焦点不会失去 if fWantTab then Msg.Result := Msg.Result or DLGC_WANTTAB; end;
procedure TMyEdit.WMGetDlgCode(var Msg: TWMGetDlgCode); begin inherited; Msg.Result := DLGC_WANTARROWS or DLGC_WANTCHARS; //此句决定了当按下Tab键时候,焦点不会失去 if fWantTab then Msg.Result := Msg.Result or DLGC_WANTTAB; end;