Ignore:
Timestamp:
01/13/03 18:18:15 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/gui/MGEmbeddedCanvas.cc

    r1690 r1702  
    5252}
    5353
     54// ------------------------------------------------------------------------
     55//
     56// Map the subwindows, resize to its quadratic size, map the window itself
     57// and set it to Non-Editable.
     58//
    5459void MGEmbeddedCanvas::InitCanvas()
    5560{
     
    7176    // X11 Pixmap error) Update hangs the Gui system.
    7277    //
    73     // Fixed: Using root 3.01/06 and doing the update from within the
     78    // Fixed: By using root 3.01/06 and doing the update from within the
    7479    // mainthread.
    7580    //
     
    8085    fModified = kFALSE;
    8186}
     87
     88// ------------------------------------------------------------------------
     89//
     90//  Set's the kNoContextMenu bit for all primitives in the embedded canvas
     91//  and the canvas itself, so that no context menu is displayed.
     92//
     93void MGEmbeddedCanvas::SetNoContextMenu()
     94{
     95    TList &list = *fCanvas->GetListOfPrimitives();
     96    list.ForEach(TObject, SetBit)(kNoContextMenu);
     97
     98    fCanvas->SetBit(kNoContextMenu);
     99}
Note: See TracChangeset for help on using the changeset viewer.