Peto_Gabor
(Peto Gabor)
September 12, 2013, 7:52pm
1
Hello,
When cursor is over the scrolling bar it is flashing, showing some part of the cards.
I tried the demo (AdvCardListDemo).
Is there any setting that can remove this flashing?
I am using Delhi XE.
Thank you!
tms_Nancy
(tms Nancy)
September 13, 2013, 2:47am
2
Set
AdvCardList1.DoubleBuffered := false;
Peto_Gabor
(Peto Gabor)
September 13, 2013, 8:56am
4
When I scrolling with mouse it steps by two items not one. How can I set it to scroll one-by one?
Thanks.
I have retested this here with our TAdvCardList demo app and when clicking on the scrollbar, it scrolls one column at a time. How exactly can we reproduce the problem you experience?
Peto_Gabor
(Peto Gabor)
September 13, 2013, 5:30pm
6
I would like a one column list. So I set
ScrollBarType = sbtVertical
Sorted = False
ReadOnly = True
I loaded lot of cards, and I try to scroll with my mouse wheel. (1..3..5..7..9)
With keyboard it is ok, it stepped one-by one. (1..2..3..4..5)
With scrollbar it is ok.
Is it possible to set an ID (number) to each card?
Thanks
Peto_Gabor
(Peto Gabor)
September 14, 2013, 7:59am
7
How can I get the index of a clicked card?
I tested this here with a default TAdvCardList on the form and the code:
procedure TForm5.FormCreate(Sender: TObject);
var
i: integer;
ac: TAdvCard;
begin
advcardlist1.CardTemplate.Items.Add;
for i := 0 to 10 do
begin
ac := advcardlist1.Cards.Add;
ac.Caption := 'item '+inttostr(i);
ac.ItemList[0].AsString := 'one';
ac.ItemList[1].AsString := 'two';
end;
end;
and this scrolls one by one when clicking on the scrollbar up/down buttons. What is different in your app?
Peto_Gabor
(Peto Gabor)
September 14, 2013, 12:09pm
10
Don't use the scrollbar's buttons. Click one of the cards, and then use the mouse wheel.
This is by design. The nr. of items to scroll is defined in the operating system. See control panel where it can be configured how much lines to scroll on the mouse wheel scroll.