I'm working on a custom menu system. The aim is no having something rather like the track selection system in WMP 12.
Track Name ##:##
I want to be able to add a background/highlight on mouse over and on click/select, I want both fields to selected as though they are a single entity. I also want the menu to be confined to a small area and scroll on overflow.
I've experimented with a data grid, however I was having issues with transparency and I couldn't get rid of the cell lines. These were deal breakers to me so on to my current solution.
I'm now working with a set of generated labels in a panel to provide the scrolling. These are doing a lovely job. I've got scrolling and no grid lines. I've caught mouse over and click etc to prove the highlighting I wanted. The drawing the highlighting
has caused me a few issues though. I would like to just draw the highlighting via the paint event for the panel. Then I could have everything nice and central and fairly straight forward. However if I add the paint code there I get lag when moving the mouse
around to highlight. Below is the rough test code.
int top = 0;
private void Chapter_MouseEnter(object _sender, EventArgs _eventArgs)
if (_sender is Label)
Label lblSender = (Label)_sender;
top = lblSender.Top;
View Complete Post