diff --git a/OpenSQLManager.c b/OpenSQLManager.c index 754264c..b702a3f 100644 --- a/OpenSQLManager.c +++ b/OpenSQLManager.c @@ -19,10 +19,10 @@ int main(int argc, char *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(" \ chdir(dirname($argv[0])); \ - $name = './wxwidgets.'.PHP_SHLIB_SUFFIX; \ - dl($name); \ require ('OpenSQLManager.php'); \ ", NULL, "TEST" TSRMLS_CC); PHP_EMBED_END_BLOCK() diff --git a/src/sys/windows/main.php b/src/sys/windows/main.php index 1940182..96b5167 100644 --- a/src/sys/windows/main.php +++ b/src/sys/windows/main.php @@ -181,7 +181,8 @@ class Main extends \wxFrame { // Menu Bar Top Items $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(); // File Menu @@ -196,10 +197,19 @@ class Main extends \wxFrame { $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 { // 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