At 19:57 2004-01-15, Frazier, Joe Jr wrote:
Problem 2 is even more wierd. When I run the exact same code with "use Win32::GUI::Loft::Design;", the link does not show up (this is striped down version of a large app) at all! The problem seems to be that $linkClass does not get defined, so the link object does not get created properly. Anyway, I was hoping Johan would check into this with TGL and wondering if someone else can reproduce the issue with Win32::GUI.

I added a "or die" and found that the class indeed isn't created.

The -name seems to be the bad guy. Maybe it's the fact that it has the same name an existing Perl module, I don't know. But if you change it to:

my $linkClass = new Win32::GUI::Class(
    -name => "MY VERY OWN Win32::GUI::HyperLink",   # <-- !
    -extends => "STATIC",
    -cursor => $linkCursor,
) or die;

it doesn't die.


Both worked fine on 665 and whatever version of TGL I had before (probably about a year old). I am currently using

The reason is probably that TGL uses the Win32::GUI::HyperLink module. Without the TGL code, that piece of code isn't included and doesn't clash with your own Win32::GUI::HyperLink declaration.


/J

-------- ------ ---- --- -- --  --  -    -     -      -         -
Johan Lindström   Sourcerer @ Boss Casinos   [EMAIL PROTECTED]

Latest bookmark: "Professor Lives Life As a Cyborg"
<http://story.news.yahoo.com/news?tmpl=story&u=/ap/20040110/ap_on_hi_te/internet_profile_cyborg_1>
dmoz (1 of 30): /Computers/Software/Fonts/ 96


Reply via email to