realbasic-nug
[Top] [All Lists]

Re: ConstructContextualMenu Examples

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: ConstructContextualMenu Examples
From: Terry Ford <tmford at shaw dot ca>
Date: Fri, 30 Nov 2007 10:03:08 -0800
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <D9667846-ED87-4962-9A9C-A84610F8D3DD at tolisgroup dot com> <BE854304-1542-47B7-99A2-C6116BB5976D at tolisgroup dot com> <6770A36C-FEEC-4026-B6C7-F719D34BD57B at tolisgroup dot com> <1649711D-88B4-4A1C-B0E9-3A576CD40B4A at tolisgroup dot com>
On Nov 30, 2007, at 8:19 AM, Tim Jones wrote:

> Imagine that - the NewContextualMenu.rbp example that I *should* have
> been looking at was in a folder named "Popup Menus" instead of the
> folder named "ContextualMenus".  Wow, another day lost because of bad
> examples and documentation...
>
> I've made the following feature request:
>
> http://realsoftware.com/feedback/zkvqiypo

Tim,

Your FR has the following Description statement:

"Please have someone go through the Examples folder and clean up the  
code presented so that it is both relevant and all of the code builds  
and works with the current compiler."

Since every file and folder *must* have been updated on August  
28,2007 12:34 PM (according to the Date Modified and Date Created  
dates in the 2007 r4 examples folder) everything must be hunky-dory  
there. The dates in the r3 folder are a bit more realistic, however. :-/

There is also a slight difference in the two current Contextual Menu  
examples:

Both have: Date Created July 5,2006, 12:52 PM in r3.

In the Contextual Menu Folder, the name is:
NewContextualMenu.rbp

In the MenuItem Folder, the name is:
NewContextualMenus.rbp (note the added "s" in the name)

What gets me is that the Static text in the second ("s") example states:

"Contextually clicking on each of the controls (including the  
GroupBox and the Window itself)..."

The problem is that Contextually clicking on the "Window itself" does  
nothing. From the following, I figured it might Quit the debug run.

ConstructContextualMenu event code of Window1:
   // Check to see if someone else has added any items
   // to the menu.  If they have, we'll put in a separator
   if base.Count > 0 then
     base.Append( new MenuItem( MenuItem.TextSeparator ) )
   end if

   // Now let's add our item, which happens to be the FileQuit
   // menu item
   base.Append( FileQuit )

   // We're done
   return true


ContextualMenuAction event code of Window1:
   // We don't bother to handle any menu items here because
   // the only item we added was the QuitMenuItem, which is
   // handled automatically for us.

Well, I guess it works as intended but it really doesn't explain  
itself very accurately.

Just another in the long list of documentation bugs that seemed to  
get pushed aside for other "more pressing" matters. It does take the  
engineers time away to fix old items. :-)

Terry

_______________________________________________
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>