怎么更换TDBNavigator上面的几个小图标阿?? 怎么更换TDBNavigator上面的几个小图标阿?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 换个控件不,然后掉用DBNavigator的方法不就OK了 hehe^^ procedure TForm1.ChangeDBNavImage(DBNav:TDBnavigator);var i: Integer; tempGlyph: TBitmap; ExePath: string;begin ExePath := ExtractFilePath(Application.ExeName)+'BMP\'; tempGlyph := TBitmap.Create; try with DBNav do begin for i := 0 to ControlCount - 1 do begin if Controls[i].ClassName = 'TNavButton' then begin case TNavButton(Controls[i]).Index of nbFirst: tempGlyph.LoadFromFile(ExePath + 'first.bmp'); nbPrior: tempGlyph.LoadFromFile(ExePath + 'previous.bmp'); nbNext: tempGlyph.LoadFromFile(ExePath + 'Next.bmp'); nbLast: tempGlyph.LoadFromFile(ExePath + 'Last.bmp'); nbInsert: tempGlyph.LoadFromFile(ExePath + 'Insert.bmp'); nbDelete: tempGlyph.LoadFromFile(ExePath + 'Delete.bmp'); nbEdit: tempGlyph.LoadFromFile(ExePath + 'Edit.bmp'); nbPost: tempGlyph.LoadFromFile(ExePath + 'Post.bmp'); nbCancel: tempGlyph.LoadFromFile(ExePath + 'Cancel.bmp'); nbRefresh: tempGlyph.LoadFromFile(ExePath + 'Refresh.bmp'); end; TNavButton(Controls[i]).Glyph := tempGlyph; end; end; end; finally tempGlyph.Free; end;end;procedure TForm1.FormShow(Sender: TObject);beginChangeDBNavImage(DBNavigator1);end; 如何取圆形区域像素的中值 文件加载到剪切板 BDE搞手们,如何解决Database Login窗口问题,急救了! 求助:向各位大哥请教一个 output 参数的问题,谢谢! 弹出对话框问题 intrawen & rave update pack 求救一个以业务流程为主的使用手册模板 怎么样把网页里表格的数据通过delphi写的程序导入到数据库中去。 一两狂死郎之天衣有缝:我是琳琳,提问有关音量问题的人。请来一下!! 要调试VCL的原吗,要加什么才能进行调试阿 网上有没有下载ROSE的地方?想找一个试试 [统计]大家做软件(例如进销存、物资管理)时录入单、打印时,都用什么控件啊?
var
i: Integer;
tempGlyph: TBitmap;
ExePath: string;
begin
ExePath := ExtractFilePath(Application.ExeName)+'BMP\';
tempGlyph := TBitmap.Create;
try
with DBNav do
begin
for i := 0 to ControlCount - 1 do
begin
if Controls[i].ClassName = 'TNavButton' then
begin
case TNavButton(Controls[i]).Index of
nbFirst: tempGlyph.LoadFromFile(ExePath + 'first.bmp');
nbPrior: tempGlyph.LoadFromFile(ExePath + 'previous.bmp');
nbNext: tempGlyph.LoadFromFile(ExePath + 'Next.bmp');
nbLast: tempGlyph.LoadFromFile(ExePath + 'Last.bmp');
nbInsert: tempGlyph.LoadFromFile(ExePath + 'Insert.bmp');
nbDelete: tempGlyph.LoadFromFile(ExePath + 'Delete.bmp');
nbEdit: tempGlyph.LoadFromFile(ExePath + 'Edit.bmp');
nbPost: tempGlyph.LoadFromFile(ExePath + 'Post.bmp');
nbCancel: tempGlyph.LoadFromFile(ExePath + 'Cancel.bmp');
nbRefresh: tempGlyph.LoadFromFile(ExePath + 'Refresh.bmp');
end;
TNavButton(Controls[i]).Glyph := tempGlyph;
end;
end;
end;
finally
tempGlyph.Free;
end;
end;procedure TForm1.FormShow(Sender: TObject);
begin
ChangeDBNavImage(DBNavigator1);
end;