Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 19 total
Thread OT - Open Pricture Dialog
Tue, Nov 27 2007 4:18 PMPermanent Link

"Jeff Cook"

Kia Orana All

I'm looking for a better open dialog that I can use to open multiple
JPEG files for loading into a DBISAM table.

Currently I use TOpenPictureDialog from the JVCL set and it works OK
when you open one picture, displaying the contents of the file as a
thumbnail.  The problem is that nothing is displayed if you select
multiple files at the same time.

I'd like it to display multiple thumbnails when selecting multiple
files, probably with scroll bars to see all that you have selected.

Either I'm not working it correctly or I need a different component
(preferably free of course).

Any suggestions (other than Googling, which I have done ad nausem).

Kia Manuia

Jeff

--
Jeff Cook
Aspect Systems Ltd
www.aspect.co.nz
+
Joan and Jeff Cook
The Cooks Oasis
www.cookislandsoasis.com
Wed, Nov 28 2007 1:43 PMPermanent Link

David
On 11/27/07 4:18 PM, in article
879B9A3F-E90A-48CE-8074-BBE1FFF82964@news.elevatesoft.com, "Jeff Cook"
<jeffc@aspect.co.nz> wrote:

> Any suggestions (other than Googling, which I have done ad nausem).

I'd recommend building your own dialog.  It is easy and you will get exactly
what you want.
Wed, Nov 28 2007 8:50 PMPermanent Link

"Jeff Cook"
David wrote:

> On 11/27/07 4:18 PM, in article
> 879B9A3F-E90A-48CE-8074-BBE1FFF82964@news.elevatesoft.com, "Jeff Cook"
> <jeffc@aspect.co.nz> wrote:
>
> > Any suggestions (other than Googling, which I have done ad nausem).
>
> I'd recommend building your own dialog.  It is easy and you will get
> exactly what you want.

Hmmmm ...

Thanks for that.  I was afraid that might be the answer.  "easy" is a
relative term!

Cheers

Jeff

--
Jeff Cook
Aspect Systems Ltd
www.aspect.co.nz
+
Joan and Jeff Cook
The Cooks Oasis
www.cookislandsoasis.com
Thu, Nov 29 2007 2:32 AMPermanent Link

David
"Jeff Cook" <jeffc@aspect.co.nz> wrote:

Thanks for that.  I was afraid that might be the answer.  "easy" is a
relative term!


Oh no.  Making a custom dialog is easy.  Trivially easy.  I needed a better login w/
password dialog and I couldn't any third party one did what I needed it to do and all of
them were really ugly.  So I made my own.

Making a dialog is the exact same as making a form.  You just call it and pass variables.

LoginForm := TLoginform.Create(Application);   {Open login dialog}
   if Loginform.ShowModal = mrOk then
     begin
     UName := Form1.Encryption.EncryptString(Loginform.NameEdit.Text);  {Grab variables}
     UPass   := Form1.Encryption.EncryptString(Loginform.PassEdit.Text);
     
Now just process your data and free the form.

Really simple and once you start rolling your own dialogs you can really customize your
program.

Thu, Nov 29 2007 11:57 AMPermanent Link

Have a look at the source to the Delphi picture dialog. I reckon you could
use that as the basis, and tab the panels or something. Just rename the
component in a copy of the file in your project before you start work on
it.

/Matthew Jones/
Thu, Nov 29 2007 3:24 PMPermanent Link

"Jeff Cook"
David wrote:

> "Jeff Cook" <jeffc@aspect.co.nz> wrote:
>
<snip>
>
> Making a dialog is the exact same as making a form.  You just call it
> and pass variables.
>
<snip>

Yes, Thank you David.

I understand what you say and do the same thing in our applications.

The "not so easy bit", which I was hoping to do by pinching someone
else's code was the display of all the files as thumbnail images and
names, being able to select them and highlight them using all the
standard Windows stuff Ctrl, Shift, Click, Ctrl-A etc.

One way I thought of was to load all the filenames, dates, sizes into a
memory table, display it in a grid and with thumbnails and allow
multiselect on the grid.  At least I know how to do all that. It just
wouldn't look Windows-like.

Cheers

Jeff

--
Jeff Cook
Aspect Systems Ltd
www.aspect.co.nz
+
Joan and Jeff Cook
The Cooks Oasis
www.cookislandsoasis.com
Thu, Nov 29 2007 3:26 PMPermanent Link

"Jeff Cook"
Matthew Jones wrote:

> Have a look at the source to the Delphi picture dialog. I reckon you
> could use that as the basis, and tab the panels or something. Just
> rename the component in a copy of the file in your project before you
> start work on it.
>
> /Matthew Jones/

Meitaki Maata Matthew

I'll look at that too.

--
Jeff Cook
Aspect Systems Ltd
www.aspect.co.nz
+
Joan and Jeff Cook
The Cooks Oasis
www.cookislandsoasis.com
Fri, Nov 30 2007 3:41 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Jeff


I've just had a play with CodeGears TOpenPictureDialog in D2006 on XP and it shows all the files as pictures, multiple selections result in each of the selected ones having a black border. Naturally when you get beyond one selected the sidebar shows nothing.

Roy Lambert
Fri, Nov 30 2007 4:46 PMPermanent Link

"Jeff Cook"
Roy Lambert wrote:

> Jeff
>
>
> I've just had a play with CodeGears TOpenPictureDialog in D2006 on XP
> and it shows all the files as pictures, multiple selections result in
> each of the selected ones having a black border. Naturally when you
> get beyond one selected the sidebar shows nothing.
>
> Roy Lambert

Sounds like exactly what I want - just need it in Delphi 6.

Cheers

Jeff

--
Jeff Cook
Aspect Systems Ltd
www.aspect.co.nz
+
Joan and Jeff Cook
The Cooks Oasis
www.cookislandsoasis.com
Fri, Nov 30 2007 7:44 PMPermanent Link

Julio Saucedo
The ImageEN package have a picture open dialog.
IIRC it have a preview area, but don't remember
what is the behavior when selecting multiple files.
Take a look at www.hicomponents.com

Regards.

Julio.

> Kia Orana All
>
> I'm looking for a better open dialog that I can use to open multiple
> JPEG files for loading into a DBISAM table.
>
> Currently I use TOpenPictureDialog from the JVCL set and it works OK
> when you open one picture, displaying the contents of the file as a
> thumbnail.  The problem is that nothing is displayed if you select
> multiple files at the same time.
>
> I'd like it to display multiple thumbnails when selecting multiple
> files, probably with scroll bars to see all that you have selected.
>
> Either I'm not working it correctly or I need a different component
> (preferably free of course).
>
> Any suggestions (other than Googling, which I have done ad nausem).
>
> Kia Manuia
>
> Jeff
>
Page 1 of 2Next Page
Jump to Page:  1 2
Image