Salahdz 1 Posted February 25, 2021 Hello, I want to set listview itemapearance text when the program run but i still have no idea Share this post Link to post
Rollo62 536 Posted February 25, 2021 https://www.youtube.com/watch?v=yVwYZ05N7Sg https://blogs.embarcadero.com/introducing-the-listview-item-designer-in-rad-studio-10-1-berlin/ https://www.youtube.com/watch?v=nRPDH5dHMCA https://www.youtube.com/watch?v=il55nvYbDsg Share this post Link to post
Salahdz 1 Posted February 25, 2021 1 minute ago, Rollo62 said: https://www.youtube.com/watch?v=yVwYZ05N7Sg https://blogs.embarcadero.com/introducing-the-listview-item-designer-in-rad-studio-10-1-berlin/ https://www.youtube.com/watch?v=nRPDH5dHMCA https://www.youtube.com/watch?v=il55nvYbDsg so quick, i ll chek thank you Share this post Link to post
Salahdz 1 Posted February 25, 2021 hello, found procedure TServiceBillform.listview_venteUpdateObjects(const Sender: TObject; const AItem: TListViewItem); var Tex : Tlistitemtext; begin Tex := AItem.View.FindDrawable('Text1') as tlistitemtext; Tex.Width:=listview_vente.width-147; // their is two button on the right of text 1 // couldn't finde align layout listviewitems end; Share this post Link to post
Rollo62 536 Posted February 25, 2021 (edited) TListItemText has all properties for alignment; Align, VertAlogn; PlaceOffset You better check FindDrawable before access, call me paranoid, but I never trust any FindXxx method var Dwb : TlistItemDrawable; ... Dwb := AItem.View.FindDrawable('Text1'); if Assigned( Dwb ) and ( Dwb is TlistItemText ) then begin Text := Dwb as TlistItemText; ... end; Edited February 25, 2021 by Rollo62 Share this post Link to post