Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PictureButton Rollover effect
#5
(10-22-2024, 10:55 AM)mdijkens Wrote: For screens with a lot of controls/buttons with click/hover/rollover effect I've used the alpha channel a lot to detect if the mouse was over a certain area.
You can make your controls alpha-color &HFE and downwards and then check with _Alpha32(Point(_mouseX,_mouseY)) for the alpha value...

this is a good trick! Using the information brought by memory screen for evaluating  the position of an object on the screen from its graphic rappresentation. (Using the screen as a map!)
it implies that alpha channel is exclusive for specific graphic areas.
Reply


Messages In This Thread
PictureButton Rollover effect - by TempodiBasic - 10-19-2024, 12:00 AM
RE: PictureButton Rollover effect - by Pete - 10-19-2024, 04:22 AM
RE: PictureButton Rollover effect - by mdijkens - 10-22-2024, 10:55 AM
RE: PictureButton Rollover effect - by TempodiBasic - 10-24-2024, 01:08 AM



Users browsing this thread: 1 Guest(s)