Beispiel #1
0
	MainWindow()
	{
		nTopLevelWnd++;


		fileMenu.setText(L"File");
		menuBar.insert(fileMenu);
		newCmd.setText(L"New Window");
		newCmd.click.addListener(this, &MainWindow::newCmd_click);
		fileMenu.insert(newCmd);

		setMenu(menuBar);
	}
Beispiel #2
0
	MainWindow()
	{
		m_button_ok.setText(L"OK");
		controls.add(m_button_ok);
		m_button_ok.setBounds(200, 10, 75, 20);

		//setMenu(menuBar);

		fileMenu.setText(L"File");
		menuBar.insert(fileMenu);
		openCmd.setText(L"Open");
		fileMenu.insert(openCmd);
		closeCmd.setText(L"Close");
		fileMenu.insert(closeCmd);

		recentMenu.setText(L"Recent");
		fileMenu.insert(recentMenu);
		hellocppCmd.setText(L"hello.cpp");
		recentMenu.insert(hellocppCmd);
		fileMenu.addSeparator();
		exitCmd.setText(L"Exit");
		exitCmd.click.addListener(this, &MainWindow::exitCmd_click);
		fileMenu.insert(exitCmd);

		editMenu.setText(L"Edit");
		menuBar.insert(editMenu);
		copyCmd.setText(L"Copy");
		editMenu.insert(copyCmd);
		cutCmd.setText(L"Cut");
		editMenu.insert(cutCmd);
		pasteCmd.setText(L"Paste");
		editMenu.insert(pasteCmd);

		viewMenu.setText(L"View");
		menuBar.insert(viewMenu);
		browerCmd.setText(L"Browser");
		viewMenu.insert(browerCmd);
		outputCmd.setText(L"Output");
		viewMenu.insert(outputCmd);

		colorMenu.setText(L"Color");
		menuBar.insert(colorMenu);
		redCmd.setText(L"Red");
		colorMenu.insert(redCmd);
		greenCmd.setText(L"Green");
		colorMenu.insert(greenCmd);
		blueCmd.setText(L"Blue");
		colorMenu.insert(blueCmd);
		colorMenu.addSeparator();
		darkCmd.setText(L"Dark");
		darkCmd.setGroupId(1);
		lightCmd.setText(L"Light");
		lightCmd.setGroupId(1);
		colorMenu.insert(darkCmd);
		colorMenu.insert(lightCmd);

		helpMenu.setText(L"Help");
		menuBar.insert(helpMenu);
		aboutCmd.setText(L"About");
		helpMenu.insert(aboutCmd);

		setMenu(menuBar);
	}