Modify extension dir, add Edit menu
This commit is contained in:
parent
174f7cd07a
commit
abb126c400
@ -19,10 +19,10 @@
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
PHP_EMBED_START_BLOCK(argc,argv)
|
PHP_EMBED_START_BLOCK(argc,argv)
|
||||||
|
/* Change extension directory */
|
||||||
|
zend_alter_ini_entry("extension_dir", sizeof("extension_dir"), ".", sizeof("."), PHP_INI_ALL, PHP_INI_STAGE_RUNTIME);
|
||||||
zend_eval_string(" \
|
zend_eval_string(" \
|
||||||
chdir(dirname($argv[0])); \
|
chdir(dirname($argv[0])); \
|
||||||
$name = './wxwidgets.'.PHP_SHLIB_SUFFIX; \
|
|
||||||
dl($name); \
|
|
||||||
require ('OpenSQLManager.php'); \
|
require ('OpenSQLManager.php'); \
|
||||||
", NULL, "TEST" TSRMLS_CC);
|
", NULL, "TEST" TSRMLS_CC);
|
||||||
PHP_EMBED_END_BLOCK()
|
PHP_EMBED_END_BLOCK()
|
||||||
|
@ -181,7 +181,8 @@ class Main extends \wxFrame {
|
|||||||
|
|
||||||
// Menu Bar Top Items
|
// Menu Bar Top Items
|
||||||
$top_file_menu = new \wxMenu();
|
$top_file_menu = new \wxMenu();
|
||||||
$top_export_menu = new \wxMenu();
|
$top_edit_menu = new \wxMenu();
|
||||||
|
//$top_export_menu = new \wxMenu();
|
||||||
$top_help_menu = new \wxMenu();
|
$top_help_menu = new \wxMenu();
|
||||||
|
|
||||||
// File Menu
|
// File Menu
|
||||||
@ -196,10 +197,19 @@ class Main extends \wxFrame {
|
|||||||
$menu_bar->Append($top_file_menu, "&File");
|
$menu_bar->Append($top_file_menu, "&File");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Edit Menu
|
||||||
|
{
|
||||||
|
$top_edit_menu->Append(wxID_CUT, "Cut\tCtrl+X", "Cut");
|
||||||
|
$top_edit_menu->Append(wxID_COPY, "Copy\tCtrl+C", "Copy");
|
||||||
|
$top_edit_menu->Append(wxID_PASTE, "Paste\tCtrl+V", "Paste");
|
||||||
|
|
||||||
|
$menu_bar->Append($top_edit_menu, "&Edit");
|
||||||
|
}
|
||||||
|
|
||||||
// Export Menu
|
// Export Menu
|
||||||
{
|
{
|
||||||
// Add the top level menu to the menubar
|
// Add the top level menu to the menubar
|
||||||
$menu_bar->Append($top_export_menu, "E&xport");
|
//$menu_bar->Append($top_export_menu, "E&xport");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Help Menu
|
// Help Menu
|
||||||
|
Reference in New Issue
Block a user