Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PictureButton Rollover effect
#4
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...
45y and 2M lines of MBASIC>BASICA>QBASIC>QBX>QB64 experience
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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Multiscreen effect TempodiBasic 7 1,804 07-20-2024, 06:03 PM
Last Post: TempodiBasic
  ImagePop - puts image on screen with a little popup effect Dav 2 1,020 05-29-2024, 03:45 PM
Last Post: Dav
  An interesting side effect of interaction between QB64PE and Windows TDarcos 1 736 04-28-2024, 11:07 AM
Last Post: Pete
  Small exploding image and fade-out effect Dav 18 3,529 09-08-2023, 11:16 PM
Last Post: dbox

Forum Jump:


Users browsing this thread: 1 Guest(s)