コード例 #1
0
ファイル: panel.cpp プロジェクト: besh81/nana
		//class drawer
			void drawer::attached(widget_reference wdg, graph_reference)
			{
				wdg.caption("panel widget");
				window_ = wdg.handle();

				API::ignore_mouse_focus(wdg, true);

			}
コード例 #2
0
ファイル: textbox.cpp プロジェクト: CodeBees/nana
		void drawer::attached(widget_reference wdg, graph_reference graph)
		{
			auto wd = wdg.handle();
			widget_ = &wdg;
			evt_agent_.reset(new event_agent(static_cast<::nana::textbox&>(wdg), editor_->text_position()));

			auto scheme = API::dev::get_scheme(wdg);

			editor_ = new text_editor(wd, graph, dynamic_cast<::nana::widgets::skeletons::text_editor_scheme*>(scheme));
			editor_->textbase().set_event_agent(evt_agent_.get());
			editor_->set_event(evt_agent_.get());

			_m_text_area(graph.width(), graph.height());

			API::tabstop(wd);
			API::eat_tabstop(wd, true);
			API::effects_edge_nimbus(wd, effects::edge_nimbus::active);
			API::effects_edge_nimbus(wd, effects::edge_nimbus::over);
		}