On Dec 08, 2006, at 16:30 UTC, Stephen Dodd wrote:

> How do other people handle dealing with lots of graphic files?  Do 
> you use the IDE? Do you load them dynamically?  Tips and tricks, even 
> on filing + naming appreciated.

I load them dynamically.  I also make a little module that's
responsible for managing them.  It scans the pictures folder the first
time it's called, and loads a dictionary in memory mapping file names
(converted to lower case) to FolderItems.  This makes it
case-insensitive on all platforms, and also greatly reduces the amount
of time it takes to locate a file.  I also keep another dictionary
mapping file names (again in lowercase) to Picture objects.  This isn't
loaded at startup, but instead is a cache; the first time any
particular picture is asked for, it's read from disk, and then stored
in the cache dictionary so it can be returned very quickly next time.

> This feature request would help the manageability as well:
> Canvas Backdrop IDE Chooser Should Allow Typing Image Name
> http://www.realsoftware.com/feedback/viewreport.php?reportid=sipdmlcb

True.... though I never use Canvas.Backdrop, so it's not a pain I've
felt myself.  Backdrop always seems like a temporary crutch to me; I
almost always end up needing to do something in the Paint event, so I
may as well draw the background image there too.

Best,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
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