本文整理汇总了PHP中wb_create_window函数的典型用法代码示例。如果您正苦于以下问题:PHP wb_create_window函数的具体用法?PHP wb_create_window怎么用?PHP wb_create_window使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wb_create_window函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
}
示例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
示例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
示例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);
}
示例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
示例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
示例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
示例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);
示例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
示例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:
示例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
示例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);
示例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);
示例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));
示例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);