Ver Mensaje Individual
  #5  
Antiguo 13-03-2010
BrunoBsso BrunoBsso is offline
Miembro
 
Registrado: nov 2009
Ubicación: Berisso, Buenos Aires, Argentina
Posts: 239
Reputación: 17
BrunoBsso Va por buen camino
Es como te indiqué en el segundo mensaje.
Está sacado directamente del código fuente de la clase JvSwitch.
Hacelo como dice ahí y no vas a tener ningún problema.
Código Delphi [-]
procedure PonerImagenGlyphOn(Img:TBitmap);
begin
  //GlyphOn tiene predefinido el índice 1 y GlyphOff tiene predefinido el índice 0, en la clase JVSwitch
  JVSwitch.SetSwitchGlyph(1,Img);
  //JvSwitch.SetSwitchGlyph recibe como primer parámetro el índice (0=GlyphOff; 1=GlyphOn) y como segundo parámetro la imagen
end;


procedure TForm1.Button1Click(Sender:TObject);
begin
  PonerImagenGlyphOn(ImageMia.Picture.Bitmap);
end;
Probalo (es un vago ejemplo) que te va a funcionar de 10!
Saludos!
Responder Con Cita