|
Á¦ ¸ñ |
ÆË¾÷¸Þ´º ¶ç¿ì±â |
|
ÀÛ¼ºÀÚ |
¹èÀå¿ì |
ÀÛ¼ºÀÏ |
2001-12-18 |
Á¶È¸¼ö |
771 ȸ |
|
÷ºÎÆÄÀÏ |
÷ºÎµÈ ÆÄÀϾøÀ½.
|
|
¾È³çÇϼ¼¿ä. ¼ö°íÇϽʴϴÙ.
ManagerRectangle ¾È¿¡¼ ÆË¾÷¸Þ´º ¶ç¿ì´Â °Í¿¡
´ëÇØ¼ Áú¹®ÇϰíÀÚ ÇÕ´Ï´Ù.
´ÙÀ½°ú °°ÀÌ ÆË¾÷¸Þ´º¸¦ ¶ç¿ì´Âµ¥ ¸¶¿ì½º ¿À¸¥ÂÊ ¹öưÀ» ÀÌ¿ëÇß±¸¿ä
±×·±µ¥ ¸¶¿ì½º ¿À¸¥ÂÊ ¹öưÀ» ¶¼¸é ±×³É »ç¶óÁö´õ±º¿ä.
À©µµ¿ìÀÇ ¹ÙÅÁȸéó·³ ¿À¸¥ÂÊ ¸¶¿ì½º ¹öưÀ» Ŭ¸¯ÇÏ¸é ÆË¾÷¸Þ´º°¡
³ª¿Ô´Ù°¡ ´Ù¸¥ °÷À» ÂïÀ¸¸é »ç¶óÁö°Ô ÇÏ°í ½ÍÀºµ¥ ¾îÄÉ ÇÏ¸é µÉ±î¿ä?
void processPopup(IlvGraphic* obj, IlvPoint& gP) { //make popup menu const char* subMenuString[] = { \"FIRST\", \"SECOND\" }; IlvPopupMenu* popup = new IlvPopupMenu(app->getDisplay(), 2, subMenuString);
popup->getItem(0)->setCallback(itemCB0); popup->getItem(1)->setCallback(itemCB1);
popup->show(gP); }
void mySelectInteractor::handleEvent(IlvEvent& event) { IlvPoint p(event.x(), event.y()); IlvPoint gP(event.gx(), event.gy()); switch(event.type()) {
case IlvButtonDown: { if(event.button() == IlvRightButton) { processPopup(obj, gP); }
} --------------------------------- (ÁÖ)°¡¿ì¸®Á¤º¸Åë½Å »ç¿ëÁ¦Ç° : Views 3.1 (on Unix) ---------------------------------
|
|
|
|