<<

I do have a work around, but perhaps there is a better one. I have bunch on 
Variable Images on a form. I would like to be able to use a CTRL-Mouse Click to 
pick and choose which ones to highlight, and then after they are highligted, 
perform some action, ie print, fax, delete, etc.
>>


I can think of a number of ways to code this interface.

The first is to use a variable lookup listview (or perhaps the regular, 
non-variable, non-database listview, depending on where you get the images 
from).  The listview contains some method (I haven't done it, so I'm not sure 
how it works) to associate images with each item in the list view.  You can 
throw the list view into various modes by changing the VIEWSTYLE property — 
working from Delphi, I assume the available styles are vsReport (default), 
vsIcon, vsList, and vsSmallIcon.  Assuming the images are the icons then vsIcon 
will show an area containing all your images.

The list view already supports multi-select, and you can even use drag and drop 
if you want to "move" the pictures somewhere else (R:Base gives you the ability 
to respond to drag-and-drop, you have to write the code to dispose of the items 
that get moved yourself).

If you want to avoid the list view (which is simply the coolest control 
anywhere on the toolbar) then you could set up your application so it has a 
"selected images" section and an "available images" section.  People would 
click on an image and you would highlight it with your current technique.  Then 
they could right click, or use a speed button to "select" the image, at which 
point you "move" it to the selected images area.  It would be nicest if you 
could drag and drop images between the two sections, but unfortunately the 
image controls don't seem to support drag and drop, nor does the panel control 
(which would be the area to and from which you'd "drag" your images).  You can 
still do it with a right-click menu, or a speed button, however.
--
Larry

Reply via email to