在OnMouseDown事件里怎样判断按下的是鼠标左键还是右键

解决方案 »

  1.   

    有一个好象叫shift 的参数,里面是一个结构,判断鼠标右键是否 in shift
      

  2.   

    if button=mbLeft then
        showmessage('1');
      if button=mbright then
        showmessage('2');
      

  3.   

    楼上的button或者shift
    shift用法:
    if ssleft in shift then   
    if ssright in shift then
      

  4.   

    if button in (mbright) then
      

  5.   

    netwolfds(晓竹) 说的不是很好的吗。
      

  6.   

    if button=mbLeft then
        showmessage('1');
      if button=mbright then
        showmessage('2');
      

  7.   

    一样的
      case button of
       mbleft:showmessage('left');
       mbright:showmessage('right');
      end;