|
From: Sean H. <jal...@ho...> - 2001-01-23 01:20:24
|
>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 improve
>this. This example runs as-is.
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:
$linkCursor = new Win32::GUI::Cursor('harrow.cur');
$urlClass = new Win32::GUI::Class(
-name => "UrlLabelClass",
-extends => "STATIC",
-cursor => $linkCursor,
);
Then you add '-class => $urlClass' to the label. The cursor 'harrow.cur' is
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
|