Wt::WWidget *TreesTables::treeViews() { Wt::WTemplate *result = new TopicTemplate("treestables-TreeViews"); #ifndef _WIN32 result->bindWidget("TreeView", TreeView()); #else result->bindString("TreeView", "Example not available on windows"); #endif return result; }
EntityPaletteTool::EntityPaletteTool() { mPaletteTree = gcnew TreeView(); mPaletteTree->MouseUp += gcnew System::Windows::Input::MouseButtonEventHandler(this, &EntityPaletteTool::OnItemSelected); AddChild(mPaletteTree); // Command = LevelEditorWindow::SelectPaletteItem; Title = "Palette"; Icon = ResourceHelper::GetPngSource("Palette.png"); }