How to get the pixmap's position?



Hi all:
   I had designed a GtkPixmap widget, and set eventbox
for the pixmap widget, now I captured the button ress
event when user clicked the pixmap to load another
pixmap. As we know, the pixmap widget is rectangle
shape, but the pixmap that we loaded may be polygon
shape, so how to make sure the mouse pointer is only
on the top of pixmap not the else part of pixmap
widget?

Thanks~~~
anukeey

-----------------------------------------------------------------
每天都 Yahoo!奇摩 
寬頻上網- 盡情享受遊戲、音樂與電影的聲光� 界
adsl.yahoo.com.tw



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]