Ie.
void
Graph::attach_signals()
{
widget_instance->signal_button_press_event().connect( sigc::mem_fun( *this, &Graph::show_popup ) ) ;
}
bool
Graph::show_popup( GdkEventButton* event )
{
if( event->button == 3 )
{
_menu->popup( event->button, event->time ) ;
}
return true ;
}
On 10/4/06, yao kouakou <[EMAIL PROTECTED]> wrote:
Hello everybody,I am trying to change the position of a popup menu in my main windows. I see that there is a functionpopup (const SlotPositionCalc & position_calc_slot, guint button, guint32 activate_time)but i don't know how to use this first argument. Could somebody give me a simple example of using this fucntion?ThanksYao
Découvrez un nouveau moyen de poser toutes vos questions quel que soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. Cliquez ici.
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list
_______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
