On Jun 22, 2006, at 8:54 AM, Emile Schwarz wrote:

Hi,

REALbasic 2006
OS: LMW


The question is a bit large, and I know how to deselect a Row in a ListBox. What I want to do is to deselect the Row once the song playing is over, but this does not works and the song is playing back again.

Here's an idea of what the code does:

The ListBox contains a list of songs, I select many songs. In a loop, I search in the whole ListBox the Selected Rows (from 0 to ListCount). Once I reach a selected Row, I play using the Sound Class the song. In the IsPlaying loop I placed the code to delect this particular Row (the one that is playing).

I even added before the End If (if the Row is selected, no Else) that deselect code who works in MouseDown, no success... The same file is played again and again and again.

I do not bother too much about that file playing and playing and playing again because I love that song, but I love other songs too; and hearing the same song a bit too much will do... ad nauseam!

Any idea to achive my goal ?


Control-click will deselect any row, so you may be able to trap a Control-click and then execute your search for selected rows again to update your playlist.

Best regards,

Jack
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to