f



RE: Re[2]: [Mac, 2.8.2] Handling menu open event

Yes, but the code that wants to hook to the menu, doesn't have direct
access to the frame.
So the question is this: Should I change my code so I have access to the
frame, or can I just access one of the menus in the menubar and get the
frame from it?


> -----Original Message-----
> From: Vadim Zeitlin [mailto:vadim@wxwidgets.org]
> Sent: Tuesday, July 17, 2007 2:47 PM
> To: wx-users@lists.wxwidgets.org
> Subject: Re[2]: [Mac, 2.8.2] Handling menu open event
>=20
> On Tue, 17 Jul 2007 15:04:21 +0200 Yaron Tadmor <YaronT@HumanEyes.com>
> wrote:
>=20
> YT> So I would have to know what frame the menu belongs to, right?
>=20
>  Well, yes, but you already must know it to add a menu to it, don't
you?
> VZ
>=20
> --
> TT-Solutions: wxWidgets consultancy and technical support
>                http://www.tt-solutions.com/
>=20
>=20
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help@lists.wxwidgets.org
>=20


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wx-users-help@lists.wxwidgets.org

0
YaronT
7/17/2007 1:52:47 PM
comp.soft-sys.wxwindows 21076 articles. 0 followers. Post Follow

1 Replies
887 Views

Similar Articles

[PageSpeed] 52

On Tue, 17 Jul 2007 15:52:47 +0200 Yaron Tadmor <YaronT@HumanEyes.com> wrote:

YT> Yes, but the code that wants to hook to the menu, doesn't have direct
YT> access to the frame.

 Sorry, I don't understand. If you have a wxMenu, you have wxMenuBar (via
its GetMenuBar() method). If you have wxMenuBar, you have its wxFrame (via
its GetFrame() method).

YT> So the question is this: Should I change my code so I have access to the
YT> frame, or can I just access one of the menus in the menubar and get the
YT> frame from it?

 Of course you can, why not?
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wx-users-help@lists.wxwidgets.org

0
vadim
7/17/2007 5:40:09 PM
Reply:

Similar Artilces:

RE: [Mac, 2.8.2] Handling menu open event
So I would have to know what frame the menu belongs to, right? > -----Original Message----- > From: Vadim Zeitlin [mailto:vadim@wxwidgets.org] > Sent: Tuesday, July 17, 2007 1:25 PM > To: wx-users@lists.wxwidgets.org > Subject: Re: [Mac, 2.8.2] Handling menu open event >=20 > On Tue, 17 Jul 2007 13:57:40 +0200 Yaron Tadmor <YaronT@HumanEyes.com> > wrote: >=20 > YT> If I would still like to install a handler over a menu which is not > the > YT> frame, is there a way I can do this? >=20 > As usual, you can use PushEventHandl...

RE: Re[2]: [Mac, 2.8.2]
I agree that this is a good idea. I don't think we would need mac specific code, as I think the interface and implementation can be done on the generic interface of the wx controls. For the time being, all I was thinking of doing is a simple "if" where needed in the wxTextValidator to know whether it's dealing with a combo-box or text edit control (pretty much like the generic validator does). It seems to me very simple to do so, and that is definitely something I can do. As for creating a wxTextEntryIFace, I'm not 100% sure I understand your design concept. ...

[Mac, 2.8.2] Handling menu open event
------_=_NextPart_001_01C7C869.85E66D4A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, The docs say that menu events can only be processed by a menu bar's frame. If I would still like to install a handler over a menu which is not the frame, is there a way I can do this? Basically at some point when a user edits a text edit control I'd like to add another handler for the current menu bar, catch the open event and react to it. I want to remove this handler as the first event is handled. Can this be done? If so,...

RE: Re[2]: [Mac, 2.8.2] possible bug in drag hilight code
Will do. > -----Original Message----- > From: Vadim Zeitlin [mailto:vadim@wxwidgets.org] > Sent: Thursday, July 19, 2007 3:11 PM > To: wx-users@lists.wxwidgets.org > Subject: Re[2]: [Mac, 2.8.2] possible bug in drag hilight code >=20 > On Thu, 19 Jul 2007 14:07:58 +0200 Yaron Tadmor <YaronT@HumanEyes.com> > wrote: >=20 > YT> Hello? Anyone has any ideas, or should I just go on and fix it. >=20 > I don't have any ideas and I believe that Stefan has some troubles with > reading/posting to the list (maybe you could try writing to...

