
经分析修改以下两个文件即可达到目标
cxCustomData.pas
修改一
修改二
cxLookupEdit.pas
修改一
function TcxCustomLookupEditLookupData.Locate(var AText, ATail: string; ANext: Boolean): Boolean;
function SetGridFilter(AItemIndex: Integer; const AText: string): Integer;
. ..
var
AItemIndex, ARecordIndex: Integer;
S: string;
begin
Result := False;
DisableChanging;
try
AItemIndex := GetListIndex;
if (AItemIndex <> -1) and (DataController <> nil) then
begin
// TODO: Next
if FVisible and Properties.GetIncrementalFiltering {and (Properties.DropDownListStyle <> lsFixedList)} then
ARecordIndex := SetGridFilter(AItemIndex, AText)
else
ARecordIndex := Properties.FindByText(AItemIndex, AText, True);
if ARecordIndex <> -1 then
begin
DataController.ChangeFocusedRecordIndex(ARecordIndex);
DoSetCurrentKey(ARecordIndex);
Result := True;
//此处为添加代码
if DataController.DisplayIndex > -1 then
begin
S := DataController.DisplayTexts[ARecordIndex, DataController.DisplayIndex];
DataController.DisplayIndex := -1;
end
else
begin
S := DataController.DisplayTexts[ARecordIndex, AItemIndex];
end;
//结束
AText := Copy(S, 1, Length(AText));
ATail := Copy(S, Length(AText) + 1, Length(S));
DoSetKeySelection(True);
end
else
DoSetKeySelection(False);
end;
finally
EnableChanging;
end;
end;
经过以上修改重新编译就可以了。
不想用Delphi的Indy控件. 实在是BUG太多, 而且引用后,你的程序容量将大量增加
在考虑之后决定使用纯winsock来写一个发邮件的类, 并且支持发送附件.
在网上找到smtp协议介绍.,并且自己用foxmail发送一封带附件的邮件
抓包分析后 写了一个发送邮件的类. 可能有些BUG 请大家指出
调用方法
一个打台球的网络游戏外挂 由于原服务器关闭,所以分析了一下网络验证部分
做了个内存补丁,搞定。并且自己做了个服务主机。
试用的时候 用户和密码都为空
[下载]
吉他课程终于学完了,转眼间不觉过了半年。感觉自己吉他弹的还不是很好
也许是自己没有太多的时间去练习,又或许是自己的天赋不够。
今天晚上很静,于是录了这首歌。
我不习惯用语言来表达自己的情感~~
我只是在唱这首歌的时候会想起很多人~
曾经和我在一起的朋友现在你还好吗~~
现在的你快乐吗~~
那些花儿,送给我所有的朋友!
loading...
Powered By X2Blog 5.0