Ver Mensaje Individual
  #3  
Antiguo 09-04-2024
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is offline
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - Espańa
Posts: 18.289
Reputación: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
Cita:
Empezado por ArtPortEsp Ver Mensaje
necesito hacer una autoseleccion de los items de un ListBox conforme se vayan agregando nuevos, no encuentro como hacerlo, alguna sugerencia?
En versiones nueva hay un SelectAll (si es que necesitas multiselección).

Código Delphi [-]
uses
  System.DateUtils;

procedure TForm3.Button1Click(Sender: TObject);
begin
  // rellenar klos meses del ańo
  for var i := 1 to 12 do
    ListBox1.Items.Add(FormatDateTime('mmmm', EncodeDate(YearOf(Now), i, 1)));
  // Seleccionar todos
  ListBox1.MultiSelect := True;
  ListBox1.SelectAll;
end;
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.
Responder Con Cita