Re: window-popup = menu



Hi again,

You can connect to the "map" event. This happens after the window has been
realized and just before the window appears on the screen, so the size has
been calculated.

https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-map

In ::map, change window x/y to move it away from the screen edges. Or
that's what I'd try anyway!

John

On 13 March 2013 09:11, Mariano Gaudix <marianocordobario3 gmail com> wrote:



Hello .



Is not  a  menu-popup .
I  use  a window-popup   .
   GTK_WINDOW_POPUP is used to implement widgets such as GtkMenu or
tooltips  .

https://developer.gnome.org/gtk3/stable/GtkWindow.html

I  am  creating   a mockup    with  window-popup  that    contains
 scrollbar   , and other  widgets

this is my mockup


http://www.youtube.com/watch?v=9ckRn_sx8CE






2013/3/13 <jcupitt gmail com>

Hi Mariano,

Just call gtk_menu_popup() and it'll position the menu away from the
screen edges for you.

https://developer.gnome.org/gtk3/stable/GtkMenu.html#gtk-menu-popup

John


On 13 March 2013 04:05, Mariano Gaudix <marianocordobario3 gmail com>wrote:

Hello  how i can  determine the size of a window-popup hidden ?  ¿  Or
 how
i can make  window-popup   behaves as a menu.

I have a problem.
if the botton to activate the window is in  the low position of the
 screen
 , the window-popup  ,   is not shown above of the botton  ..

 see the  code and  video of the widget


http://depositfiles.org/files/4e2ip0pfw
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list






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