Hi, If the list AdvSmoothListBox includes about 50 elements with images, scrolling is very very slow.
Hi,
Fill AdvSmoothListBox - one item
mPicture := TPicture.Create;
........
//insert one item
mItem := slbCards.Items.Add; //slbCards is TAdvSmoothListBox
fObj.GetPicture(mIndex, mPicture); //Get Picture to mPicture
mItem.GraphicLeft.Assign(mPicture.Graphic);
mItem.GraphicLeftType := gtImage;
mItem.GraphicLeftWidth := 50;
mItem.GraphicLeftHeight := 50;
mItem.GraphicLeft.Transparent := True;
if not mHidden then begin
mItem.GraphicRight.Assign(pcBase.Items[0].Picture); //pcBase is TGDIPPictureContainer
mItem.GraphicRightType := gtImage;
mItem.GraphicRightWidth := 20;
mItem.GraphicRightHeight := 50;
mItem.GraphicRight.Transparent := True;
mItem.Hint := 'POZOR - karta je ve viditelném stavu!';
end
else begin
mItem.GraphicRightType := AdvSmoothListBox.gtNone;
mItem.Hint := '';
end;
.......
We have tested this here and we are unable to reproduce this we the above code, but we need additional informatoin, please send us your sample that demonstrates the slowness so we can investigate this here.
I modified your demo page aplikaci.Na http://scully.eu/ can download the zip file.
The slowness is due to the large wallpaper you are using to load inside the graphic left image.
Pieter Scheldeman2012-11-26 07:19:20
thanks, now is ok