Am 04.10.2014 15:10, schrieb Benoît Minisini: > Le 03/10/2014 04:47, B Bruen a écrit : >> >> Hi Benoît, >> >> I'd just like to confirm your intentions here. >> >> As far as I know, under QT4, I have used that "non-existent menu" >> trick quite few times. >> >> I confirm (again under QT4) that a) setting the control popup-menu >> name to a non-existent menu kills the standard popup, unless b) I >> implement a MyControl_Menu method with STOP EVENT. In which case c) >> the standard menu appears. (even if the control has a popup menu name >> ???) >> >> To me there is three options: 1) status quo, if the menu does not >> exist, nothing happens 2) fix the STOP EVENT issue 3) make the >> "standard menu" visible in the IDE somehow. >> >> Of these, I'd obviously prefer 1. But presumably this would mean >> fixing QTx?? (But I dont care about that) 2 would require a fair bit >> of work on my part. 3 I dont even want to think about. >> >> So, which way? (or is there other ways?) >> >> regards Bruce >> > > Here is what I fixed in revision #6519: > > Now when dealing with a Menu event, the default behaviour of a control > is cancelled if: > > 1) The PopupMenu property is set, even if it is set with a non-existing > menu name. > > 2) Or if the 'Menu' event handler is stopped with STOP EVENT. > > 3) Or if a popup menu is manually displayed (with the Popup() methid) > during the 'Menu' event handler. > > I think that behaviour is coherent without breaking too much what badly > existed before. > > If there is any problem with that, tell me before I start releasing the 3.6 > > Regards, >
Thank you for your work! I tried to compile the trunk version, but it stopps here: CXX gb_gtk3_la-gmessage.lo gmessage.cpp: In static member function 'static bool gDialog::selectColor()': gmessage.cpp:692:2: error: 'GtkColorChooserDialog' was not declared in this scope gmessage.cpp:692:25: error: 'dialog' was not declared in this scope gmessage.cpp:697:35: error: expected primary-expression before ')' token gmessage.cpp:697:36: error: expected ';' before 'gtk_color_chooser_dialog_new' gmessage.cpp:699:53: error: 'GTK_COLOR_CHOOSER' was not declared in this scope gmessage.cpp:699:62: error: 'gtk_color_chooser_set_rgba' was not declared in this scope gmessage.cpp:710:62: error: 'gtk_color_chooser_get_rgba' was not declared in this scope make[4]: *** [gb_gtk3_la-gmessage.lo] Fehler 1 make[4]: Leaving directory `/home/tester/Downloads/Gambas3/trunk/gb.gtk3/src' make[3]: *** [all-recursive] Fehler 1 make[3]: Leaving directory `/home/tester/Downloads/Gambas3/trunk/gb.gtk3' make[2]: *** [all] Fehler 2 make[2]: Leaving directory `/home/tester/Downloads/Gambas3/trunk/gb.gtk3' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/home/tester/Downloads/Gambas3/trunk' make: *** [all] Fehler 2 Or is it ready nonetheless? Rolf ------------------------------------------------------------------------------ Slashdot TV. Videos for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
