Right Click in a Specific area

Does anyone know how in the world to make the menuItems that appear on right-click be different depending on where the user’s mouse is over?

My idea is a mouse over if statement, but that seems cumbersome.