Figure 1.
I initially thought it would be as simple as changing my code segment from Code 1 to Code 2 (i.e. changing parent of tab control to the IrrlichtDevice). However, when I try to compile with the changes made in Code 2, CodeBlocks gives me error message of "no matching function for call to" as shown in Figure 2. As declared in Code 3 (which is actually located before Code 1), gWindowPrimary, is the IrrlichtDevice, gTabsBar is the IGUITabControl, gIrrEnvir is the IGUIEnvironment. I would like to share more of the code, but my colleague is reluctant to do so.
Code 1:
Code: Select all
irr::gui::IGUIWindow * window = gIrrEnvir->addWindow( irr::core::rect<irr::s32>( 0, 40, 800, 480 ), false, L"TestWindow", 0, GUI_ID_ );
gTabsBar = gIrrEnvir->addTabControl( irr::core::rect<irr::s32>( 2, 20, 1024-602, 480-7 ), window, true, true );
Code: Select all
gTabsBar = gIrrEnvir->addTabControl( irr::core::rect<irr::s32>( 2, 20, 1024-602, 480-7 ), gWindowPrimary, true, true );
Figure 2.
Code3:
Code: Select all
irr::IrrlichtDevice * gWindowPrimary;
gWindowPrimary = irr::createDevice( driverType, irr::core::dimension2d<irr::u32>( 1024, 768 ), 16, false, false, false );
irr::gui::IGUIEnvironment * gIrrEnvir;
gIrrEnvir = gWindowPrimary->getGUIEnvironment();
irr::gui::IGUITabControl * gTabsBar;