Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: variable sub function?

by c-era (Curate)
on May 30, 2002 at 14:54 UTC ( #170402=note: print w/ replies, xml ) Need Help??


in reply to Re: variable sub function?
in thread variable sub function?

The problem here is that he is using Win32::GUI components. Win32::GUI has some strangaties. If you want to catch events, you need a sub for each event on each object. For example if you have an object named x and want to catch a change event, you will need to have a sub called x_Change. If you create another object called y, you will now need to create a sub called y_Change to catch change events for y. Unlike most GUI implementations, you can't register a sub for an event, the sub names are hard coded for each object.

This was one of the many reasons I stopped using Win32::GUI.


Comment on Re: Re: variable sub function?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://170402]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2014-04-24 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (565 votes), past polls