Example #1
0
void LineEdit::mouseDownEvent(Tempest::MouseEvent &e) {
  if(!editable){
    e.ignore();
    return;
    }

  sp = e.pos();
  ep = e.pos();

  updateSel();
  update();

#ifdef __ANDROID__
  if( editable )
    AndroidAPI::toggleSoftInput();
#endif
  }
Example #2
0
 void mouseDragEvent(Tempest::MouseEvent &e){
   if( (e.pos()-ppress).manhattanLength()>15 )
     closeRq = 0;
   }
Example #3
0
 void mouseDownEvent(Tempest::MouseEvent &e){
   closeRq = 1;
   ppress = e.pos();
   }