Exemplo n.º 1
0
 ScrollablePane::ScrollablePane(const String& type, const String& name) :
     Window(type, name),
     d_forceVertScroll(false),
     d_forceHorzScroll(false),
     d_contentRect(0, 0, 0, 0),
     d_vertStep(0.1f),
     d_vertOverlap(0.01f),
     d_horzStep(0.1f),
     d_horzOverlap(0.01f),
     d_vertScrollbar(0),
     d_horzScrollbar(0),
     d_container(0)
 {
     addScrollablePaneEvents();
     addScrollablePaneProperties();
 }
Exemplo n.º 2
0
//----------------------------------------------------------------------------//
ScrollablePane::ScrollablePane(const String& type, const String& name) :
    Window(type, name),
    d_forceVertScroll(false),
    d_forceHorzScroll(false),
    d_contentRect(0, 0, 0, 0),
    d_vertStep(0.1f),
    d_vertOverlap(0.01f),
    d_horzStep(0.1f),
    d_horzOverlap(0.01f)
{
    addScrollablePaneProperties();
    
    // create scrolled container widget
    ScrolledContainer* container = static_cast<ScrolledContainer*>(
        WindowManager::getSingleton().createWindow(
            ScrolledContainer::WidgetTypeName,
            d_name + ScrolledContainerNameSuffix));

    // add scrolled container widget as child
    addChildWindow(container);
}