Home >php教程 >PHP源码 >wxWidgets for php 一个弹出框

wxWidgets for php 一个弹出框

PHP中文网
PHP中文网Original
2016-05-23 16:39:531552browse

php代码

<?php
/*
* PHP code generated with wxFormBuilder (version Jun 17 2015)
* http://www.wxformbuilder.org/*
* PLEASE DO "NOT" EDIT THIS FILE!
*/
/*
 * Class MyFrame1
 */
class MyFrame1 extends wxFrame {
	
	function __construct( $parent=null ){
		parent::__construct ( $parent, wxID_ANY, wxEmptyString, wxDefaultPosition, new wxSize( 500,300 ), wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );

		$this->SetSizeHints( wxDefaultSize, wxDefaultSize );
		$this->Centre( wxBOTH );
	}
	function __destruct( ){
	}
}
//Application initialization start point
class myApp extends wxApp 
{
	function OnInit()
	{
		$zs = new MyFrame1();
		$zs->Show();
		//$zs->Maximize();
		
		$this->frm = $zs;
		
		return true;
	}
	
	function OnExit()
	{
		return 0;
	}
}

wxInitAllImageHandlers();

$gridApp = new myApp();

wxApp::SetInstance($gridApp);
wxEntry();
?>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn