Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Coloboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #8  
Antiguo 27-02-2008
Avatar de jachguate
jachguate jachguate is offline
Miembro
 
Registrado: may 2003
Ubicación: Guatemala
Posts: 6.254
Poder: 30
jachguate Va por buen camino
bueno... yo eso lo haría algo así:

Código Delphi [-]
var
  bmp: TBitmap;
  Indice: Integer;
begin
  case ListBox1.ItemIndex  of
    0:  Indice := 4;
    1:  Indice := 2;
    2:  Indice := 10;
    3:  Indice := 4;
    4:  Indice := 2;
    5:  Indice := 10;
    6:  Indice := 0;
    7:  Indice := 6;
    else Indice := 0;
  end;
  bmp := TBitmap.Create;
  try
    if ImageList1.GetBitmap(Indice, bmp) then
    begin
      bbtnComando.Glyph := bmp;
      bbtnComando.Caption := ListBox1.Items[ListBox1.ItemIndex];
    end
    else
    begin
      bbtnComando.Glyph := nil;
      bbtnComando.Caption := 'Error interno!';
    end;
  finally
    bmp.Free;
  end;

Hasta luego.

__________________
Juan Antonio Castillo Hernández (jachguate)
Guía de Estilo | Etiqueta CODE | Búsca antes de preguntar | blog de jachguate
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 09:54:21.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi