473,385 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

OnMouseEnter not functioning the way I expected?

Hey all, having an interesting time understanding this custom button class I
am making. Here is a section of the code:

protected override void OnMouseEnter(EventArgs e)
{
base.OnMouseEnter(e);

if (pulsingStart == false)
{
pulsingStart = true;
}
}

protected override void OnMouseLeave(EventArgs e)
{
base.OnMouseLeave(e);
StopPulsing();
}
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);

if (pulsingStart == true)
{
pulsingStart = false;
StartPulsing();

Invalidate();
Update();
}
}

This works perfectly... but only after I click on the button!! It's like I
have to "activate" the control by clicking on it for this functionality to
work properly. I want this button to pulse when the mouse rolls over it,
regardless of whether or not the user has clicked it yet. There will be many
of these buttons on the stage, and they should all function the same; when
the user's mouse rolls over them, they pulse, and when they roll off, it
stops.

Thanks so much in advance.
Sep 24 '08 #1
0 919

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Pavils Jurjans | last post by:
Hallo, I have entered some event handling hell... I want to mimic the functionality of IE5.5 onmouseenter and onmouseleave events, using DOM-standard onmouseover and onmouseout events. The...
8
by: Bob | last post by:
This is a bug that affects all controls, not just the ones that it's screwing up in my app. I really need a workaround. Anyone? Please? Before I regret letting my MSDN subscription run out and pay...
1
by: georgewbaba | last post by:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> </HEAD> <script type="text/javascript"> function addpath(obj ,vari){ ...
1
by: mloraditch | last post by:
I've got some code that is supposed to calculate some values on a form and generate a total. It seems like it should work but it's definetly not, I am getting objected expected errors from the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.