In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

CardBox: Force a card to be visible

Xailer professional forum in English
Timm
Posts: 95
Joined: Mon Jun 21, 2010 11:01 am

CardBox: Force a card to be visible

Postby Timm » Fri Nov 08, 2019 9:17 am

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
User avatar
ignacio
Site Admin
Posts: 8562
Joined: Mon Apr 06, 2015 8:00 pm
Location: Madrid, Spain
Contact:

Re: CardBox: Force a card to be visible

Postby ignacio » Mon Nov 11, 2019 12:17 pm

Hi Timm,

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

Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
User avatar
ignacio
Site Admin
Posts: 8562
Joined: Mon Apr 06, 2015 8:00 pm
Location: Madrid, Spain
Contact:

Re: CardBox: Force a card to be visible

Postby ignacio » Mon Nov 11, 2019 12:36 pm

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,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Timm
Posts: 95
Joined: Mon Jun 21, 2010 11:01 am

Re: CardBox: Force a card to be visible

Postby Timm » Tue Nov 12, 2019 7:53 pm

Hi!

Works, many thanks!

Regards, Timm

Return to “English”