I am using constructContextualMenu in an edit field to display some of the standard edit menu items. The code is

  base.Append( EditCut )
  base.Append( EditCopy )
  base.Append( EditPaste )
  base.append(UntitledMenu1)
  base.Append(EditSelectAll)

When I right click on the edit field the menu displays and I can "paste" and "select all" but when I select any text and then right click the highlight is removed from the text and I am unable to use the copy or cut menu items.

If I use the isContextualClick method in the mouse down event

  If IsContextualClick Then
    Dim m as MenuItem
    m=EditMenu.Popup
    return true
  End if

then everything works fine.

What am I doing, or not doing, that is causing the constructContextualMenu method to not work correctly?

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