#852 disablemenuitem doesn't

v4.0.1
closed
5
2012-08-14
2009-10-22
oorexxpert
No

I have a tree object that, when an item in the tree is selected, I enable menu item and disable other menu items. The menu items start of disabled. When a tree item is selected, the item I want enabled is enabled and the other item is left disabled. However, as soon as I select another tree item, one menu item is supposed to be disabled while the other is enabled. The enabling works but disabling an item doesn't work so that all items are enabled.

Attached is a demo program that can be used to demonstrate the failure. Select on of the children in the tree. As a result, one item in the menu will be enabled. If you select the other child in the tree, the menu item that was enabled is supposed to be disabled and it is not disabled.

Discussion

  • oorexxpert

    oorexxpert - 2009-10-22

    Demo REXX

     
  • Mark Miesfeld

    Mark Miesfeld - 2009-10-22

    I'm currently out of town on business with limited access. I'll look at this when I return, middle of next week.

     
  • Mark Miesfeld

    Mark Miesfeld - 2009-10-24

    This is already fixed in trunk.

    In the 4.0.0 release there is a typo in ooDialog.cls. You could fix this in your version of 4.0.0 by editing ooDialog.cls

    Lines 2163 and 2164 read this way:

    ::method disable
    use strict arg itemID, byPosition = .false

    change that to read:

    ::method disable
    use strict arg itemIDs, byPosition = .false

    Note that itemID is changed to itemIDs

     
  • Mark Miesfeld

    Mark Miesfeld - 2010-02-22

    Get started on 4.0.1 with something easy.

     
  • Mark Miesfeld

    Mark Miesfeld - 2010-09-08

    The fix for this item was in the 4.0.1 release.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks