Ir al contenido


Foto

[TRUCO DELPHI] Cambiar los iconos de los botones de un TDBNavigator.


  • Por favor identifícate para responder
No hay respuestas en este tema

#1 sir.dev.a.lot

sir.dev.a.lot

    Advanced Member

  • Miembros
  • PipPipPip
  • 545 mensajes
  • Location127.0.0.1

Escrito 31 agosto 2016 - 12:54

[TRUCO DELPHI] Cambiar los iconos de los botones de un TDBNavigator.


delphi
  1. procedure TForm1.FormCreate(Sender: TObject);
  2. var
  3. i : Integer;
  4. tempGlyph : tBitmap;
  5. begin
  6. tempGlyph :=TBitmap.Create;
  7. try
  8. tempGlyph.LoadFromResourceName
  9. (HInstance,'GoFirst');
  10. with DBNavigator1 do begin
  11. for i := 0 to ControlCount - 1 do
  12. if Controls[c] is TNavigateBtn then
  13. with TNavigateBtn(Controls[c])
  14. do begin
  15. case Index of
  16. nbFirst: Glyph := tempGlyph;
  17. end;
  18. end;
  19. end;
  20. finally
  21. tempGlyph.Free;
  22. end;
  23. end;

Saludos!


  • 2




IP.Board spam blocked by CleanTalk.