RE: Re[2]: [Mac, wx 2.8.1] file dialogs and OS-X packages #2
Great, thanks. I'll wait for the release, and meantime patch my own WX locally. If I later find that some more complicated mixture of the flags is relevant, I'll post again. Cheers. > -----Original Message----- > From: Stefan Csomor [mailto:csomor@advancedconcepts.ch] > Sent: Wednesday, June 27, 2007 5:24 PM > To: wx-users@lists.wxwidgets.org > Subject: RE: Re[2]: [Mac, wx 2.8.1] file dialogs and OS-X packages >=20 > Hi Yaron >=20 > > > kNavSupportPackages IMHO should always be on, because it allows the > > > selection of a package as if it were a file, behavior does not > > change > > when > > > it is set in the 'save' case, unless the AllowOpenPackages is used, > > so > > > I'll turn that on for all cases > > > > That's not 100% correct. > > On save dialog the kNavSupportPackages has a difference. If you > > select a > > package and hit the "save" button and this flag is off, you get the > > "you > > can't select a folder" message. If it's on you get the (expected) > > "the > > file already exists Replace/Cancel" message. >=20 > very strange, I didn't get such a message and I was saving on an existing > Pages document, but that one was having its extension hidden, now when I > try with a Pages document that has its extension s...

RE: [Mac, 2.8.2]
So what do you all think? Would it be OK to add combo-box awareness to the text validator? >=20 > The generic validator just does the transfer to/from windows, but does > NOT do validation. >=20 > I was specifically referring to combo-box as they are very similar to > text edit boxes. Essentially they are text edit boxes and a choice > control. So it seems natural they would share validators with the text > edit control. >=20 > The text edit validator has some nice validation (not transfer) options > which allow to enforce text of certain kind. I...

RE: Re[2]: The "Edit" menu on Mac #2
Hi=20 > At 17:11 09/12/2005, you wrote: > >yes, but a frame modal dialog cannot be dealt with in the=20 > same way, so > >ShowWindowModal() would effectively be like Show() because=20 > otherwise we=20 > >would end up in reentrancy problems of event loops. >=20 > Why is that a problem, compared with, say, having several=20 > modal dialogs active at once? >=20 > > The only side effect > >being would be the inactivation of the frame window and the=20 > inability=20 > >to bring it in front of the dialog. Now the API desi...

RE: Re[4]: [Mac, 2.8.2]
>=20 > YT> For the time being, all I was thinking of doing is a simple "if" where > YT> needed in the wxTextValidator to know whether it's dealing with a > YT> combo-box or text edit control (pretty much like the generic validator > YT> does). >=20 > I don't like the explicit checks using wxDynamicCast for all the usual > reasons and even though we do have quite a few of them in the code > already, > I'd like to avoid adding another one. I agree. It's not the best design. However, I thought of doing a small ...

