当前位置: 首页>>代码示例>>PHP>>正文


PHP wb_create_control函数代码示例

本文整理汇总了PHP中wb_create_control函数的典型用法代码示例。如果您正苦于以下问题:PHP wb_create_control函数的具体用法?PHP wb_create_control怎么用?PHP wb_create_control使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了wb_create_control函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: define

if (!defined("ID_LEVEL")) {
    define("ID_LEVEL", 2120);
}
if (!defined("IDC_STATIC2119")) {
    define("IDC_STATIC2119", 2119);
}
if (!defined("ID_SPINNER")) {
    define("ID_SPINNER", 2121);
}
if (!defined("ID_TREE")) {
    define("ID_TREE", 2112);
}
// Create window
$dlg = wb_create_window($parent, 103, "Edit Categories", 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, "(Name)", 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, Label, "Level:", 178, 35, 46, 16, IDC_STATIC2119, WBC_VISIBLE | WBC_ENABLED | WBC_RIGHT, 0);
wb_create_control($dlg, EditBox, "0", 238, 35, 46, 21, ID_LEVEL, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($dlg, Spinner, "", 289, 35, 20, 21, ID_SPINNER, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($dlg, TreeView, "", 4, 6, 166, 224, ID_TREE, WBC_VISIBLE | WBC_ENABLED, 0);
// End controls
开发者ID:BackupTheBerlios,项目名称:winbinder-svn,代码行数:31,代码来源:dlg_cat.rc.php

示例2: 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

示例3: process_main

function process_main($window, $id, $ctrl, $lparam1 = 0, $lparam2 = 0)
{
    global $wb, $statusbar;
    switch ($id) {
        case IDC_TREEVIEW:
            $selnode = wb_get_selected($wb->tree_view);
            if ($wb->left_control) {
                wb_set_visible($wb->left_control, false);
            }
            switch (wb_get_value($wb->tree_view)) {
                case 2002:
                    include_once PATH_FORM . 'Contact.form.php';
                    $wb->current_ctl = new ContactForm();
                    $wb->left_control = $wb->current_ctl->renderForm();
                    break;
                case 2003:
                    $wb->left_control = wb_create_control($wb->mainwin, CheckBox, "Checkbox 1", 170, 105, 91, 14, 0);
                    break;
                case 2004:
                    $wb->left_control = wb_create_control($wb->mainwin, RTFEditBox, "Rich text", 170, 120, 205, 55, 0);
                    break;
            }
            wb_set_text($wb->statusbar, "Selected item: " . wb_get_text($wb->tree_view, $selnode) . " / Value: " . wb_get_value($wb->tree_view) . " / Parent: " . wb_get_parent($wb->tree_view, $selnode) . " / Level: " . wb_get_level($wb->tree_view, $selnode) . " / State: " . (wb_get_state($wb->tree_view, $selnode) ? "expanded" : "collapsed"));
            break;
        case IDCLOSE:
            // IDCLOSE is predefined
            if (wb_message_box($wb->mainwin, $wb->vars["Lang"]["lang_sure_logout"], $wb->vars["Lang"]["system_name"], WBC_QUESTION | WBC_YESNO)) {
                wb_destroy_window($window);
            }
            break;
        case IDC_CATEGORY_LIST_VIEW:
            $sel = wb_get_selected($ctrl);
            $sel = $sel ? implode(", ", $sel) : "none";
            wb_message_box($wb->mainwin, $sel);
            break;
        default:
            include_once PATH_FORM . 'contact.handle.php';
            process_ContactForm($window, $id, $ctrl, $lparam1, $lparam2);
            break;
    }
}
开发者ID:BackupTheBerlios,项目名称:flushcms,代码行数:41,代码来源:main.php

示例4: define

if (!defined('IDC_OPPORTUNITY_MEMO')) {
    define('IDC_OPPORTUNITY_MEMO', 1380);
}
if (!defined('IDC_UPDATE')) {
    define('IDC_UPDATE', 1381);
}
// Create window
$winmain = wb_create_window($wb->mainwin, ModalDialog, "{$wb->vars["Lang"]["lang_new"]}/{$wb->vars["Lang"]["lang_edit"]} {$wb->vars["Lang"]["lang_opportunity"]}", WBC_CENTER, WBC_CENTER, 597, 404, 0x1, 0);
// Insert controls
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_name"]}", 5, 5, 45, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 65, 5, 510, 20, IDC_OPPORTUNITY_TITLE, 0x0, 0, 0);
wb_create_control($winmain, PushButton, "{$wb->vars["Lang"]["lang_save"]}", 145, 340, 90, 25, IDC_SAVE, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_contact"]}", 10, 45, 50, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 65, 40, 200, 20, IDC_OPPORTUNITY_LINK_MAN, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_addrees"]}", 10, 135, 50, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_state"]}", 270, 40, 55, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 65, 130, 510, 20, IDC_OPPORTUNITY_ADDREES, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 340, 45, 200, 20, IDC_OPPORTUNITY_STATE, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_phone"]}", 10, 85, 50, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 65, 80, 200, 20, IDC_OPPORTUNITY_PHONE, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_fax"]}", 270, 75, 50, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 340, 75, 235, 20, IDC_OPPORTUNITY_FAX, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_email"]}", 10, 175, 50, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 65, 170, 205, 20, IDC_OPPORTUNITY_EMAIL, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_homepage"]}", 275, 170, 55, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 340, 170, 230, 20, IDC_OPPORTUNITY_HOMEPAGE, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_memo"]}", 5, 230, 55, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 65, 205, 510, 125, IDC_OPPORTUNITY_MEMO, 0x80, 0, 0);
wb_create_control($winmain, PushButton, "{$wb->vars["Lang"]["lang_edit"]}", 265, 340, 90, 25, IDC_UPDATE, 0x0, 0, 0);
wb_create_control($winmain, PushButton, "{$wb->vars["Lang"]["lang_cancel"]}", 390, 340, 90, 25, IDCANCEL, 0x0, 0, 0);
// End controls
开发者ID:BackupTheBerlios,项目名称:flushcms,代码行数:31,代码来源:yc_opportunity_edit.form.php

示例5: wb_create_control

wb_create_control($wb->mainwin, Frame, "", 4, 435, 166, 3, -1, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($wb->mainwin, Frame, "", 4, 495, 166, 3, -1, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($wb->mainwin, Label, "Class:", 5, 240, 35, 16, -1, WBC_VISIBLE | WBC_ENABLED | WBC_MULTILINE, 0);
wb_create_control($wb->mainwin, Label, "Caption:", 4, 263, 41, 16, -1, WBC_VISIBLE | WBC_ENABLED | WBC_MULTILINE, 0);
wb_create_control($wb->mainwin, Label, "Id:", 5, 287, 31, 16, -1, WBC_VISIBLE | WBC_ENABLED | WBC_MULTILINE, 0);
wb_create_control($wb->mainwin, Label, "Left:", 1, 448, 26, 16, -1, WBC_VISIBLE | WBC_ENABLED | WBC_RIGHT, 0);
wb_create_control($wb->mainwin, Label, "Width:", 83, 448, 34, 16, -1, WBC_VISIBLE | WBC_ENABLED | WBC_RIGHT, 0);
wb_create_control($wb->mainwin, Label, "Top:", 2, 471, 25, 16, -1, WBC_VISIBLE | WBC_ENABLED | WBC_RIGHT, 0);
wb_create_control($wb->mainwin, Label, "Height:", 79, 471, 41, 16, -1, WBC_VISIBLE | WBC_ENABLED | WBC_RIGHT, 0);
wb_create_control($wb->mainwin, Label, "Value:", 4, 310, 40, 16, 1022, WBC_VISIBLE | WBC_ENABLED | WBC_MULTILINE, 0);
wb_create_control($wb->mainwin, CheckBox, "&Wireframe", 100, 37, 70, 21, IDC_WIREFRAME, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($wb->mainwin, CheckBox, "Snap to &grid", 4, 37, 85, 21, IDC_GRID, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($wb->mainwin, CheckBox, "&Hex", 134, 313, 40, 16, IDC_HEX, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($wb->mainwin, TreeView, "", 4, 76, 166, 154, IDC_CONTROLS, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($wb->mainwin, ListView, "", 4, 334, 166, 91, IDC_STYLES, WBC_VISIBLE | WBC_ENABLED | WBC_SORT | WBC_SINGLE, 0);
wb_create_control($wb->mainwin, ComboBox, "", 47, 235, 125, 146, IDC_CLASSES, WBC_VISIBLE | WBC_ENABLED | WBC_READONLY, 0);
wb_create_control($wb->mainwin, EditBox, "", 47, 235, 122, 21, IDC_CLASS, WBC_VISIBLE | WBC_DISABLED | WBC_READONLY, 0);
wb_create_control($wb->mainwin, EditBox, "", 46, 260, 125, 21, IDC_CAPTION, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($wb->mainwin, EditBox, "", 46, 284, 125, 21, IDC_ID, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($wb->mainwin, EditBox, "", 28, 445, 35, 19, IDC_LEFT, WBC_VISIBLE | WBC_ENABLED | WBC_NUMBER, 0);
wb_create_control($wb->mainwin, Spinner, "", 64, 445, 16, 19, IDC_LEFTSPINNER, WBC_VISIBLE | WBC_ENABLED | WBC_GROUP, 0);
wb_create_control($wb->mainwin, EditBox, "", 28, 469, 35, 19, IDC_TOP, WBC_VISIBLE | WBC_ENABLED | WBC_NUMBER, 0);
wb_create_control($wb->mainwin, Spinner, "", 64, 469, 16, 19, IDC_TOPSPINNER, WBC_VISIBLE | WBC_ENABLED | WBC_GROUP, 0);
wb_create_control($wb->mainwin, EditBox, "", 119, 445, 35, 19, IDC_WIDTH, WBC_VISIBLE | WBC_ENABLED | WBC_NUMBER, 0);
wb_create_control($wb->mainwin, Spinner, "", 154, 445, 16, 19, IDC_WIDTHSPINNER, WBC_VISIBLE | WBC_ENABLED | WBC_GROUP, 0);
wb_create_control($wb->mainwin, EditBox, "", 119, 469, 35, 19, IDC_HEIGHT, WBC_VISIBLE | WBC_ENABLED | WBC_NUMBER, 0);
wb_create_control($wb->mainwin, Spinner, "", 154, 469, 16, 19, IDC_HEIGHTSPINNER, WBC_VISIBLE | WBC_ENABLED | WBC_GROUP, 0);
wb_create_control($wb->mainwin, EditBox, "", 46, 308, 68, 21, IDC_VALUE, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($wb->mainwin, EditBox, "", 4, 505, 40, 16, IDC_VALUEAUX, WBC_VISIBLE | WBC_ENABLED | WBC_READONLY | WBC_NUMBER, 0);
wb_create_control($wb->mainwin, Spinner, "", 115, 308, 11, 22, IDC_VALUESPINNER, WBC_VISIBLE | WBC_ENABLED | WBC_GROUP, 0);
// End controls
开发者ID:BackupTheBerlios,项目名称:winbinder-svn,代码行数:31,代码来源:fe_main.rc.php

示例6: wb_create_control

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);
wb_create_control($wb->mainwin, TreeView, '', 5, 75, 165, 155, IDC_CONTROLS, 0x0, 0, 0);
wb_create_control($wb->mainwin, ListView, '', 5, 335, 165, 90, IDC_STYLES, 0x0, 0, 0);
wb_create_control($wb->mainwin, ComboBox, '', 50, 235, 120, 250, IDC_CLASSES, 0x40, 0, 0);
wb_create_control($wb->mainwin, EditBox, '', 50, 235, 120, 20, IDC_CLASS, 0x40, 0, 0);
wb_create_control($wb->mainwin, EditBox, '', 50, 260, 120, 20, IDC_CAPTION, 0x0, 0, 0);
wb_create_control($wb->mainwin, EditBox, '', 50, 285, 120, 20, IDC_ID, 0x0, 0, 0);
wb_create_control($wb->mainwin, EditBox, '', 30, 440, 35, 20, IDC_LEFT, 0x400, 0, 0);
wb_create_control($wb->mainwin, Spinner, '', 65, 440, 15, 20, IDC_LEFTSPINNER, 0x80000, 0, 0);
wb_create_control($wb->mainwin, EditBox, '', 30, 465, 35, 20, IDC_TOP, 0x400, 0, 0);
wb_create_control($wb->mainwin, Spinner, '', 65, 465, 15, 20, IDC_TOPSPINNER, 0x80000, 0, 0);
wb_create_control($wb->mainwin, EditBox, '', 120, 440, 35, 20, IDC_WIDTH, 0x400, 0, 0);
wb_create_control($wb->mainwin, Spinner, '', 155, 440, 15, 20, IDC_WIDTHSPINNER, 0x80000, 0, 0);
wb_create_control($wb->mainwin, EditBox, '', 120, 465, 35, 20, IDC_HEIGHT, 0x400, 0, 0);
wb_create_control($wb->mainwin, Spinner, '', 155, 465, 15, 20, IDC_HEIGHTSPINNER, 0x80000, 0, 0);
wb_create_control($wb->mainwin, EditBox, '', 50, 310, 105, 20, IDC_VALUE, 0x0, 0, 0);
wb_create_control($wb->mainwin, EditBox, '', 5, 305, 20, 10, IDC_VALUEAUX, 0x401, 0, 0);
wb_create_control($wb->mainwin, Spinner, '', 155, 310, 15, 20, IDC_VALUESPINNER, 0x80000, 0, 0);
// End controls
开发者ID:BackupTheBerlios,项目名称:winbinder-svn,代码行数:31,代码来源:fe_main.form.php

示例7: file

<?php

/*******************************************************************************

WINBINDER - form editor PHP file (generated automatically)

*******************************************************************************/
// Control identifiers
if (!defined('IDC_ORDER_TAB')) {
    define('IDC_ORDER_TAB', 1601);
}
// Create window
//$wb->mainwin = wb_create_window($wb->mainwin, AppWindow, "{$wb->vars["Lang"]["lang_contact"]}", WBC_CENTER, WBC_CENTER, 617, 511, 0x00000001, 0);
// Insert controls
$tab = wb_create_control($wb->mainwin, TabControl, "{$wb->vars["Lang"]["lang_order"]},{$wb->vars["Lang"]["lang_order"]}{$wb->vars["Lang"]["lang_category"]}", 160, 30, $wb->winwidth - 160, $wb->winheight - 40, IDC_ORDER_TAB, 0x0, 0, 0);
// End controls
开发者ID:BackupTheBerlios,项目名称:flushcms,代码行数:16,代码来源:yc_order.form.php

示例8: define

    define('IDC_SLIDER1002', 1002);
}
if (!defined('IDC_SCROLLBAR1003')) {
    define('IDC_SCROLLBAR1003', 1003);
}
if (!defined('IDC_GAUGE1004')) {
    define('IDC_GAUGE1004', 1004);
}
// Create window
$winmain = wb_create_window(null, ModalDialog, '(Empty Form)', WBC_CENTER, WBC_CENTER, 389, 315, 0x0, 0);
// Insert controls
$tab = $control = wb_create_control($winmain, TabControl, 'Tab1,Tab2,Tab3', 5, 20, 155, 240, IDC_TABCONTROL1001, 0x0, 0, 0);
$control = wb_create_control($tab, EditBox, 'EditBox2', 20, 13, 90, 20, IDC_EDITBOX1002, 0x0, 0, 0);
$control = wb_create_control($tab, EditBox, 'EditBox3', 20, 38, 90, 20, IDC_EDITBOX1003, 0x0, 0, 0);
$control = wb_create_control($tab, Label, 'Label4', 20, 73, 90, 15, IDC_LABEL1001, 0x0, 0, 0);
$control = wb_create_control($tab, Label, 'Label5', 20, 93, 90, 15, IDC_LABEL1001, 0x0, 0, 0);
$control = wb_create_control($tab, RadioButton, 'RadioButton6', 20, 123, 120, 15, IDC_RADIOBUTTON1001, 0x0, 0, 0);
$control = wb_create_control($winmain, CheckBox, 'CheckBox7', 185, 20, 120, 15, IDC_CHECKBOX1001, 0x0, 0, 0);
$ctrl = $control = wb_create_control($winmain, ComboBox, 'ComboBox8', 185, 40, 120, 60, IDC_COMBOBOX1003, 0x40, 0, 0);
wb_set_text($ctrl, explode(',', 'ComboBox8'));
$control = wb_create_control($winmain, EditBox, 'EditBox9', 185, 70, 90, 20, IDC_EDITBOX1004, 0x0, 0, 0);
$control = wb_create_control($winmain, ListView, 'ListView10,List12', 185, 100, 185, 75, IDC_LISTVIEW1001, 0x0, 0, 0);
$control = wb_create_control($winmain, ImageButton, 'resources\\ctrl_listbox3.bmp', 185, 190, 24, 24, IDC_IMAGEBUTTON1001, 0x0, 3, 0);
$control = wb_create_control($tab, EditBox, 'EditBox12', 25, 163, 90, 20, IDC_EDITBOX1001, 0x0, 0, 0);
$ctrl = $control = wb_create_control($winmain, Slider, 'Slider13', 260, 185, 100, 20, IDC_SLIDER1002, 0x0, 50, 0);
wb_set_value($ctrl, 50);
$ctrl = $control = wb_create_control($winmain, ScrollBar, 'ScrollBar14', 225, 185, 18, 82, IDC_SCROLLBAR1003, 0x0, 50, 0);
wb_set_value($ctrl, 50);
$ctrl = $control = wb_create_control($winmain, Gauge, 'Gauge15', 260, 215, 100, 20, IDC_GAUGE1004, 0x0, 50, 0);
wb_set_value($ctrl, 50);
// End controls
开发者ID:BackupTheBerlios,项目名称:winbinder-svn,代码行数:31,代码来源:tab.form.php

示例9: define

}
if (!defined('IDC_UPDATE')) {
    define('IDC_UPDATE', 2577);
}
if (!defined('IDC_COMPLAINTS_HANDLEDATE')) {
    define('IDC_COMPLAINTS_HANDLEDATE', 2578);
}
if (!defined('IDC_COMPLAINTS_STATE')) {
    define('IDC_COMPLAINTS_STATE', 2579);
}
// Create window
$winmain = wb_create_window($wb->mainwin, ModalDialog, "{$wb->vars["Lang"]["lang_new"]}/{$wb->vars["Lang"]["lang_edit"]} {$wb->vars["Lang"]["lang_complaints"]}", WBC_CENTER, WBC_CENTER, 597, 313, 0x1, 0);
// Insert controls
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_title"]}", 5, 5, 45, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 65, 5, 490, 20, IDC_COMPLAINTS_TITLE, 0x0, 0, 0);
wb_create_control($winmain, PushButton, "{$wb->vars["Lang"]["lang_save"]}", 140, 250, 90, 25, IDC_SAVE, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_complainanter"]}", 5, 45, 55, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 65, 45, 200, 20, IDC_COMPLAINTS_COMPLAINANTER, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_reply"]}", 280, 45, 50, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 355, 45, 35, 20, IDC_COMPLAINTS_REPLY, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_handleman"]}", 5, 85, 50, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 65, 85, 200, 20, IDC_COMPLAINTS_HANDLEMAN, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_memo"]}", 0, 130, 55, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 65, 115, 510, 125, IDC_COMPLAINTS_MEMO, 0x80, 0, 0);
wb_create_control($winmain, PushButton, "{$wb->vars["Lang"]["lang_edit"]}", 265, 250, 90, 25, IDC_UPDATE, 0x0, 0, 0);
wb_create_control($winmain, PushButton, "{$wb->vars["Lang"]["lang_cancel"]}", 380, 250, 90, 25, IDCANCEL, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_handledate"]}", 285, 85, 70, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 355, 85, 195, 20, IDC_COMPLAINTS_HANDLEDATE, 0x0, 0, 0);
wb_create_control($winmain, Label, "{$wb->vars["Lang"]["lang_state"]}", 405, 45, 50, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, "", 475, 45, 75, 20, IDC_COMPLAINTS_STATE, 0x0, 0, 0);
// End controls
开发者ID:BackupTheBerlios,项目名称:flushcms,代码行数:31,代码来源:yc_complaints_edit.form.php

示例10: wb_create_control

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);
wb_create_control($wb->winproject, Label, 'Constant start &value:', 20, 205, 125, 15, 0, 0x20, 0, 0);
wb_create_control($wb->winproject, EditBox, '', 155, 205, 75, 20, IDC_STARTVAL, 0x400, 0, 0);
wb_create_control($wb->winproject, CheckBox, 'This form is a &tab page', 30, 270, 135, 15, IDC_ISTABPAGE, 0x0, 0, 0);
wb_create_control($wb->winproject, Label, 'Ta&b #', 165, 270, 45, 15, 0, 0x20, 0, 0);
wb_create_control($wb->winproject, EditBox, '0', 215, 270, 55, 20, IDC_TABNUMBER, 0x400, 0, 0);
wb_create_control($wb->winproject, Spinner, 'Spinner20', 270, 270, 20, 20, IDC_TABNUMBERSPINNER, 0x80000, 0, 0);
wb_create_control($wb->winproject, CheckBox, 'Use captions to &fill out ListBoxes and ComboBoxes', 325, 60, 270, 15, IDC_FILLLISTS, 0x0, 0, 0);
wb_create_control($wb->winproject, CheckBox, 'Use captions as ListView &headers', 325, 85, 255, 15, IDC_FILLHEADERS, 0x0, 0, 0);
wb_create_control($wb->winproject, CheckBox, 'Use captions as image &names for ImageButtons', 325, 110, 255, 15, IDC_IMAGENAMES, 0x0, 0, 0);
wb_create_control($wb->winproject, CheckBox, '&Force controls over tabs to be children of tabs', 325, 135, 260, 15, IDC_INSERTONTABS, 0x0, 0, 0);
wb_create_control($wb->winproject, CheckBox, 'Apply &values to ScrollBars, Gauges, and Sliders', 325, 160, 270, 15, IDC_APPLYVALUES, 0x0, 0, 0);
wb_create_control($wb->winproject, CheckBox, 'Generate additional PHP code for &localization', 325, 185, 245, 15, IDC_LOCALIZE, 0x0, 0, 0);
wb_create_control($wb->winproject, Label, 'Locali&zation prefix:', 340, 205, 114, 15, 0, 0x20, 0, 0);
wb_create_control($wb->winproject, EditBox, '', 465, 200, 65, 20, IDC_LOCPREFIX, 0x0, 0, 0);
wb_create_control($wb->winproject, PushButton, 'OK', 210, 325, 90, 25, IDOK, 0x0, 0, 0);
wb_create_control($wb->winproject, PushButton, 'Cancel', 315, 325, 90, 25, IDCANCEL, 0x0, 0, 0);
wb_create_control($wb->winproject, Label, '(%d above)', 238, 145, 65, 15, IDC_LABEL3001, 0x0, 0, 0);
wb_create_control($wb->winproject, CheckBox, 'Generate null &identifiers for new static controls', 325, 230, 260, 15, IDC_STATICNULLID, 0x0, 0, 0);
// End controls
开发者ID:BackupTheBerlios,项目名称:winbinder-svn,代码行数:31,代码来源:fe_project.form.php

示例11: define

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:
            $filename = wb_sys_dlg_open($window, "Get It", $file_filter);
            if ($filename) {
                wb_call_function($mciSendString, array("open \"" . $filename . "\" type mpegvideo alias " . $filename, NULL, 0, 0));
开发者ID:BackupTheBerlios,项目名称:flushcms,代码行数:31,代码来源:mp3player.php

示例12: 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

示例13: 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));
// Create status bar
$top_bar = wb_create_control($mainwin, Label, "", 10, 2, 100, 10, 0, WBC_CENTER);
wb_set_font($top_bar, wb_create_font("Simsun", 8));
$foot_bar = wb_create_control($mainwin, Label, '', 0, 35, 100, 10, 0, WBC_CENTER);
wb_set_font($foot_bar, wb_create_font("Simsun", 8));
$statusbar = wb_create_control($mainwin, StatusBar, "");
wb_set_font($statusbar, wb_create_font("Simsun", 10));
// Create the timer
wb_create_timer($mainwin, ID_APP_TIMER, 500);
wb_create_timer($mainwin, ID_NEWS_TIMER, 30000);
// Enter application loop
wb_set_image($mainwin, "resource/time.ico");
wb_main_loop();
//-------------------------------------------------------------------- FUNCTIONS
/* Process main window commands */
function process_main($window, $id)
{
    global $label, $statusbar, $top_bar, $foot_bar, $news_str, $wb;
    static $pos, $top_pos, $foot_pos;
    $disks_str = "";
    $news_str = $wb->newscontent;
开发者ID:BackupTheBerlios,项目名称:flushcms,代码行数:31,代码来源:digiclock.php

示例14: define

if (!defined("IDC_SLIDER1049")) {
    define("IDC_SLIDER1049", 1049);
}
if (!defined("ID_TIME")) {
    define("ID_TIME", 1050);
}
if (!defined("IDC_PROGRESSBAR1051")) {
    define("IDC_PROGRESSBAR1051", 1051);
}
if (!defined("IDC_BUTTON1053")) {
    define("IDC_BUTTON1053", 1053);
}
// Create window
$mainwin = wb_create_window(NULL, 1, "Sample WinBinder application", WBC_CENTER, WBC_CENTER, 555, 458, 529, 5120);
// Insert controls
wb_create_control($mainwin, TabControl, "", 4, 35, 540, 274, IDC_TABCONTROL1003, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($mainwin, PushButton, "&Fechar", 494, 315, 50, 45, ID_EXIT, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($mainwin, PushButton, "", 259, 318, 40, 40, IDC_BUTTON1035, WBC_VISIBLE | WBC_ENABLED, 0);
$_tmp_ctrl_ = wb_create_control($mainwin, PushButton, "hyper.ico", 304, 318, 40, 40, IDC_BUTTON1036, WBC_VISIBLE | WBC_ENABLED, 0);
wb_set_image($_tmp_ctrl_, 'C:\\@desenv\\WinBinder\\phpcode\\examples/../resources/hyper.ico', GREEN);
unset($_tmp_ctrl_);
$_tmp_ctrl_ = wb_create_control($mainwin, PushButton, "ok.bmp", 349, 318, 40, 40, IDC_BUTTON1037, WBC_VISIBLE | WBC_ENABLED, 0);
wb_set_image($_tmp_ctrl_, 'C:\\@desenv\\WinBinder\\phpcode\\examples/../resources/ok.bmp', GREEN);
unset($_tmp_ctrl_);
wb_create_control($mainwin, PushButton, "Zero", 214, 318, 40, 40, IDC_BUTTON1039, WBC_VISIBLE | WBC_ENABLED, 0);
wb_create_control($mainwin, Label, "...", 346, 365, 202, 19, ID_GDI, WBC_VISIBLE | WBC_ENABLED | WBC_RIGHT, 0);
wb_create_control($mainwin, EditBox, "(Results)", 4, 315, 205, 45, ID_RESULT, WBC_VISIBLE | WBC_ENABLED | WBC_MULTILINE, 0);
wb_create_control($mainwin, Slider, "", 393, 320, 91, 35, IDC_SLIDER1049, WBC_VISIBLE | WBC_ENABLED | WBC_LINES, 0);
wb_create_control($mainwin, Label, "Time:", 214, 365, 121, 16, ID_TIME, WBC_VISIBLE | WBC_ENABLED | WBC_MULTILINE, 0);
wb_create_control($mainwin, Gauge, "IDC_PROGRESSBAR1051", 5, 365, 205, 14, IDC_PROGRESSBAR1051, WBC_VISIBLE | WBC_ENABLED, 0);
// End controls
开发者ID:BackupTheBerlios,项目名称:winbinder-svn,代码行数:31,代码来源:manytests_main.rc.php

示例15: 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


注:本文中的wb_create_control函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。