Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Problem with Drag&Drop in ArrayCtrl
Re: Problem with Drag&Drop in ArrayCtrl [message #22571 is a reply to message #22559] |
Mon, 27 July 2009 17:20   |
 |
mirek
Messages: 14266 Registered: November 2005
|
Ultimate Member |
|
|
koldo wrote on Mon, 27 July 2009 03:03 | Hello Mirek
This is:
void MainWindow::Timer()
{
if (timerOn)
return;
timerOn = true;
for (int i = 0; i < thumbnails.GetCount(); ++i) {
if (!thumbnails[i].loaded) {
if (thumbnails[i].type == TYPE_IMAGE)
LoadThumbnail(i);
else if (thumbnails[i].type == TYPE_VIDEO)
LoadThumbnailVideo(i);
filesList.UpdateRefresh();
//filesList.RefreshRow(FindThumbnail(thumbnails[i].fileName));
break;
}
}
timerOn = false;
}
thumbnails array has all the thumbnailed images. This loops opens the first not opened yet.
With this when you open a folder all file names are viewed and every 200ms a thumbnail is loaded and viewed, similar to Nautilus in Gnome.
Best regards
Koldo
|
And LoadThumbnail* ? (I need to see commands that you use to alter ArrayCtrl content...).
BTW, I believe RefreshRow works as it should. Any chance the problem is in FindThumbnail?
(In fact, using normal "Set", you do not even need RefreshRow - it is called implicitly).
Mirek
[Updated on: Mon, 27 July 2009 17:23] Report message to a moderator
|
|
|
 |
|
Problem with Drag&Drop in ArrayCtrl
By: koldo on Wed, 15 July 2009 18:02
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: koldo on Sat, 18 July 2009 13:51
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: mirek on Sun, 26 July 2009 17:28
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: koldo on Sun, 26 July 2009 23:50
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: mirek on Mon, 27 July 2009 03:19
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: koldo on Mon, 27 July 2009 09:03
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: mirek on Mon, 27 July 2009 17:20
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: koldo on Tue, 28 July 2009 00:15
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: mirek on Tue, 28 July 2009 03:06
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: koldo on Tue, 28 July 2009 09:49
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: mrjt on Tue, 28 July 2009 13:59
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: mrjt on Tue, 28 July 2009 14:24
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: koldo on Tue, 28 July 2009 16:24
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: mrjt on Tue, 28 July 2009 17:08
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: koldo on Tue, 28 July 2009 22:56
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: mirek on Wed, 29 July 2009 05:48
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: koldo on Wed, 29 July 2009 08:34
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: mirek on Wed, 29 July 2009 08:45
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: koldo on Wed, 29 July 2009 13:16
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: mirek on Fri, 31 July 2009 19:04
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: koldo on Thu, 13 August 2009 13:42
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl [SOLVED]
By: koldo on Wed, 26 August 2009 09:17
|
 |
|
Re: Problem with Drag&Drop in ArrayCtrl
By: mirek on Sun, 26 July 2009 17:28
|
Goto Forum:
Current Time: Fri Jul 18 07:23:05 CEST 2025
Total time taken to generate the page: 0.04183 seconds
|