mouse_panel

Pointer of the panel the mouse cursor is over (if any).

Type:

PANEL*, read-only

Example (lite-C):

function click_panels_away()
{	
  mouse_mode = 4;
  while(1)
  {
    if (mouse_left && mouse_panel) // left button pressed over panel?
      reset(mouse_panel,SHOW); // remove clicked panel
    wait(1);
  }  
}	 

See also:

mouse_mode, PANEL, mouse_ent

► latest version online