RE: Re[3]: wxGTK 2.4.2 / GTK+ 2.6.2 Drag and Drop locks up #2
Kevin - I'd love to do just that (I've already built 2.5.3 and am perusing the CVS logs for deltas as I compose this), but my boss(es) are big on only deploying 3rd-party libraries which have been blessed as "stable" to our customers (yes, I'm on a commercial endeavor), and it's hard for me to blame them from a risk standpoint. I look forward to 2.6 (or whatever is to be the next stable release). To that point - can someone point me to the policies/criteria/processes/thresholds/heuristics for deeming a particular release as a "snapshot" or "st...

Re: Samba 2.2-8 build 20050817 ported to Itanium OpenVMS 8.2-1 #2
From: koehler@eisner.nospam.encompasserve.org (Bob Koehler > #ifdef __VM > #ifndef __VA > > non-VAXen stuf > > #els > > VAXen stuf > #endi > #endi > > Yes, you can indent preprocessor lines if you're using ANSI C More compilers (preprocessors) are happier if you don't indent th "#", as in #ifdef __VM # ifndef __VA non-VAXen stuf # els VAXen stuf # endi #endi But I can't say just how far back you need to go to get into troubl your way. Perhaps VAX C. (Do I spend too much time working ...

RE: [Mac, 2.8.2] possible bug in drag hilight code #2
I already fixed this. I'll submit a patch soon. > -----Original Message----- > From: Stefan Csomor [mailto:csomor@advancedconcepts.ch] > Sent: Thursday, July 19, 2007 5:18 PM > To: wx-users@lists.wxwidgets.org > Subject: Re: [Mac, 2.8.2] possible bug in drag hilight code >=20 > Yaron Tadmor wrote: > > Will do. > > > Hi >=20 > I hope I have now a working setup now again. But as I don't have the > time right now to dive into it, I'd appreciate a bug report on SF and if > you have a patch than this would be great :-) &g...

RE: [ace-bugs] Re: ACE_LACKS_CLEARERR for Tornado 2.2.x and g++ #2 #2
Hi, Thanks for the info. I will have a look in detail tomorrow. I would propose to use ACE_VXWORKS as the define to check on the right version. 0x540 is then Tornado 2.0 with gcc 2.7.2, 0x542 is Tornado 2.1 (or whatever windriver called it) but is has gcc 2.9.6 and 0x550 is VxWorks 5.5, I only don't know what VxWorks AE is then? Johnny > -----Original Message----- > From: Thomas Lockhart [mailto:Thomas.Lockhart@jpl.nasa.gov] > Sent: Thursday, December 04, 2003 7:44 PM > To: Johnny Willemsen > Cc: andzik@rtlogic.com; ace-bugs@cs.wustl.edu > Subject: Re: [ace-bugs] Re: ...

Re: Re[2]: (wx-users) Re: problems with wxMSW 2.8.0
VZ wrote on 25-JAN-2007 12:42:40.23 >JJ> In the application the bitmap (and also lines, text etc..) are generated by a >JJ> a procedure that is called from another language than c++ (i.e. C or F90) > > Why should it matter? > >JJ> By doing so the EVT_PAINT is not activated and the class of "canvas" is not >JJ> known. > > I don't understand this, sorry. The problem is that some c++ objects are not properly defined. One would like to call routines bbbb::ccccc. But that is not always allowed. >>JJ> So you need at least ...

RE: Re[2]: [Mac, wx 2.8.1] file dialogs and OS-X packages
>=20 > you mean a method to indicate 'treat packages as folders' as a instance > method on a dialog or as a static method. The problem with instance > methods would be that the one-liners like wxFileSelector (although if you > pass all params this won't fit onto one line;-) wouldn't be supported, > therefore I'd slightly lean towards a wxFD_MAC_ALLOW_OPEN_PACKAGES or > something I think such a flag is blessed. >=20 > kNavSupportPackages IMHO should always be on, because it allows the > selection of a package as if it were a fi...

Re: BIND 8.2.7 master ixfr to 9.2.2 slave #2
Mayer () gis ! Net writes: > Don't use IXFR on BIND 8. It never quite worked right and it got > rewritten > 3 times. It works correctly in BIND 9. > Danny That response is similar to Patient: Doctor, it hurts when I do this. Doctor: Don't do it. I'll admit that their might be bugs in BIND 8's implementation of IXFR, but they shouldn't cause BIND 9 to blow away it's zone information. This smells like a small bug in BIND 8 tickling a large bug in BIND 9. I've diff'd the bin/named/ns_ixfr.c and bin/named/ns_xfr.c code between 8.2.7 and 8.4.6 and the only change of significance I saw was the code sequence "db_freedata(rp->r_dp); rp->r_dp =3D NULL;" in 8.2.7 was replaced in 8.4.6 with "db_detach(&rp->r_dp);". "db_detach()" maintains a reference count to the data and calls "db_freedata()" when the count reaches zero. It also sets the pointer to NULL, so it's equivalent to the old "db_freedata(rp->rdp); rp->rdp =3D NULL;" sequence. The other changes are minor portability changes and support for IPv6, With the exception of the bug fix for bug #1490. That bug fix (which I wrote) only affects truncating the IXFR log when it exceeds maximum size, not responding to IXFR requests. It looks to me like the bug in 8.2.7 (if there is one) is still present in 8.4.6, and would therefore affect bind 9.2.2 slaves. My question is if th...

RE: Re[3]: wxGTK 2.4.2 / GTK+ 2.6.2 Drag and Drop locks up
Robert, I will when I get a chance; I'm focussed on fixing in 2.4.2 since that's what's "stable." See my related message re: gdk_pointer_ungrab for my current workaround. Thanks for your interest, Chris -----Original Message----- From: Robert Roebling [mailto:robert@roebling.de]=20 Sent: Friday, February 25, 2005 11:29 AM To: wx-users@lists.wxwidgets.org Subject: Re[3]: wxGTK 2.4.2 / GTK+ 2.6.2 Drag and Drop locks up Smouse, Chris: > Okay, everyone - I have written a minimal (~150 lines) test using=20 > wxGrid and DnD, and am able to r...

RE: [Mac, 2.8.1] Mac dragging cursor and icon #2
------_=_NextPart_001_01C7BD87.46825DBE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Great, thanx. I'll fix and send a patch =20 ________________________________ From: Stefan Csomor [mailto:csomor@advancedconcepts.ch]=20 Sent: Tuesday, July 03, 2007 4:23 PM To: wx-users@lists.wxwidgets.org Subject: RE: [Mac, 2.8.1] Mac dragging cursor and icon =20 Hi =20 ad 1) =20 yes, I'd add a bitmap member on a the drag source base class, with accessors, so any implementation is free to pick it =20 a...

RE: [Mac, 2.8.1] Mac dragging cursor and icon #2
------_=_NextPart_001_01C7BD7E.64CE613A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable OK, I'll do it. I just need a few pointers to make sure I do it right: =20 1) can you explain what do you mean by generic API? Do I need to implement it (as doing nothing) for all other platforms, or is there another way. I'm not that familiar with these things in WX. 2) Do you have some code that turns a wxBitmap to a CGImage or something like that? =20 =20 =20 ________________________________ From:...

Re: 6.x and 8.2? Was: Re: Are there any problems installing 9.1 with 8.2
Steve Raimi <steven.raimi@GM.COM> replied: > We're using SAS 8.2 on PCs under Windows, and it very definitely breaks an > app written and running on older SAS (I'm not sure which flavor of V6 it > is). Do you have a combo of 6 and 8 coexisting? There's a big difference between inability to get two separate versions to co-exist on the same machine, and making sure that the new version cannot break any app ever written in the earlier version. We (at one time) had 6.12 and 8.0 running on a few machines, but we're moving everyone to 9 now, and we haven't had 6...

Re[8]: #2 #2
This is a multi-part message in MIME format. ------=_NextPart_000_7A89_B53D40CE.1F627A89 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Are you sure you don't need it? Increase you sexual power! Boost your ego! Go on, give it a try. You'll sure enjoy it! Cialis Softtabs: http://unglazed.net/now/ Discreet, unmarked packaging. >>> NB: No prescription required ------=_NextPart_000_7A89_B53D40CE.1F627A89 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTM...

RE: BIND 8.2.7 master ixfr to 9.2.2 slave #8
Due to circumstances beyond my control I cannot use BIND 9 until it supports the "fixed" rrset-order. Until that time BIND 9 is useless to me. In fact, it's worse than useless, because another administrative group insists on running BIND 9 and it doesn't play well with BIND 8. I set up my master BIND 8 server with two network interfaces. The slaves are configured to use IXFR on the primary interface, and AXFR on the secondary interface. That way if the IXFR fails AXFR is used immediately and the zone is transferred. I implemented this several years ago and hadn't had a problem until BIND 9 was brought into the mix. BIND 9.2.5 seems to work with BIND 8, but earlier versions don't. It's probably because of this Bug-fix: 1722. [bug] Don't commit the journal on malformed ixfr streams. [RT #12519] ISC's download page for 9.2.5 (released March 2005) shows about 30 upcoming fixes. The download page for 8.4.6 (released January 2005) shows about 20 upcoming fixes. That doesn't look like dead code to me. -----Original Message----- From: bind-users-bounce@isc.org [mailto:bind-users-bounce@isc.org] On = Behalf Of Jim Reid Sent: Friday, May 06, 2005 3:19 AM To: Mike Mitchell Cc: Brad Knowles; bind-users@isc.org Subject: Re: BIND 8.2.7 master ixfr to 9.2.2 slave=20 >>>>> "Mike" =3D=3D Mike Mitchell <Mike.Mitchell@sas.com> writes: Mike...

RE: mouse clicks and focus on Mac [2.8.1, Mac xcode] #2
>=20 > I remember that wxMSW currently allows the user to define that > behaviour. I think it was that if there is no LeftDown handler > then the window will get the focus automatically. If there is > a LeftDown handler, then the window has to call SetFocus() > itself (or not do it). I'll look into if this is possible under > GTK+ but I somehow doubt that. >=20 > Robert >=20 > Actually if this is the defined behavior of MSW, the same behavior can be implemented on Mac. And I think it should. I'll try to see what can be done and subm...

RE: [Stackless] Stackless ported to 2.2.3 #2 #2
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C36B3B.C85D5C30 Content-Type: text/plain That did the trick. Thanks. Heng Sun Chao System Solution Testing Cognos Inc. 738-1338 x 5051 -----Original Message----- From: Christian Tismer [mailto:tismer@tismer.com] Sent: Monday, August 25, 2003 2:26 PM To: Chao, Heng Sun Cc: Pythonistas; Stackless@tismer.com Subject: Re: [Stackless] Stackless ported to 2.2.3 Chao, Heng Sun wrote: > I did so. The help works fine. However, I re...

Re: Samba 2.2-8 build 20050817 ported to Itanium OpenVMS 8.2-1
From: koehler@eisner.nospam.encompasserve.org (Bob Koehler) > #ifdef __VMS > #ifndef __VAX > > non-VAXen stuff > > #else > > VAXen stuff > #endif > #endif > > Yes, you can indent preprocessor lines if you're using ANSI C. More compilers (preprocessors) are happier if you don't indent the "#", as in: #ifdef __VMS # ifndef __VAX non-VAXen stuff # else VAXen stuff # endif #endif But I can't say just how far back you need to go to get into trouble your way. Perhaps VAX C. (Do I spend...

Web resources about - RE: Re[2]: [Mac, 2.8.2] Handling menu open event - comp.soft-sys.wxwindows

Anchor handling tug supply vessel - Wikipedia, the free encyclopedia
Anchor Handling Tug Supply (AHTS) vessels are mainly built to handle anchors for oil rigs , tow them to location, anchor them up and, in a few ...

New Facebook SDK For IOS Adds Automatic Error Handling, Improved Login UI
... software-development kit for iOS is now available for download , with significant enhancements including a beta test of automatic error handling ...

Handling Disputes and Refunds
Handling Disputes and Refunds

Facebook Shares Stats on How Users are Handling the Latest Privacy Changes
Facebook’s traffic has yet to be affected by the aggressive privacy changes it made at the beginning of December, from what data we can see — ...

Handling five billion sessi
... that provides app developers with reliable, real-time and actionable insights into their mobile apps. Skip to main content Sign in Search Handling ...

Customer Service Handling
This group is for people in customer service profession facing the customer either in person or over phone.

Wrap Camera HD - Ultimate Picture Editor with Unique Paper Handling on the App Store on iTunes
Get Wrap Camera HD - Ultimate Picture Editor with Unique Paper Handling on the App Store. See screenshots and ratings, and read customer reviews. ...

Dead domain handling page - Flickr - Photo Sharing!
Explore anearthling's photos on Flickr. anearthling has uploaded 1692 photos to Flickr.

Frank Rich Talks New York Media, Handling Criticism - Media Beat (2 of 3) - YouTube
In the second part of our three-part "Media Beat" interview with him, Frank Rich talks about leaving The New York Times to join New York magazine, ...

34% Rate Obama’s Handling of Government Spending As Good or Excellent
Voters continue to question President Obama's handling of issues related to government spending and taxes. A new Rasmussen Reports national telephone ...

Resources last updated: 2/28/2016 10:07:18 PM