realbasic-nug
[Top] [All Lists]

Re: EnableMenuItems and ShowModal

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: EnableMenuItems and ShowModal
From: Norman Palardy <npalardy@great-white-software.com>
Date: Sun, 29 Jun 2008 11:34:53 -0600
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <16E3110B-4D30-472C-B05A-0D968C396998@verizon.net>
References: <16E3110B-4D30-472C-B05A-0D968C396998@verizon.net>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On 29-Jun-08, at 10:44 AM, Karen wrote:


I am adding new features to an app I wrote a number of years ago. I noticed that for one of my windows that is shown as modal dialog my menuItems are not being enabled both on the Mac and on Win XP. A little bit of troubleshooting showed that the Window EnableMenuItem event is NOt being called.

I'm working in RB2007R3 because the app uses the V4RB 1.98 plugin (V4RB is the only 3rd party plugin I ever used) which does not now work with Mach-O apps.

So I started up RB2008R2 with a simple test project and sure enough the same behavior exists there.

I am pretty sure Window.EnableMenuItems was called for modal Windows when i wrote the app, and I thin it should be!!!

Is this new behavior of enablemenuItems not being called for windows displayed with ShowModal intended (a misguided effort to enforce some UI principle) or is it a bug (which is how I see it?)

In any case I can't find a workaround!!!!

Hmmmmmm ... it is called here in 2008r2

I have
  App default window = Window1

  Window1 (document window)
    BevelButton
      Action
        Window2.ShowModal


  Window2
    EnableMenuItems
      beep

    BevelButton
      Action
        self.close

it beeps every time I open press the bevel button in window1


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>