Dave,
Sorry I didn't see your post earlier, but we use the following code
without trouble to reset our "Open Windows" menu:
c = WindowOpenWindows.count-1
if c>-1 then
for i = c DownTo 0
WindowOpenWindows.Remove i
next i
end if
GregO
On Jan 30, 2008, at 2:51 am, Dave Wooldridge wrote:
> Since it would appear that no one else has a solution for this Win32
> issue,
> I went ahead and filed a bug report. If you use dynamic menuitems
> in your
> Win32 apps (such as an "Open Windows" menu), then please sign onto
> this bug
> report:
>
> <http://www.realsoftware.com/feedback/viewreport.php?
> reportid=nflpbqen>
>
> Thanks! :-)
>
> Regards,
> Dave Wooldridge
> Electric Butterfly
> http://www.ebutterfly.com
>
> -------------------------------------
>
> on 1/29/08 10:19 AM, Dave Wooldridge wrote:
>
>> Yes, as I had stated in my original longwinded post, Remove does
>> work fine
>> if you are only removing an item from 1 menubar (and yes, it is an
>> "Open
>> Windows" dynamic menu).
>>
>> But my problem lies in that my app has multiple windows (main project
>> window, code editor window, and other misc. windows) which use
>> different
>> menubars -- 3 different menubars total. For convenience to the
>> user, I have
>> the dynamic "Open Windows" menu in all 3 menubars. Adding a new
>> open window
>> menuitem to all 3 menubars works great on both Mac and Windows, but
>> removing
>> an open window menuitem from all 3 menubars only works on Mac. On
>> Windows,
>> Remove only removes the menuitem from the first menubar called.
>> The other 2
>> menubars still have that menuitem. See my original post for all of
>> the
>> MenuItem.Remove code I posted.
>>
>> Anyone know why MenuItem.Remove would not work on a menuitem across
>> multiple
>> menubars (but only on the first menubar called) on Windows???
>>
>> Regards,
>> Dave Wooldridge
>> Electric Butterfly
>> http://www.ebutterfly.com
>>
>> -------------------------------------
>>
>> on 1/29/08 9:22 AM, Dennis Birch wrote:
>>
>>> ...it's supposed to be the opposite of what I remembered. Remove
>>> should work. Close and Visible = False are hacks according to his
>>> quoted message.
>>
>> On Jan 28, 2008 9:56 PM, RBNUBE <rbnube at mabenterprises dot com> wrote:
>>
>>>>> As I understand it, removing a menuitem from a menu is considered
>>>>> to be against the Windows user interface guidelines.
>>>>
>>>> Not 100% true. While it is very annoying, at times, to have menu
>>>> items
>>>> disappearing, there are at least two cases where this is done on
>>>> Windows:
>>>> 1) When the user is allowed to manually edit the contents of
>>>> menus by
>>>> removing or adding items.
>>>> 2) A list of currently open windows shown in a menu as menu items.
>>
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|