in reply to Win32::GUI problem

Its not working, Im trying

 Main_MouseUp{}

but the code is not being executed, although it doesnt raise an error.

Replies are listed 'Best First'.
Re^2: Win32::GUI problem
by Corion (Patriarch) on Sep 22, 2015 at 12:59 UTC

    Can you maybe show us a short (20 lines) self-contained program that demonstrates the problem?

Re^2: Win32::GUI problem
by Anonymous Monk on Sep 22, 2015 at 13:01 UTC

    No, I can't

      If you can't show us the code, consider working on reducing the code you have until it consists of little more than

      use Win32::GUI; # create main window # connect MouseUp handler to events of the window $main->Show();

      Most likely while reducing your program to this minimal example, you will find where the error lies.

      If you can't even do that, we cannot help you either.

        I am not getting anywhere so here is some code

        use Win::GUI; $main = Win32::GUI::Window->(-name=>'Main',-width=>600,-heigth= >600); $Screen = new Win32::GUI::DCC("DISPLAY"); $main->Show; Win32::GUI::Dialog(); sub Main_Terminate{-1;}; sub Main_MouseDown{ ($x,$y)=Win32::GUI::GetCursorPos; print "$x\n"; print "$y\n"; }

        Help would be appreciated, i have everything ready to.