U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Problem with Drag&Drop in ArrayCtrl
Re: Problem with Drag&Drop in ArrayCtrl [message #22559 is a reply to message #22558] Mon, 27 July 2009 09:03 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3460
Registered: August 2008
Senior Veteran
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


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Substring formating in ArrayCtrl (SqlCtrl)
Next Topic: Right Click on GridCtrl
Goto Forum:
  


Current Time: Sun Jun 21 16:59:53 GMT+2 2026

Total time taken to generate the page: 0.01237 seconds