yao kouakou wrote:
> Hello everybody,
>
> I am trying to change the position of a popup menu in my main windows.
> I see that there is a function
> popup
> <http://gtkmm.sourceforge.net/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Menu.html#4c66c33c8fdfe3e837b1fcf20f302cf7>
>
> (const SlotPositionCalc
> <http://gtkmm.sourceforge.net/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Menu.html#c8978c6bcd462454c19e70a7f8805ea6>&
>
> 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?
>
> Thanks
> Yao
>
> ------------------------------------------------------------------------
> 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
> <http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com>.
> ------------------------------------------------------------------------
>
> _______________________________________________
> gtkmm-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
Hi,
pMenu->popup(sigc::mem_fun(m_Button,
&Button::on_popup_menu_position),1,gtk_get_current_event_time());
//callback slot
void Button::on_popup_menu_position(int& x, int& y, bool& push_in){
//figure out there you want to place the popup
}
Regard's
--
Alexander Gehlert - Intern
reply to : [EMAIL PROTECTED]
Raritan Zwickau
Software Development
Scheringerstrasse 1
08056 Zwickau
Germany
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list