Recent

Author Topic: IBX 2.4.0 for Lazarus is now available for download  (Read 4713 times)

tonyw

  • Full Member
  • ***
  • Posts: 194
    • MWA Software
Re: IBX 2.4.0 for Lazarus is now available for download
« Reply #15 on: March 08, 2021, 05:40:06 pm »
i have done this , but when i open the sqlquery it is loading the first row till i scroll the mouse down then it shows other rows , (1.gif) - when i press play button in any row and when i move the focus into other row the controls in panel for example track bar also move , i wan only the row where i press button to interact not other rows.(2.gif)
thanks
It's probably worth calling the sqlquery's "Last" method after opening it. This will ensure that the RecordCount is correct.

alaa123456789

  • Full Member
  • ***
  • Posts: 167
Re: IBX 2.4.0 for Lazarus is now available for download
« Reply #16 on: March 08, 2021, 06:19:37 pm »
It's probably worth calling the sqlquery's "Last" method after opening it. This will ensure that the RecordCount is correct.
thanks i added it and it solved first issue, please have a look on the gif when i scroll down other rows got affected , i am playing one record dont want the others to be affected

tonyw

  • Full Member
  • ***
  • Posts: 194
    • MWA Software
Re: IBX 2.4.0 for Lazarus is now available for download
« Reply #17 on: March 09, 2021, 03:13:11 pm »
The thing you need to be careful about with a DBControlGrid is that there is an element of "illusion" about the list of rows. Only the currently focused row is the actual TPanel + controls, the others are no more than saved images in  a cache..

The control works by selecting each row in the current window and then drawing the panel to an in memory image. It then positions the panel so that it is located where the focused row is displayed. The remaining rows are then drawn from the cache. If you are playing a multimedia object and move the focus then the current playback will be stopped and replaced by the media from the selected row.

If you don't want to interrupt a playback then you need to add a "BeforeScroll" handler to the underlying dataset, check to see if the media is still playing and ask the user if they want to interrupt playback. You will need to raise an exception to stop the dataset scrolling if the user does not want to stop the playback.

alaa123456789

  • Full Member
  • ***
  • Posts: 167
Re: IBX 2.4.0 for Lazarus is now available for download
« Reply #18 on: March 12, 2021, 12:58:26 pm »
i have done small example ,guys can use from this link

https://youtu.be/gG9HlLqRPhU

thanks
« Last Edit: March 12, 2021, 03:19:55 pm by alaa123456789 »

Zoran

  • Hero Member
  • *****
  • Posts: 1667
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: IBX 2.4.0 for Lazarus is now available for download
« Reply #19 on: April 10, 2021, 10:57:52 am »
Package IBControls no more compiles in Lazarus trunk.

Quote
DBTreeView.pas(568,11) Error: Identifier not found "tvsUpdating"

It is since Lazarus rev. 64855, from 2021-03-22.

It seems that tvsUpdating was just removed -- https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/comctrls.pp?root=lazarus&r1=64848&r2=64855&pathrev=64855


Zoran

  • Hero Member
  • *****
  • Posts: 1667
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: IBX 2.4.0 for Lazarus is now available for download
« Reply #20 on: April 10, 2021, 11:18:43 am »
It seems that tvsUpdating was just removed -- https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/comctrls.pp?root=lazarus&r1=64848&r2=64855&pathrev=64855

I reported it as LCL bug (mantis 38735), as I think that a value should not be just removed; if it is not needed, then it should first be marked as deprecated and wait at least one Lazarus release before actually removing it, to allow third party developers to adjust their code.

Zoran

  • Hero Member
  • *****
  • Posts: 1667
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: IBX 2.4.0 for Lazarus is now available for download
« Reply #21 on: April 10, 2021, 02:01:52 pm »
WP returned tvsUpdating in rev. 64947.

So, the package compiles again, but Tony, please take a look at wp's comment in the bug report.


 

TinyPortal © 2005-2018