From: Piske, Harald <Harald.P<iske@bo...> - 2001-05-21 16:10:37
| Is there a MouseOver function for Buttons? I didn't see
| anything in the docs.
When you create a Button-class you'll get the MouseMove event. Other than a
real MouseOver, this fires every time the mouse moves. It would take some
fantasy to come up with MouseEnter and MouseLeave. One way would be to do
$Main->Belly->ChangeCursor ($something); and then have a timer function look
up Win32::GUI::GetCursor() to see if the mouse has left. Not exactly
Maybe you just don't care and have your status bar display the help line
until the user mouseovers another button - why not.
-name => '_Button',
-widget => 'Button',
-extends => 'Button',
-name => 'Belly',
-text => 'Clickme',
-class => '_Button',
local ($button, $xpos, ypos) = @_;
# print join (', ', @_), "\n";
Get latest updates about Open Source Projects, Conferences and News.