本文整理汇总了PHP中wb_create_window函数的典型用法代码示例。如果您正苦于以下问题:PHP wb_create_window函数的具体用法?PHP wb_create_window怎么用?PHP wb_create_window使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wb_create_window函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: create_classes_dlg
function create_classes_dlg($parent)
{
global $wb, $classes_table;
$nclasses = count($wb->classes);
// Create window
$pos = wb_get_position($parent);
$width = 88;
$height = 23 + 26 * ceil($nclasses / 3);
$wb->classdlg = wb_create_window($parent, ToolDialog, "Controls", max(0, $pos[0] - $width), max(0, $pos[1]), $width, $height);
wb_set_handler($wb->classdlg, "process_classes");
// Create buttons, one for each control
for ($i = 0; $i < $nclasses; $i++) {
$const = "IDC_" . strtoupper($wb->classes[$i][1]);
$c = wb_create_control($wb->classdlg, ImageButton, $wb->classes[$i][1], 4 + 25 * ($i % 3), 4 + 25 * (int) ($i / 3), 24, 24, constant($const), 0);
$img = wb_load_image(PATH_RESPVT . "ctrl_{$wb->classes[$i][1]}3.bmp");
wb_set_image($c, $img, 0, 0, 3);
wb_destroy_image($img);
}
}
开发者ID:BackupTheBerlios,项目名称:winbinder-svn,代码行数:19,代码来源:fe_dlg_classes.php
示例2: file
<?php
/*******************************************************************************
WINBINDER - form editor PHP file (generated automatically)
*******************************************************************************/
// Control identifiers
if (!defined('IDC_KEYWORD')) {
define('IDC_KEYWORD', 1551);
}
if (!defined('IDC_SEARCH_SUBMIT')) {
define('IDC_SEARCH_SUBMIT', 1552);
}
// Create window
$search_form = wb_create_window($wb->mainwin, ModalDialog, "{$wb->vars["Lang"]["lang_search"]}{$wb->vars["Lang"]["lang_agreement"]}", WBC_CENTER, WBC_CENTER, 258, 118, 0x1, 0);
// Insert controls
wb_create_control($search_form, Label, "{$wb->vars["Lang"]["lang_keyword"]}", 20, 20, 35, 15, 0, 0x0, 0, 0);
wb_create_control($search_form, EditBox, "", 75, 15, 160, 25, IDC_KEYWORD, 0x0, 0, 0);
wb_create_control($search_form, PushButton, "{$wb->vars["Lang"]["lang_search"]}", 90, 55, 90, 25, IDC_SEARCH_SUBMIT, 0x0, 0, 0);
// End controls
开发者ID:BackupTheBerlios,项目名称:flushcms,代码行数:21,代码来源:yc_agreement_search.form.php
示例3: define
if (!defined('IDC_EDITBOX1002')) {
define('IDC_EDITBOX1002', 1003);
}
if (!defined('MAKEID_1K1K')) {
define('MAKEID_1K1K', 1004);
}
if (!defined('MAKEID_2K2K')) {
define('MAKEID_2K2K', 1005);
}
if (!defined('MAKEID_2K2K')) {
define('MAKEID_2K2K', 1006);
}
if (!defined('IDC_RADIOBUTTON1009')) {
define('IDC_RADIOBUTTON1009', 1009);
}
// Create window
$winmain = wb_create_window(null, AppWindow, 'ID tests', WBC_CENTER, WBC_CENTER, 382, 470, 0x0, 0);
// Insert controls
wb_create_control($winmain, Frame, 'Null identifier', 20, 20, 140, 60, 0, 0x0, 0, 0);
wb_create_control($winmain, Label, 'Null identifier', 50, 45, 90, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, 'Valid ID (1001)', 20, 100, 185, 20, IDC_EDITBOX1001, 0x0, 0, 0);
wb_create_control($winmain, PushButton, 'OK', 240, 25, 90, 25, IDOK, 0x0, 0, 0);
wb_create_control($winmain, PushButton, 'Cancel', 240, 60, 90, 25, IDCANCEL, 0x0, 0, 0);
wb_create_control($winmain, EditBox, 'Valid ID (1002)', 20, 130, 185, 20, IDC_EDITBOX1002, 0x0, 0, 0);
wb_create_control($winmain, EditBox, 'Duplicate ID (1002)', 20, 160, 185, 20, IDC_EDITBOX1002, 0x0, 0, 0);
wb_create_control($winmain, CheckBox, 'Invalid ID (1k1k)', 20, 195, 185, 15, MAKEID_1K1K, 0x0, 0, 0);
wb_create_control($winmain, CheckBox, 'Invalid ID (2k2k)', 20, 220, 175, 15, MAKEID_2K2K, 0x0, 0, 0);
wb_create_control($winmain, CheckBox, 'Invalid ID (2k2k, duplicated)', 20, 245, 175, 15, MAKEID_2K2K, 0x0, 0, 0);
wb_create_control($winmain, RadioButton, 'Numeric ID (800)', 200, 200, 120, 15, 800, 0x0, 0, 0);
wb_create_control($winmain, RadioButton, 'Numeric ID (800, duplicated)', 200, 230, 155, 15, IDC_RADIOBUTTON1009, 0x0, 0, 0);
// End controls
开发者ID:BackupTheBerlios,项目名称:winbinder-svn,代码行数:31,代码来源:idtests.form.php
示例4: create_form
function create_form($parent, $title, $width, $height)
{
global $wb;
start_drawing_functions();
// Create the form
$wb->formwin = wb_create_window($parent, ResizableWindow, $title, 0, 0, $width, $height, WBC_INVISIBLE | WBC_CUSTOMDRAW | WBC_NOTIFY, WBC_REDRAW | WBC_RESIZE | WBC_MOUSEDOWN | WBC_MOUSEUP | WBC_MOUSEMOVE | WBC_DBLCLICK);
// Remove unwanted window buttons
$style = GetWindowStyle($wb->formwin);
SetWindowStyle($wb->formwin, $style & ~(WS_MAXIMIZEBOX | WS_MINIMIZEBOX));
EnableCloseButton($wb->formwin, false);
// Set more window properties
wb_set_area($wb->formwin, WBC_MINSIZE, 0, 0, 80, 60);
wb_set_handler($wb->formwin, "process_form");
wb_set_image($wb->formwin, PATH_RESPVT . "form.ico");
// Initialize form data
reset_form(DEFAULT_WINCLASS, $parent, $title, $width, $height);
}
开发者ID:BackupTheBerlios,项目名称:winbinder-svn,代码行数:17,代码来源:fe_form.inc.php
示例5: file
<?php
/*******************************************************************************
WINBINDER - form editor PHP file (generated automatically)
*******************************************************************************/
// Control identifiers
if (!defined('IDC_KEYWORD')) {
define('IDC_KEYWORD', 1001);
}
if (!defined('IDC_SEARCH_SUBMIT')) {
define('IDC_SEARCH_SUBMIT', 1002);
}
// Create window
$wb->contact_search = wb_create_window($wb->mainwin, ModalDialog, "{$wb->vars["Lang"]["lang_search"]}{$wb->vars["Lang"]["lang_contact"]}", WBC_CENTER, WBC_CENTER, 258, 118, 0x1, 0);
// Insert controls
wb_create_control($wb->contact_search, Label, "{$wb->vars["Lang"]["lang_keyword"]}", 20, 20, 35, 15, 0, 0x0, 0, 0);
wb_create_control($wb->contact_search, EditBox, "", 75, 15, 160, 25, IDC_KEYWORD, 0x0, 0, 0);
wb_create_control($wb->contact_search, PushButton, "{$wb->vars["Lang"]["lang_search"]}", 90, 55, 90, 25, IDC_SEARCH_SUBMIT, 0x0, 0, 0);
// End controls
开发者ID:BackupTheBerlios,项目名称:flushcms,代码行数:21,代码来源:yc_contact_search.form.php
示例6: define
if (!defined("ID_NAME")) {
define("ID_NAME", 2113);
}
if (!defined("ID_NEWITEM")) {
define("ID_NEWITEM", 2115);
}
if (!defined("ID_DELETEITEM")) {
define("ID_DELETEITEM", 2116);
}
if (!defined("ID_SETITEM")) {
define("ID_SETITEM", 2117);
}
if (!defined("ID_SEVERITYLIST")) {
define("ID_SEVERITYLIST", 2112);
}
// Create window
$dlg = wb_create_window($parent, 103, "Edit Severity Levels", WBC_CENTER, WBC_CENTER, 337, 295, 0, 0);
// Insert controls
$_tmp_ctrl_ = wb_create_control($dlg, PushButton, "up_arrow.bmp", 178, 65, 20, 21, ID_MOVEUP, WBC_VISIBLE | WBC_ENABLED, 0);
wb_set_image($_tmp_ctrl_, 'C:\\@desenv\\WinBinder\\phpcode\\todo/../resources/up_arrow.bmp', GREEN);
unset($_tmp_ctrl_);
$_tmp_ctrl_ = wb_create_control($dlg, PushButton, "dn_arrow.bmp", 205, 65, 20, 21, ID_MOVEDOWN, WBC_VISIBLE | WBC_ENABLED, 0);
wb_set_image($_tmp_ctrl_, 'C:\\@desenv\\WinBinder\\phpcode\\todo/../resources/dn_arrow.bmp', GREEN);
unset($_tmp_ctrl_);
wb_create_control($dlg, EditBox, "", 178, 8, 146, 21, ID_NAME, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($dlg, PushButton, "&Close", 250, 238, 74, 24, IDCANCEL, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($dlg, PushButton, "&New", 4, 238, 74, 24, ID_NEWITEM, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($dlg, PushButton, "&Delete", 88, 238, 74, 24, ID_DELETEITEM, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($dlg, PushButton, "&Set", 169, 238, 74, 24, ID_SETITEM, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($dlg, ListBox, "", 4, 6, 166, 224, ID_SEVERITYLIST, WBC_VISIBLE | WBC_ENABLED, 0);
// End controls
开发者ID:BackupTheBerlios,项目名称:winbinder-svn,代码行数:31,代码来源:dlg_sever.rc.php
示例7: file
<?php
/*******************************************************************************
WINBINDER - form editor PHP file (generated automatically)
*******************************************************************************/
// Control identifiers
if (!defined('IDC_UPDATE')) {
define('IDC_UPDATE', 1201);
}
if (!defined('IDC_SAVE')) {
define('IDC_SAVE', 1202);
}
if (!defined('IDC_CONTACT_CATEGORY_NAME')) {
define('IDC_CONTACT_CATEGORY_NAME', 1203);
}
// Create window
$winmain = wb_create_window($wb->mainwin, ModalDialog, "{$wb->vars["Lang"]["lang_contact"]}{$wb->vars["Lang"]["lang_category"]}", WBC_CENTER, WBC_CENTER, 370, 160, 0x0, 0);
// Insert controls
wb_create_control($winmain, PushButton, "{$wb->vars["Lang"]["lang_edit"]}", 145, 80, 90, 25, IDC_UPDATE, 0x0, 0, 0);
wb_create_control($winmain, PushButton, "{$wb->vars["Lang"]["lang_cancel"]}", 250, 80, 90, 25, IDCANCEL, 0x0, 0, 0);
wb_create_control($winmain, PushButton, "{$wb->vars["Lang"]["lang_save"]}", 30, 80, 90, 25, IDC_SAVE, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_category"]}{$wb->vars["Lang"]["lang_name"]}", 35, 20, 80, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 140, 20, 130, 20, IDC_CONTACT_CATEGORY_NAME, 0x0, 0, 0);
// End controls
开发者ID:BackupTheBerlios,项目名称:flushcms,代码行数:26,代码来源:yc_contact_category_edit.form.php
示例8: define
define('IDC_UNITS', 1018);
}
if (!defined('IDC_COPIES')) {
define('IDC_COPIES', 1019);
}
if (!defined('IDC_SPINNER1002')) {
define('IDC_SPINNER1002', 1002);
}
if (!defined('IDC_PORTRAIT')) {
define('IDC_PORTRAIT', 1020);
}
if (!defined('IDC_LANDSCAPE')) {
define('IDC_LANDSCAPE', 1021);
}
// Create window
$winmain = wb_create_window(null, AppWindow, 'Print', WBC_CENTER, WBC_CENTER, 409, 337, 0x0, 0);
// Insert controls
wb_create_control($winmain, Frame, 'Printer', 15, 10, 370, 80, 0, 0x0, 0, 0);
wb_create_control($winmain, Frame, 'Print range', 15, 95, 180, 90, 0, 0x0, 0, 0);
wb_create_control($winmain, Frame, 'Paper size', 205, 95, 180, 90, 0, 0x0, 0, 0);
wb_create_control($winmain, Frame, 'Number of copies', 15, 190, 180, 65, 0, 0x0, 0, 0);
wb_create_control($winmain, Frame, 'Orientation', 205, 190, 180, 65, 0, 0x0, 0, 0);
wb_create_control($winmain, ComboBox, '', 95, 30, 280, 110, IDC_PRINTERLIST, 0x40, 0, 0);
wb_create_control($winmain, Label, 'Name:', 40, 30, 50, 15, 0, 0x20, 0, 0);
wb_create_control($winmain, ComboBox, '', 215, 115, 160, 85, IDC_PAPERSIZE, 0x40, 0, 0);
wb_create_control($winmain, RadioButton, 'All', 30, 125, 135, 15, IDC_PRINTALL, 0x80000, 1, 0);
wb_create_control($winmain, RadioButton, 'Pages', 30, 155, 50, 15, IDC_PRINTPAGES, 0x0, 0, 0);
wb_create_control($winmain, EditBox, '1', 80, 153, 35, 20, IDC_STARTPAGE, 0x400, 0, 0);
wb_create_control($winmain, Label, 'to', 120, 155, 14, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, '1', 135, 153, 35, 20, IDC_ENDPAGE, 0x0, 0, 0);
wb_create_control($winmain, Label, 'Quality:', 35, 60, 55, 15, 0, 0x20, 0, 0);
开发者ID:BackupTheBerlios,项目名称:winbinder-svn,代码行数:31,代码来源:print.form.php
示例9: define
if (!defined('IDC_DB_HOST')) {
define('IDC_DB_HOST', 4001);
}
if (!defined('IDC_DB_USERNAME')) {
define('IDC_DB_USERNAME', 4002);
}
if (!defined('IDC_DB_PASSWORD')) {
define('IDC_DB_PASSWORD', 4003);
}
if (!defined('IDC_DB_NAME')) {
define('IDC_DB_NAME', 4004);
}
if (!defined('IDC_LANGUAGE')) {
define('IDC_LANGUAGE', 4005);
}
// Create window
$winmain = wb_create_window($wb->mainwin, ModalDialog, "{$wb->vars["Lang"]["lang_setting"]}", WBC_CENTER, WBC_CENTER, 339, 407, 0x1, 0);
// Insert controls
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_host"]}", 25, 20, 90, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 120, 20, 175, 20, IDC_DB_HOST, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_db_username"]}", 25, 75, 90, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 120, 70, 175, 20, IDC_DB_USERNAME, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_db_password"]}", 25, 125, 90, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 120, 125, 175, 20, IDC_DB_PASSWORD, 0x100, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_db_name"]}", 25, 185, 90, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 120, 185, 175, 20, IDC_DB_NAME, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_language"]}", 20, 250, 90, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, PushButton, "{$wb->vars["Lang"]["lang_save"]}", 55, 330, 90, 25, IDOK, 0x0, 0, 0);
wb_create_control($winmain, PushButton, "{$wb->vars["Lang"]["lang_cancel"]}", 185, 330, 90, 25, IDCANCEL, 0x0, 0, 0);
wb_create_control($winmain, ComboBox, "", 125, 250, 120, 60, IDC_LANGUAGE, 0x40, 0, 0);
// End controls
开发者ID:BackupTheBerlios,项目名称:flushcms,代码行数:31,代码来源:yc_setting.form.php
示例10: define
*/
//------------------------------------------------------------ SYSTEM PARAMETERS
define("PATH_SCRIPT", dirname(__FILE__) . "/");
define("PATH_DATA", PATH_SCRIPT);
define("PATH_INC", PATH_SCRIPT . "include/");
define("PATH_RES", PATH_SCRIPT . "resources/");
//----------------------------------------------------------------- DEPENDENCIES
include_once "include/winbinder.php";
//-------------------------------------------------------------------- CONSTANTS
define("APPNAME", "MP3");
// Application name
// Control identifiers
define("ID_OPEN", 101);
//-------------------------------------------------------------- EXECUTABLE CODE
// Create main window, then assign a procedure and an icon to it
$mainwin = wb_create_window(NULL, AppWindow, APPNAME, 220, 100);
wb_set_handler($mainwin, "process_main");
// Create menu
wb_create_control($mainwin, Menu, array("&File", array(ID_OPEN, "&Open...\tCtrl+O", NULL, NULL, "Ctrl+O"), null, array(IDCLOSE, "E&xit\tAlt+F4", NULL, NULL, "Alt+F4")));
// Enter application loop
wb_main_loop();
//-------------------------------------------------------------------- FUNCTIONS
/* Process main window commands */
function process_main($window, $id)
{
// Try to load the multimedia dll
$winmmlib = wb_load_library("winmm");
$mciSendString = wb_get_function_address("mciSendString", $winmmlib);
static $file_filter = array(array("MP3 file", "*.mp3"));
switch ($id) {
case ID_OPEN:
开发者ID:BackupTheBerlios,项目名称:flushcms,代码行数:31,代码来源:mp3player.php
示例11: define
if (!defined("ID_NAME")) {
define("ID_NAME", 2113);
}
if (!defined("ID_NEWITEM")) {
define("ID_NEWITEM", 2115);
}
if (!defined("ID_DELETEITEM")) {
define("ID_DELETEITEM", 2116);
}
if (!defined("ID_SETITEM")) {
define("ID_SETITEM", 2117);
}
if (!defined("ID_PRIORITYLIST")) {
define("ID_PRIORITYLIST", 2112);
}
// Create window
$dlg = wb_create_window($parent, 103, "Edit Priorities", WBC_CENTER, WBC_CENTER, 337, 295, 0, 0);
// Insert controls
$_tmp_ctrl_ = wb_create_control($dlg, PushButton, "up_arrow.bmp", 178, 65, 20, 21, ID_MOVEUP, WBC_VISIBLE | WBC_ENABLED, 0);
wb_set_image($_tmp_ctrl_, 'C:\\@desenv\\WinBinder\\phpcode\\todo/../resources/up_arrow.bmp', GREEN);
unset($_tmp_ctrl_);
$_tmp_ctrl_ = wb_create_control($dlg, PushButton, "dn_arrow.bmp", 205, 65, 20, 21, ID_MOVEDOWN, WBC_VISIBLE | WBC_ENABLED, 0);
wb_set_image($_tmp_ctrl_, 'C:\\@desenv\\WinBinder\\phpcode\\todo/../resources/dn_arrow.bmp', GREEN);
unset($_tmp_ctrl_);
wb_create_control($dlg, EditBox, "", 178, 8, 146, 21, ID_NAME, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($dlg, PushButton, "&Close", 250, 238, 74, 24, IDCANCEL, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($dlg, PushButton, "&New", 4, 238, 74, 24, ID_NEWITEM, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($dlg, PushButton, "&Delete", 88, 238, 74, 24, ID_DELETEITEM, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($dlg, PushButton, "&Set", 169, 238, 74, 24, ID_SETITEM, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($dlg, ListBox, "", 4, 6, 166, 224, ID_PRIORITYLIST, WBC_VISIBLE | WBC_ENABLED, 0);
// End controls
开发者ID:BackupTheBerlios,项目名称:winbinder-svn,代码行数:31,代码来源:dlg_prior.rc.php
示例12: define
define('IDC_APPLYVALUES', 3022);
}
if (!defined('IDC_LOCALIZE')) {
define('IDC_LOCALIZE', 3023);
}
if (!defined('IDC_LOCPREFIX')) {
define('IDC_LOCPREFIX', 3025);
}
if (!defined('IDC_LABEL3001')) {
define('IDC_LABEL3001', 3001);
}
if (!defined('IDC_STATICNULLID')) {
define('IDC_STATICNULLID', 3028);
}
// Create window
$wb->winproject = wb_create_window($wb->mainwin, ModalDialog, 'Project Properties', WBC_CENTER, WBC_CENTER, 620, 391, 0x1, 0);
// Insert controls
wb_create_control($wb->winproject, Label, 'The properties below apply to the current project. You may use sprintf() syntax for the control variable name.', 20, 10, 580, 15, 0, 0x80, 0, 0);
wb_create_control($wb->winproject, Frame, 'General project data', 15, 35, 285, 205, 0, 0x0, 0, 0);
wb_create_control($wb->winproject, Frame, 'Tab pages', 15, 245, 285, 65, 0, 0x0, 0, 0);
wb_create_control($wb->winproject, Frame, 'Additional code generation options', 315, 35, 285, 275, 0, 0x0, 0, 0);
wb_create_control($wb->winproject, Label, '&Form variable name:', 20, 55, 125, 15, 0, 0x20, 0, 0);
wb_create_control($wb->winproject, EditBox, '', 155, 55, 135, 20, IDC_FORMVAR, 0x0, 0, 0);
wb_create_control($wb->winproject, Label, '&Parent variable name:', 20, 85, 125, 15, 0, 0x20, 0, 0);
wb_create_control($wb->winproject, EditBox, '', 155, 85, 135, 20, IDC_PARENT, 0x0, 0, 0);
wb_create_control($wb->winproject, Label, '&Control variable name:', 20, 115, 125, 15, IDC_LABEL3001, 0x20, 0, 0);
wb_create_control($wb->winproject, EditBox, '', 155, 115, 135, 20, IDC_CTRLVAR, 0x0, 0, 0);
wb_create_control($wb->winproject, Label, 'Control &start value:', 20, 145, 125, 15, IDC_LABEL3001, 0x20, 0, 0);
wb_create_control($wb->winproject, EditBox, '', 155, 145, 75, 20, IDC_STARTCTRLVAL, 0x0, 0, 0);
wb_create_control($wb->winproject, Label, 'Constant prefi&x:', 25, 175, 120, 15, 0, 0x20, 0, 0);
wb_create_control($wb->winproject, EditBox, '', 155, 175, 75, 20, IDC_PREFIX, 0x0, 0, 0);
开发者ID:BackupTheBerlios,项目名称:winbinder-svn,代码行数:31,代码来源:fe_project.form.php
示例13: define
define('IDC_HEIGHT', 1015);
}
if (!defined('IDC_HEIGHTSPINNER')) {
define('IDC_HEIGHTSPINNER', 1016);
}
if (!defined('IDC_VALUE')) {
define('IDC_VALUE', 1017);
}
if (!defined('IDC_VALUEAUX')) {
define('IDC_VALUEAUX', 1018);
}
if (!defined('IDC_VALUESPINNER')) {
define('IDC_VALUESPINNER', 1019);
}
// Create window
$wb->mainwin = wb_create_window(null, ResizableWindow, 'WinBinder Form Editor', WBC_CENTER, WBC_CENTER, 185, 525, 0x1, 0);
// Insert controls
wb_create_control($wb->mainwin, Frame, '', 5, 30, 2048, 8, 0, 0x0, 0, 0);
wb_create_control($wb->mainwin, Frame, '', 5, 65, 165, 8, 0, 0x0, 0, 0);
wb_create_control($wb->mainwin, Frame, '', 5, 435, 165, 2, 0, 0x0, 0, 0);
wb_create_control($wb->mainwin, Frame, '', 5, 490, 165, 8, 0, 0x0, 0, 0);
wb_create_control($wb->mainwin, Label, 'Class:', 5, 235, 40, 20, 0, 0x20, 0, 0);
wb_create_control($wb->mainwin, Label, 'Caption:', 0, 260, 45, 20, 0, 0x20, 0, 0);
wb_create_control($wb->mainwin, Label, '&Id:', 5, 285, 40, 20, 0, 0x20, 0, 0);
wb_create_control($wb->mainwin, Label, '&Left:', 0, 440, 30, 20, 0, 0x20, 0, 0);
wb_create_control($wb->mainwin, Label, '&Width:', 80, 440, 40, 20, 0, 0x20, 0, 0);
wb_create_control($wb->mainwin, Label, '&Top:', 0, 465, 30, 20, 0, 0x20, 0, 0);
wb_create_control($wb->mainwin, Label, '&Height:', 80, 465, 40, 20, 0, 0x20, 0, 0);
wb_create_control($wb->mainwin, Label, '&Value:', 5, 310, 40, 20, 0, 0x20, 0, 0);
wb_create_control($wb->mainwin, CheckBox, '&Wireframe', 100, 40, 69, 15, IDC_WIREFRAME, 0x0, 0, 0);
wb_create_control($wb->mainwin, CheckBox, 'Snap to &grid', 5, 40, 90, 15, IDC_GRID, 0x0, 0, 0);
开发者ID:BackupTheBerlios,项目名称:winbinder-svn,代码行数:31,代码来源:fe_main.form.php
示例14: define
* @version CVS: $Id: digiclock.php,v 1.11 2006/12/25 05:36:38 arzen Exp $
*/
include_once "include/winbinder.php";
include_once "wb_httpget.class.php";
include_once "RSS.php";
//-------------------------------------------------------------------- CONSTANTS
define("ID_APP_TIMER", 201);
define("ID_NEWS_TIMER", 301);
define("SHORT_FMT", "h:i:s A");
define("LONG_FMT", "l, F dS, Y --- ");
define("WIDTH", 150);
define("HEIGHT", 90);
//-------------------------------------------------------------- EXECUTABLE CODE
// Create main window, then assign a procedure to it
$dim = explode(" ", wb_get_system_info("workarea"));
$mainwin = wb_create_window(NULL, PopupWindow, "现在时间", $dim[2] - WIDTH - 30, $dim[3] - HEIGHT, WIDTH, HEIGHT, WBC_TOP | WBC_TASKBAR);
wb_set_handler($mainwin, "process_main");
// Create label control inside the window
class Wb
{
}
$wb = new Wb();
$wb->newscontent = null;
$label = wb_create_control($mainwin, Label, getTimeShotFormat(date("h:i:s")), 0, 15, 108, 20, 0, WBC_CENTER);
wb_set_font($label, wb_create_font("Tahoma", 11, null, FTA_BOLD));
$label_week = wb_create_control($mainwin, Label, formatLocalWeek(date("Y-m-d H:i:s")), 102, 2, 50, 15, 0, WBC_CENTER);
$label_day = wb_create_control($mainwin, Label, date("m月d"), 102, 15, 50, 15, 0, WBC_CENTER);
$label_year = wb_create_control($mainwin, Label, date("Y年"), 102, 30, 50, 15, 0, WBC_CENTER);
wb_set_font($label_week, wb_create_font("Tahoma", 8));
wb_set_font($label_day, wb_create_font("Tahoma", 8));
wb_set_font($label_year, wb_create_font("Tahoma", 8));
开发者ID:BackupTheBerlios,项目名称:flushcms,代码行数:31,代码来源:digiclock.php
示例15: define
define("ID_FILTERTYPE", 2124);
}
if (!defined("ID_FILTERTEXT")) {
define("ID_FILTERTEXT", 2121);
}
if (!defined("ID_FILTER")) {
define("ID_FILTER", 2123);
}
if (!defined("ID_FIELD")) {
define("ID_FIELD", 2126);
}
if (!defined("ID_FILTERPRESETS")) {
define("ID_FILTERPRESETS", 2128);
}
// Create window
$mainwin = wb_create_window(NULL, 100, "WinBinder: To Do", WBC_CENTER, WBC_CENTER, 627, 510, 17, 64);
// Insert controls
wb_create_control($mainwin, ListView, "", 211, 61, 378, 279, ID_ITEMLIST, WBC_VISIBLE | WBC_ENABLED | WBC_SORT | WBC_LINES | WBC_SINGLE, 0);
$_tmp_ctrl_ = wb_create_control($mainwin, PushButton, "up_arrow.bmp", 594, 61, 20, 21, ID_MOVEUP, WBC_VISIBLE | WBC_ENABLED, 0);
wb_set_image($_tmp_ctrl_, 'C:\\@desenv\\WinBinder\\phpcode\\todo/../resources/up_arrow.bmp', GREEN);
unset($_tmp_ctrl_);
$_tmp_ctrl_ = wb_create_control($mainwin, PushButton, "dn_arrow.bmp", 594, 86, 20, 21, ID_MOVEDOWN, WBC_VISIBLE | WBC_ENABLED, 0);
wb_set_image($_tmp_ctrl_, 'C:\\@desenv\\WinBinder\\phpcode\\todo/../resources/dn_arrow.bmp', GREEN);
unset($_tmp_ctrl_);
wb_create_control($mainwin, TreeView, "", 4, 35, 205, 399, ID_TREE, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($mainwin, EditBox, "(Description)", 214, 351, 375, 82, ID_DESCRIPTION, WBC_VISIBLE | WBC_ENABLED | WBC_MULTILINE | WBC_READONLY, 0);
wb_create_control($mainwin, Frame, "", 0, 27, 615, 3, IDC_SHAPE2119, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($mainwin, EditBox, "", 453, 35, 112, 21, ID_FILTERTEXT, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($mainwin, PushButton, "Fi<er", 570, 35, 44, 21, ID_FILTER, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($mainwin, ComboBox, "", 453, 35, 112, 195, ID_FILTERPRESETS, WBC_VISIBLE | WBC_ENABLED | WBC_READONLY, 0);
wb_create_control($mainwin, ComboBox, "", 310, 35, 137, 146, ID_FILTERTYPE, WBC_VISIBLE | WBC_ENABLED | WBC_READONLY, 0);
开发者ID:BackupTheBerlios,项目名称:winbinder-svn,代码行数:31,代码来源:todo_main.rc.php
示例16: wb_gotWindow
function wb_gotWindow($Timer = 0, $Title = 'Привет! :)', $Text = array(), $Wdth = 220, $Rate = 0.75, $X = null, $Y = null)
{
//© roxblnfk ;)
$wid = WB_FloatWindow;
// window id
$Wa = explode(' ', wb_get_system_info('workarea'));
$W = intval(max($Wdth, 200));
$H = 150;
WinAPI_USER::GetCursorPos($xx, $yy);
if (is_array($Text)) {
if (($j = count($Text)) > 5) {
$H = 50 + $j * 20;
}
} else {
$H = 200;
}
if (!isset($X)) {
$X = $Wa[2] - $W;
} elseif ($X === true) {
$X = $xx;
}
if (!isset($Y)) {
$Y = $Wa[3] - $H;
} elseif ($Y === true) {
$Y = $yy;
}
if (isset(self::$wb_windows[$wid])) {
$NEW = false;
/* if(wb_get_visible(self::$wb_windows[$wid])) wb_destroy_timer(self::$wb_windows[$wid],WB_FloatWindow_Timer);
else wb_set_visible(self::$wb_windows[$wid],true);
wb_set_position(self::$wb_windows[$wid],$X,$Y);
wb_set_size(self::$wb_windows[$wid], $W, $H);
wb_set_size(self::$wb_controls[$wid][WB_FloatWindow_Title],$W-4,20);
wb_set_text(self::$wb_controls[$wid][WB_FloatWindow_Title],$Title);
wb_set_position(self::$wb_controls[$wid][WB_FloatWindow_Title],2,2); */
$keys = array_keys(self::$wb_controls[$wid][WB_FloatWindow_Labels]);
for ($i = 0, $j = count($keys); $i < $j; $i++) {
wb_destroy_control(self::$wb_controls[$wid][WB_FloatWindow_Labels][$keys[$i]]);
unset(self::$wb_controls[$wid][WB_FloatWindow_Labels][$keys[$i]]);
// if(isset(self::$wb_controls[$wid][СКЕТЧ ЦЕННОСТЬ][$keys[$i]])){
// wb_destroy_control(self::$wb_controls[$wid][СКЕТЧ ЦЕННОСТЬ][$keys[$i]]);
// unset(self::$wb_controls[$wid][СКЕТЧ ЦЕННОСТЬ][$keys[$i]]);
// }
}
} else {
$NEW = true;
self::$wb_windows[$wid] = wb_create_window(null, NakedWindow, "ololo", $X, $Y, $W, $H, WBC_NOTIFY, WBC_MOUSEUP);
//wb_set_visible(self::$wb_windows[$wid], false);
//alert(self::$wb_windows[$wid]);
self::$wb_controls[$wid] = array();
self::$wb_controls[$wid][WB_FloatWindow_Title] = wb_create_control(self::$wb_windows[$wid], Label, $Title, 2, 2, $W - 4, 20, WB_FloatWindow_Title, WBC_CENTER, 0, 0);
}
/* if(is_array($Text)){
$keys=array_keys($Text);
$l1=intval(($W-15)*$Rate);
for($i=0,$j=count($keys);$i<$j;$i++){
$k=$keys[$i];
if(!is_array($Text[$k]))$Text[$k]=array($Text[$k]);
if(count($Text[$k])>=2){
self::$wb_controls[$wid][WB_FloatWindow_Labels][$i]= wb_create_control(self::$wb_windows[$wid],Label,$Text[$k][0],10,30+$i*20,$l1,20,0,WBC_RIGHT,0,0);
// self::$wb_controls[$wid][СКЕТЧ ЦЕННОСТЬ][$i]= wb_create_control(self::$wb_windows[$wid],Label,$Text[$k][1],15+$l1,30+$i*20,$W-20-$l1,20,0,WBC_LEFT,0,0);
continue;
}else{
$Text[$k]=reset($Text[$k]);
self::$wb_controls[$wid][WB_FloatWindow_Labels][$i]= wb_create_control(self::$wb_windows[$wid],Label,strval($Text[$k]),10,30+$i*20,$W-15,20,0,WBC_CENTER,0,0);
}
}
}else self::$wb_controls[$wid][WB_FloatWindow_Labels][0]= wb_create_control(self::$wb_windows[$wid],RTFEditBox,strval($Text),2,25,$W-4,$H-40,WB_FloatWindow_Labels,WBC_READONLY,0,0);
//*/
if ($Timer < 100) {
$Timer = intval(2147483640);
}
wb_create_timer(self::$wb_windows[$wid], WB_FloatWindow_Timer, $Timer);
if ($NEW) {
self::$wb_controls[$wid][WB_FloatWindow_Font] = wb_create_font('Calibri', 12, BLACK, FTA_BOLD);
wb_set_font(self::$wb_controls[$wid][WB_FloatWindow_Title], self::$wb_controls[$wid][WB_FloatWindow_Font]);
wb_set_handler(self::$wb_windows[$wid], 'dsSpy::wb_procWindow');
}
wb_set_size(self::$wb_windows[$wid], WBC_NORMAL);
//self::showWindow(self::$wb_windows[$wid],500);
//WinAPI_USER::CloseWindow(wb_get_id(self::$wb_windows[$wid]));
}
开发者ID:roxblnfk,项目名称:dsSpy,代码行数:82,代码来源:Index.php
示例17: file
<?php
/*******************************************************************************
WINBINDER - form editor PHP file (generated automatically)
*******************************************************************************/
// Control identifiers
if (!defined('IDC_TREEVIEW')) {
define('IDC_TREEVIEW', 1001);
}
// Create window
$dim = explode(" ", wb_get_system_info("workarea"));
$wb->mainwin = wb_create_window(null, AppWindow | ResizableWindow, $wb->vars["Lang"]["system_name"], 0, 0, $dim[2], $dim[3], 0x200 | WBC_NOTIFY, WBC_RESIZE | WBC_REDRAW | WBC_HEADERSEL);
$dim = wb_get_size($wb->mainwin, true);
$wb->winwidth = $dim[0];
$wb->winheight = $dim[1];
// Insert controls
$wb->tree_view = wb_create_control($wb->mainwin, TreeView, 'TreeView1', 1, 2, 150, $wb->winheight - 40, IDC_TREEVIEW, WBC_LINES);
wb_set_image($wb->tree_view, PATH_RES . "treeview.bmp", GREEN, 0, 10);
$items = wb_create_items($wb->tree_view, array(array($wb->vars["Lang"]["lang_cust"] . $wb->vars["Lang"]["lang_manage"], 2001), array($wb->vars["Lang"]["lang_contact"], 2002, 1), array($wb->vars["Lang"]["lang_company"], 2003, 1), array($wb->vars["Lang"]["lang_product"], 2004, 1), array($wb->vars["Lang"]["lang_sale"] . $wb->vars["Lang"]["lang_manage"], 2005), array($wb->vars["Lang"]["lang_opportunity"], 2006, 1), array($wb->vars["Lang"]["lang_order"], 2007, 1), array($wb->vars["Lang"]["lang_agreement"], 2008, 1), array($wb->vars["Lang"]["lang_afterservice"] . $wb->vars["Lang"]["lang_manage"], 2009), array($wb->vars["Lang"]["lang_complaints"], 2010, 1), array($wb->vars["Lang"]["lang_refundment"], 2011, 1), array($wb->vars["Lang"]["lang_review"], 2012, 1)));
// End controls
开发者ID:BackupTheBerlios,项目名称:flushcms,代码行数:22,代码来源:YCRM.form.php
示例18: file
WINBINDER - form editor PHP file (generated automatically)
*******************************************************************************/
// Control identifiers
if (!defined('IDC_LEFT_TREE')) {
define('IDC_LEFT_TREE', 1011);
}
if (!defined('IDC_TOOLBAR_SEARCH')) {
define('IDC_TOOLBAR_SEARCH', 1012);
}
define("ID_DELETE", 1013);
define("ID_CREATE", 1014);
define("ID_HELP", 1015);
define("ID_ABOUT", 1016);
define("ID_SETTING", 1017);
// Create window
$wb->mainwin = wb_create_window(null, AppWindow, $wb->vars["Lang"]["system_name"], WBC_CENTER, WBC_CENTER, 800, 600, 0x200 | WBC_NOTIFY, WBC_HEADERSEL | WBC_DBLCLICK);
// Insert controls
$dim = wb_get_size($wb->mainwin, true);
$wb->winwidth = $dim[0];
$wb->winheight = $dim[1];
//main menu
$wb->mainmenu = wb_create_control($wb->mainwin, Menu, array($wb->vars["Lang"]["lang_file"], array(IDCLOSE, $wb->vars["Lang"]["lang_exit"] . "\t", NULL, NULL), $wb->vars["Lang"]["lang_option"], array(ID_SETTING, $wb->vars["Lang"]["lang_setting"] . "\t", NULL, NULL), $wb->vars["Lang"]["lang_help"], array(ID_ABOUT, $wb->vars["Lang"]["lang_about"] . "...", NULL, NULL)));
//main toolbar
//$wb->toolbar = null;
$wb->toolbar = wb_create_control($wb->mainwin, ToolBar, array(null, array(ID_CREATE, NULL, $wb->vars["Lang"]["lang_new"], 0), null, array(IDC_TOOLBAR_SEARCH, NULL, $wb->vars["Lang"]["lang_search"], 5), array(ID_DELETE, NULL, $wb->vars["Lang"]["lang_delete"], 12), null, array(ID_SETTING, NULL, $wb->vars["Lang"]["lang_setting"], 19), null, array(ID_ABOUT, NULL, $wb->vars["Lang"]["lang_help"], 13)), 0, 10, 16, 15, 0, 0, PATH_RES . "toolbar.bmp");
//left tree view
$wb->tree_view = wb_create_control($wb->mainwin, TreeView, 'TreeView1', 1, 30, 150, $wb->winheight - 80, IDC_LEFT_TREE, 0x0, 0, 0);
$wb->statusbar = wb_create_control($wb->mainwin, StatusBar, "");
// End controls
开发者ID:BackupTheBerlios,项目名称:flushcms,代码行数:30,代码来源:yc_main.form.php
示例19: define
define("ID_STOP", 102);
define("ID_OPEN", 103);
define("ID_CLOSE", 104);
define("ID_PAUSE", 105);
define("ID_INFOTIMER", 106);
define("ID_MUTE", 107);
define("ID_VOLUMEN", 108);
define("ID_BALANCE", 109);
define("ID_BALCENTER", 110);
define("ID_EQ_LOW", 111);
define("ID_EQ_MID", 112);
define("ID_EQ_HIGH", 113);
define("ID_SURROUND", 114);
define("ID_PLAY_POS", 115);
//-------------------------------------------------------------- EXECUTABLE CODE
$mainwin = wb_create_window(NULL, AppWindow, APPNAME, 530, 240);
$statusbar = wb_create_control($mainwin, StatusBar, APPNAME);
// buttons
wb_create_control($mainwin, PushButton, "´ò¿ª", 10, 10, 100, 20, ID_OPEN);
wb_create_control($mainwin, PushButton, "²¥·Å", 110, 10, 100, 20, ID_PLAY);
wb_create_control($mainwin, PushButton, "Í£Ö¹", 210, 10, 100, 20, ID_STOP);
wb_create_control($mainwin, PushButton, "ÔÝÍ£", 310, 10, 100, 20, ID_PAUSE);
wb_create_control($mainwin, PushButton, "¹Ø±Õ", 410, 10, 100, 20, ID_CLOSE);
wb_create_control($mainwin, PushButton, "¾²Òô", 10, 40, 50, 20, ID_MUTE);
wb_create_control($mainwin, PushButton, "Öмä", 10, 60, 50, 20, ID_BALCENTER);
wb_create_control($mainwin, PushButton, "Ñ»·", 250, 40, 50, 20, ID_SURROUND);
// volumen and balance
wb_create_control($mainwin, Slider, "", 70, 40, 150, 20, ID_VOLUMEN);
wb_create_control($mainwin, Slider, "", 70, 60, 150, 20, ID_BALANCE);
wb_create_control($mainwin, Slider, "²¥·Å½ø¶È", 70, 100, 250, 20, ID_PLAY_POS);
wb_set_range(wb_get_control($mainwin, ID_VOLUMEN), 0, 255);
开发者ID:BackupTheBerlios,项目名称:flushcms,代码行数:31,代码来源:php_media_player.php
示例20: file
<?php
/*******************************************************************************
WINBINDER - form editor PHP file (generated automatically)
*******************************************************************************/
// Control identifiers
if (!defined('IDC_KEYWORD')) {
define('IDC_KEYWORD', 1551);
}
if (!defined('IDC_SEARCH_SUBMIT')) {
define('IDC_SEARCH_SUBMIT', 1552);
}
// Create window
$search_form = wb_create_window($wb->mainwin, ModalDialog, "{$wb->vars["Lang"]["lang_search"]}{$wb->vars["Lang"]["lang_products"]}{$wb->vars["Lang"]["lang_category"]}", WBC_CENTER, WBC_CENTER, 258, 118, 0x1, 0);
// Insert controls
wb_create_control($search_form, Label, "{$wb->vars["Lang"]["lang_keyword"]}", 20, 20, 35, 15, 0, 0x0, 0, 0);
wb_create_control($search_form, EditBox, "", 75, 15, 160, 25, IDC_KEYWORD, 0x0, 0, 0);
wb_create_control($search_form, PushButton, "{$wb->vars["Lang"]["lang_search"]}", 90, 55, 90, 25, IDC_SEARCH_SUBMIT, 0x0, 0, 0);
// End controls
开发者ID:BackupTheBerlios,项目名称:flushcms,代码行数:21,代码来源:yc_product_category_search.form.php
注:本文中的wb_create_window函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论