Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to fetch system stadard icons (for cut, copy, paste ...)?
How to fetch system stadard icons (for cut, copy, paste ...)? [message #458681] |
Tue, 19 July 2005 08:20 |
Eclipse User |
|
|
|
Originally posted by: sarek.nurfuerspam.de
Hi,
we are searching for a way to fetch the system standard icons for
certain operations like cut, copy, paste and if possible for a
folder/directory etc.
So we want to get the icon like it would be displayed in windows
explorer, gnome's nautilus and so on.
I have not found any hint on how to achieve this. Can anyone of you help?
TIA
Christian
--
To reply to this posting directly use the following address and
remove the 'NO-SPAM' part: Riedel.Christian.NO-SPAM@gmx.net
|
|
| |
Re: How to fetch system stadard icons (for cut, copy, paste ...)? [message #458688 is a reply to message #458684] |
Tue, 19 July 2005 12:55 |
Benjamin Pasero Messages: 337 Registered: July 2009 |
Senior Member |
|
|
Robert Bacs wrote:
> See getSystemImage() method in Display class.
Afaik that does only cover system icons for Error, Information,
Question, Warning and Working as defined in SWT Constants.
Another way to retrieve some OS Icons is using
Program.getImageData()
Ben
>
> Regards,
> Boby
>
> "Christian Riedel" <sarek@nurfuerspam.de> wrote in message
> news:dbicn2$q3n$1@news.eclipse.org...
>
>>Hi,
>>
>>we are searching for a way to fetch the system standard icons for
>>certain operations like cut, copy, paste and if possible for a
>>folder/directory etc.
>>
>>So we want to get the icon like it would be displayed in windows
>>explorer, gnome's nautilus and so on.
>>
>>I have not found any hint on how to achieve this. Can anyone of you help?
>>
>>TIA
>>
>>Christian
>>
>>--
>>To reply to this posting directly use the following address and
>>remove the 'NO-SPAM' part: Riedel.Christian.NO-SPAM@gmx.net
>
>
>
|
|
|
Re: How to fetch system stadard icons (for cut, copy, paste ...)? [message #458693 is a reply to message #458688] |
Tue, 19 July 2005 15:07 |
Veronika Irvine Messages: 1272 Registered: July 2009 |
Senior Member |
|
|
See also:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=64138
"Benjamin Pasero" <bpasero@rssowl.org> wrote in message
news:dbit8o$gr4$1@news.eclipse.org...
> Robert Bacs wrote:
>> See getSystemImage() method in Display class.
>
> Afaik that does only cover system icons for Error, Information,
> Question, Warning and Working as defined in SWT Constants.
>
> Another way to retrieve some OS Icons is using
>
> Program.getImageData()
>
> Ben
>
>>
>> Regards,
>> Boby
>>
>> "Christian Riedel" <sarek@nurfuerspam.de> wrote in message
>> news:dbicn2$q3n$1@news.eclipse.org...
>>
>>>Hi,
>>>
>>>we are searching for a way to fetch the system standard icons for
>>>certain operations like cut, copy, paste and if possible for a
>>>folder/directory etc.
>>>
>>>So we want to get the icon like it would be displayed in windows
>>>explorer, gnome's nautilus and so on.
>>>
>>>I have not found any hint on how to achieve this. Can anyone of you help?
>>>
>>>TIA
>>>
>>>Christian
>>>
>>>--
>>>To reply to this posting directly use the following address and
>>>remove the 'NO-SPAM' part: Riedel.Christian.NO-SPAM@gmx.net
>>
>>
|
|
|
Re: How to fetch system stadard icons (for cut, copy, paste ...)? [message #458694 is a reply to message #458688] |
Tue, 19 July 2005 15:09 |
Eclipse User |
|
|
|
Originally posted by: Christian.Riedel.informatik.uni-oldenburg.de
Hi, and thanks for yours answers ...
On 19.07.2005 14:55, Benjamin Pasero wrote:
> Robert Bacs wrote:
>
>> See getSystemImage() method in Display class.
>
>
> Afaik that does only cover system icons for Error, Information,
> Question, Warning and Working as defined in SWT Constants.
That was what I learned as well ... it is only for standard dialog icons :-(
> Another way to retrieve some OS Icons is using
>
> Program.getImageData()
>
I don't think, that will do it. Afaik Program.getImageData() only gets
icons for filetypes that they are associated with (like an X-icon for
*.xls files, the winamp symbol for *.mp3 and so on)
What I was actually searching for, is a way to get the standard icons
for system operations like cut, copy, paste, ... (The icons that are
displayed in the toolbar in windows explorer for example. But - as they
are standard icons - they are also shown in the toolbar in MS-Word,
Excel etc.)
I think these icons are stored in system32.dll under windows, but of
course simply extracting them from there is no option, since I want to
have the icons, that are standard for a certain platform. Under Linux
for example, I want gnome's icons to be diplayed.
Hope you understand what I mean ...
Any further hints?
Christian
|
|
| |
Goto Forum:
Current Time: Fri Apr 26 16:57:18 GMT 2024
Powered by FUDForum. Page generated in 0.03520 seconds
|