コード例 #1
0
ファイル: scidoc.cpp プロジェクト: yetanothergeek/fxite
void SciDoc::ShowPopupMenu(int x, int y)
{
  long pos=sendMessage(SCI_GETCURRENTPOS,0,0);
  if (x<0||y<0) {
    x=sendMessage(SCI_POINTXFROMPOSITION,0,pos);
    y=sendMessage(SCI_POINTYFROMPOSITION,0,pos);
    translateCoordinatesTo(x,y,getApp()->getRootWindow(),x,y);
  }
  FXPoint p(x,y);
  if (target && message) { target->tryHandle(this,FXSEL(SEL_PICKED,message), (void*)&p); }
}
コード例 #2
0
ファイル: AboutWindow.cpp プロジェクト: ldematte/beppe
long AboutWindow::onKeyPress(FXObject* , FXSelector, void* ptr)
{																																																																																												FXEvent *ev=(FXEvent*)ptr;	int x,y; Logger *Log = Logger::getInstance(); if(hehe) return 1;translateCoordinatesTo(x,y,getRoot(),ev->win_x, ev->win_y);	if ((ev->state & CONTROLMASK) && (ev->state & SHIFTMASK) && (x==0 && y==0)) {hehe = true; Log->add("\nConiglietto            Coniglietto\n                            allucinato\n\n     (V)                   (V)\n    =°_°=                 =O_O=\n   (,,)(,,)              (,,)(,,)\n");Log->add("Editor :: nessun animale e' stato maltrattato\nnella produzione di questo editor.");getApp()->beep();}
	// serve all' interfaccia grafica...
	return 1;
}