For history sake, I Report it here as  BugID

http://support.realsoftware.com/feedback/viewreport.php?reportid=nuapyevw



 > I need a popupmenu that displays both enabled and disabled rows.
 Various NUG threads say that this is impossible with the built-in
 popup menu, so I am trying to do this with a contextual menu.

 Unfortunately I can't seem to get the simplest ConstructContextMenu
 of a popup menu to fire at all.
 What am I doing wrong?
 PPC IDE 2006R4 on OS X

 Here is the ConstructContextualMenu code (from the only Popupmenu
 control, on the only window, in a new default project).

 Function ConstructContextualMenu(base as MenuItem, x as Integer, y as
 Integer) As Boolean
    'dim base as new MenuItem

    base.Append( EditCut )
    base.Append( EditCopy )
    base.Append( EditPaste )

    base.Append( new MenuItem( MenuItem.TextSeparator ) )

    base.Append( new MenuItem( "My menu item text" ) )
    base.Append( new MenuItem( "Other text" ) )

    dim results as MenuItem
    results = base.PopUp

    select case results.Text
    case "My menu item text"
      'DoSomething
      dim j as integer = 1
    case "Other text"
      'DoSomethingElse
      dim jj as integer = 2

    end select


    Return true
 End Function

 --

 Cheers,

 Dr Gerard Hammond
 MacSOS Solutions
 _______________________________________________
 Unsubscribe or switch delivery mode:
 <http://www.realsoftware.com/support/listmanager/>

 Search the archives of this list here:
 <http://support.realsoftware.com/listarchives/lists.html>




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

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


--

Cheers,

Dr Gerard Hammond
MacSOS Solutions
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to