Show
Ignore:
Timestamp:
11/28/08 15:36:39 (6 years ago)
Author:
robert
Message:

From Jeremy Moles, updates to osgwidget examples.

Merged by Robert Osfield from OpenSceneGraph-osgWidget-dev

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgwidgetaddremove/osgwidgetaddremove.cpp

    r8602 r9289  
    6666        // own overridden methods for changing the color, but they have attached 
    6767        // callbacks for doing the work with local data. 
    68         getByName("Widget_1")->addCallback(osgWidget::Callback( 
     68        getByName("Widget_1")->addCallback(new osgWidget::Callback( 
    6969            &AddRemove::handlePressAdd, 
    7070            this, 
     
    7272        )); 
    7373 
    74         getByName("Widget_2")->addCallback(osgWidget::Callback( 
     74        getByName("Widget_2")->addCallback(new osgWidget::Callback( 
    7575            &AddRemove::handlePressRemove, 
    7676            this, 
     
    9595 
    9696        _win1->addWidget(new ABCWidget(ss.str())); 
    97         _win1->resize(); 
    9897 
    9998        num++; 
     
    111110 
    112111        _win1->removeWidget(w); 
    113         _win1->resize(); 
    114112 
    115113        return true;