|
From: Robert S. <rs...@em...> - 2001-01-23 17:02:07
|
i think there is actually a mailto: association in the registry
yep:
HKEY_CLASSES_ROOT\mailto\shell\open\command
-rob
"Thomas, Timothy B" wrote:
>=20
> Sean - Thanks! That was my next step, but didn't yet have the time to
> research how to go about doing it. Didn't know it was so easy to implem=
ent a
> custom cursor like that. Your code works perfectly.
>=20
> Deviating from Win32-GUI somewhat:
> Next step is to figure out how to mimik a "mailto:" for the e-m=
ail
> link. Should be easy, once we figure out how to determine what the defa=
ult
> e-mail program is. Not sure what assication is set for that. .html for =
the
> browser is easy, but what about e-mail's? maybe .msg? Here's the ftype =
info
> for .msg on my NT system, using outlook for e-mail.
>=20
> C:\>assoc .msg
> ..msg=3Dmsgfile
>=20
> C:\>ftype msgfile
> msgfile=3D"C:\Program Files\Microsoft Office\Office\OUTLOOK.EXE" /f "%1=
"
>=20
> Someone else see what it is on theirs, inparticular if you use Netscape
> Messenger.
> I'm not sure that's as much of a standard as .html.
>=20
> Thanks again Sean!
> Tim
>=20
> -----------------------------------------------------------------------=
-----
> ---------------------
> Tim Thomas
> Unix Systems Administrator
> Lockheed Martin EIS =B7 Denver Data Center
> 303-430-2281
> mailto:tim...@lm...
> -----------------------------------------------------------------------=
-----
> ---------------------
>=20
> -----Original Message-----
> From: Sean Healy [mailto:jal...@ho...]
> Sent: Monday, January 22, 2001 6:21 PM
> To: per...@li...
> Subject: Re: [perl-win32-gui-users] Final Code: Click on URL in About
> Window
>=20
> >Here's the code that you all helped me to figure out. You can use this=
to
> >implement a clickable URL in your About Window, or whereever you like.=
The
> >code may not be very clean, let me know if you have suggestions to imp=
rove
> >this. This example runs as-is.
>=20
> This is great! I've been playing with it a bit, and I added some stuff=
so
> you can change the cursor when it's over the link. You put this code
> somewhere before the label with the URL:
>=20
> $linkCursor =3D new Win32::GUI::Cursor('harrow.cur');
>=20
> $urlClass =3D new Win32::GUI::Class(
> -name =3D> "UrlLabelClass",
> -extends =3D> "STATIC",
> -cursor =3D> $linkCursor,
> );
>=20
> Then you add '-class =3D> $urlClass' to the label. The cursor 'harrow.=
cur' is
>=20
> included with the Win32-GUI samples. (I think) STATIC is what Windows
> actually calls labels.
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>=20
> _______________________________________________
> Perl-Win32-GUI-Users mailing list
> Per...@li...
> http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
>=20
> _______________________________________________
> Perl-Win32-GUI-Users mailing list
> Per...@li...
> http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
|