List Info

Thread: Icons and MimeTypes




Icons and MimeTypes
user name
2006-07-21 10:00:57
Hi,

how can I use the icons supplied by wxMimeTypeManager ?

I tried :

my $hFileType = 
Wx::MimeTypesManager->new()->GetFileTypeFromExtension(
$suffix);
my $hIconLocation = $hFileType->GetIcon();

my $hIcon =
Wx::Icon->new($hIconLocation->GetFileName());
or
my $hIcon = Wx::Icon->new($hIconLocation);


But the constructor for Wx::Icon seems to miss the
overloading function 
and the function GetFileName isnt implemented either. Is
there another 
way to use the icons from the MimeTypeManger ?

Greetings,

Andre


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys
-- and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
wxperl-users mailing list
wxperl-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxperl-use
rs
Icons and MimeTypes
user name
2006-07-21 10:00:57
Hi,

how can I use the icons supplied by wxMimeTypeManager ?

I tried :

my $hFileType = 
Wx::MimeTypesManager->new()->GetFileTypeFromExtension(
$suffix);
my $hIconLocation = $hFileType->GetIcon();

my $hIcon =
Wx::Icon->new($hIconLocation->GetFileName());
or
my $hIcon = Wx::Icon->new($hIconLocation);


But the constructor for Wx::Icon seems to miss the
overloading function 
and the function GetFileName isnt implemented either. Is
there another 
way to use the icons from the MimeTypeManger ?

Greetings,

Andre


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys
-- and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
wxperl-users mailing list
wxperl-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxperl-use
rs
Icons and MimeTypes
user name
2006-07-21 10:00:57
Hi,

how can I use the icons supplied by wxMimeTypeManager ?

I tried :

my $hFileType = 
Wx::MimeTypesManager->new()->GetFileTypeFromExtension(
$suffix);
my $hIconLocation = $hFileType->GetIcon();

my $hIcon =
Wx::Icon->new($hIconLocation->GetFileName());
or
my $hIcon = Wx::Icon->new($hIconLocation);


But the constructor for Wx::Icon seems to miss the
overloading function 
and the function GetFileName isnt implemented either. Is
there another 
way to use the icons from the MimeTypeManger ?

Greetings,

Andre


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys
-- and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
wxperl-users mailing list
wxperl-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxperl-use
rs
Icons and MimeTypes
user name
2006-07-23 10:06:06
On Fri, 21 Jul 2006 12:00:57 +0200
Andre Muench <Andre-Muencht-online.de> wrote:

  Hello,

> But the constructor for Wx::Icon seems to miss the
overloading function 
> and the function GetFileName isnt implemented either.
Is there another 
> way to use the icons from the MimeTypeManger ?

  No. Added the overloaded wxIcon constructor in CVS.

Regards
Mattia

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys
-- and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
wxperl-users mailing list
wxperl-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxperl-use
rs
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )