Home > php教程 > PHP源码 > body text

wxWidgets for php 一个弹出框

PHP中文网
Release: 2016-05-23 16:39:53
Original
1500 people have browsed it

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();
?>
Copy after login
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template