Page 1 of 1

CardBox: Force a card to be visible

Posted: Fri Nov 08, 2019 9:17 am
by Timm
Hi!

How can I force a CardItem to be visible?

CardBox:nIndex sets the focus to a card but does not scroll to it when the card is not visible.

Regards, Timm

Re: CardBox: Force a card to be visible

Posted: Mon Nov 11, 2019 12:17 pm
by ignacio
Hi Timm,

I see what I can do and I let you know ASAP.

Regards,

Re: CardBox: Force a card to be visible

Posted: Mon Nov 11, 2019 12:36 pm
by ignacio
Timm wrote:Hi!

How can I force a CardItem to be visible?

CardBox:nIndex sets the focus to a card but does not scroll to it when the card is not visible.

Regards, Timm


Hi,

I expect you only have problems with the TDBCardBox. If is that the case you can fix it with this simple code on XDBCardBox class:

Code: Select all

METHOD SetIndex( Value ) CLASS XDBCardBox

   ::oDataSet:GoTo( Value )

RETURN ::Super:SetIndex( Value )


Any feedback is welcome.

Regards,

Re: CardBox: Force a card to be visible

Posted: Tue Nov 12, 2019 7:53 pm
by Timm
Hi!

Works, many thanks!

Regards, Timm

Re: CardBox: Force a card to be visible

Posted: Thu Nov 21, 2019 3:11 pm
by bingen
Thank you Ignacio, this solves my problem too.