On Tue, Feb 14, 2012 at 10:09 PM, Milind Gupta <milind.gu...@gmail.com> wrote:
> Hi,
>        I wonder if this is a known issue or something intentional. I have
> made a module that creates a frame with some buttons and associates an event
> handling function for the button click, the function resides in the module
> itself. The frame also is visible in the module. Now when the event handler
> is called the event handler function is executed in the global environment
> rather than the module environment hence it is not able to see the variables
> and functions of the module.
>        Does this mean event handler functions cannot be in a module?

It should be able to work and the environment is saved when the
event:Connect() is handled. Upvalues work for sure.

Do you have some simple example code of this for me to try.

Regards,
    John

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to