Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to create custom file dialog
How to create custom file dialog [message #467317] Sat, 28 January 2006 22:17 Go to next message
Eclipse UserFriend
Originally posted by: murat.abv.bg

Hi,
I need to create custom file open dialog with preview of graphics files.
I created a composite for viewing images, but how can I add it to the
file open dialog? Or how can I build my own file open dialog with the
composites of the original one plus my composite?
Thanx.
Murad
Re: How to create custom file dialog [message #467319 is a reply to message #467317] Sat, 28 January 2006 22:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: murat.abv.bg

And yes, there is an option to view thumbnails of images, but it does
not work for me. I create a preview of custome file formats.

Murad Murad wrote:
> Hi,
> I need to create custom file open dialog with preview of graphics files.
> I created a composite for viewing images, but how can I add it to the
> file open dialog? Or how can I build my own file open dialog with the
> composites of the original one plus my composite?
> Thanx.
> Murad
Re: How to create custom file dialog [message #467321 is a reply to message #467317] Sat, 28 January 2006 22:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: murat.abv.bg

And yes, there is an option to view thumbnails of images, but it does
not work for me. I create a preview of custome file formats.

Murad Murad wrote:
> Hi,
> I need to create custom file open dialog with preview of graphics files.
> I created a composite for viewing images, but how can I add it to the
> file open dialog? Or how can I build my own file open dialog with the
> composites of the original one plus my composite?
> Thanx.
> Murad
Re: How to create custom file dialog [message #467322 is a reply to message #467321] Sat, 28 January 2006 22:50 Go to previous messageGo to next message
Adam Kumpf is currently offline Adam KumpfFriend
Messages: 14
Registered: July 2009
Junior Member
Murad Murad wrote:

> And yes, there is an option to view thumbnails of images, but it does
> not work for me. I create a preview of custome file formats.

> Murad Murad wrote:
>> Hi,
>> I need to create custom file open dialog with preview of graphics files.
>> I created a composite for viewing images, but how can I add it to the
>> file open dialog? Or how can I build my own file open dialog with the
>> composites of the original one plus my composite?
>> Thanx.
>> Murad

I'm curious. What is the option to view thumbnails? I can't seem to
figure out how to do it in SWT. (code snippet?)

thanks,
Adam

kumpf@mit.edu
Re: How to create custom file dialog [message #467326 is a reply to message #467317] Sat, 28 January 2006 23:09 Go to previous message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
The existing SWT file dialog cannot be embedded as a composite. This is because the file dialog itself is entirely native on all platforms. Not all platforms support embedding of the file dialog within another shell and even if they did, it's doubtful that SWT would. The best solution (if you really need it) is to start from scratch and write your own file dialog. Hint: use Program for the file icons. I suggest you also cleanly encapsulate the specific look of the dialog from the dialog itself considering how widely the file dialogs on various platforms differ from one-another.
Previous Topic:Ability to create SWT Font / FontData objects from files or InputStreams
Next Topic:HELP with HTML in SWT?
Goto Forum:
  


Current Time: Tue Apr 23 16:02:55 GMT 2024

Powered by FUDForum. Page generated in 0.03477 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top