本文整理汇总了PHP中wb_set_text函数的典型用法代码示例。如果您正苦于以下问题:PHP wb_set_text函数的具体用法?PHP wb_set_text怎么用?PHP wb_set_text使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wb_set_text函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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;
}
}
示例2: 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
示例3: create_project_dlg
function create_project_dlg($parent)
{
global $wb;
include "fe_project.form.php";
// Read various settings
foreach ($wb->project_array as $var) {
$var = strtolower($var);
$ctrl = wb_get_control($wb->winproject, constant("IDC_" . strtoupper($var)));
if (preg_match("/[\\d\\.\\,]+/", $wb->form[$wb->currentform]->{$var})) {
wb_set_value($ctrl, $wb->form[$wb->currentform]->{$var});
} else {
if (wb_get_class($ctrl) != RadioButton && wb_get_class($ctrl) != CheckBox) {
wb_set_text($ctrl, $wb->form[$wb->currentform]->{$var});
}
}
}
// Disable / enable controls according to context
wb_set_enabled(wb_get_control($wb->winproject, IDC_LOCPREFIX), wb_get_value(wb_get_control($wb->winproject, IDC_LOCALIZE)));
$val = wb_get_value(wb_get_control($wb->winproject, IDC_ISTABPAGE));
wb_set_enabled(wb_get_control($wb->winproject, IDC_TABNUMBER), $val);
wb_set_enabled(wb_get_control($wb->winproject, IDC_TABNUMBERSPINNER), $val);
$hastext = wb_get_text(wb_get_control($wb->winproject, IDC_CTRLVAR)) !== '';
wb_set_enabled(wb_get_control($wb->winproject, IDC_STARTCTRLVAL), $hastext);
wb_set_handler($wb->winproject, "process_project");
wb_set_visible($wb->winproject, true);
set_default_accel($wb->winproject, false);
}
示例4: process_options
function process_options($window, $id, $ctrl)
{
global $wb;
switch ($id) {
case IDC_WIREFRAME:
case IDC_GRID:
wb_set_value(wb_get_control($wb->mainwin, $id), wb_get_value($ctrl));
break;
case IDC_BROWSE:
$current = wb_get_text(wb_get_control($window, IDC_FILEPATH));
$path = wb_sys_dlg_path($window, 'Select default path for project files:', $current);
if ($path) {
wb_set_text(wb_get_control($window, IDC_FILEPATH), $path);
}
break;
case IDOK:
// Set various settings
foreach ($wb->options_array as $var) {
$var = strtolower($var);
$ctrl = wb_get_control($wb->winoptions, constant("IDC_" . strtoupper($var)));
if (wb_get_class($ctrl) == CheckBox) {
$wb->{$var} = wb_get_value($ctrl);
} else {
$wb->{$var} = wb_get_text($ctrl);
}
}
// Fall-through
// Fall-through
case IDCANCEL:
set_default_accel();
wb_destroy_window($window);
break;
}
}
示例5: dummy_callback
function dummy_callback($window, $id)
{
switch ($id) {
case ID_RESETHANDLER:
wb_set_text(wb_get_control($window, IDC_EDIT6002), "Resetting window handler...");
wb_set_handler($window, "process_main");
break;
}
}
示例6: update_item_controls
function update_item_controls($window)
{
global $id_edit, $curr_cat;
$table = "item";
$data = db_get_data($table, $id_edit, null, "", FETCH_ASSOC);
$data = $data[0];
wb_set_text(wb_get_control($window, ID_NAME), $data["name"]);
wb_set_text(wb_get_control($window, ID_DESCRIPTION), $data["description"]);
// Select the appropriate values from the combo boxes
wb_set_selected(wb_get_control($window, ID_CATLIST), (int) array_search($curr_cat === null ? $data["cat"] : $curr_cat, db_get_data("cat", null, "id")));
wb_set_selected(wb_get_control($window, ID_PRIORLIST), (int) array_search($data["priority"], db_get_data("priority", null, "id")));
wb_set_selected(wb_get_control($window, ID_SEVERLIST), (int) array_search($data["severity"], db_get_data("severity", null, "id")));
}
示例7: get_refundment_by_id
function get_refundment_by_id($parent, $id)
{
global $wb;
$ctrl_map = refundment_ctrl_mapping();
$table_name = $wb->setting["Settings"]["refundment_table"];
$where_is = " WHERE id='{$id}' ";
$sql = " SELECT * FROM {$table_name} {$where_is} ";
$wb->db->query($sql);
while ($wb->db->next_record()) {
while (list($ctrl_name, $field_name) = each($ctrl_map)) {
wb_set_text(wb_get_control($parent, $ctrl_name), $wb->db->f($field_name));
}
}
}
示例8: process_test_lists
function process_test_lists($window, $id, $ctrl = 0, $lparam = 0)
{
// $ctrl = wb_get_control($window, $id);
switch ($id) {
case IDC_LISTLINE:
$n = wb_get_value($ctrl);
$text = wb_get_text(wb_get_control($window, IDC_LISTVIEW2027), $n);
if (is_array($text)) {
$elem = $text[1];
$text = implode(" ", $text);
}
wb_set_text(wb_get_control($window, IDC_EDIT2064), "{$n} [{$text}]\r\n{$elem}");
return true;
case IDC_LISTVIEW2027:
case IDC_LISTVIEW2067:
if ($lparam == WBC_DBLCLICK) {
wb_set_text(wb_get_control($window, IDC_EDIT2064), "Double-clicked.");
} else {
$val = wb_get_value($ctrl);
if ($val && is_array($val)) {
$val = implode(", ", $val);
}
$sel = wb_get_selected($ctrl);
if ($sel && is_array($sel)) {
$sel = implode(", ", $sel);
}
$text = wb_get_text($ctrl);
if (@is_array($text[0])) {
$all = $text;
$text = "";
foreach ($all as $arr) {
$text .= "(" . implode(", ", $arr) . ") ";
}
} elseif (is_array($text)) {
$text = implode(", ", $text);
}
wb_set_text(wb_get_control($window, IDC_EDIT2064), "Selected rows: {$sel}\nValues: [{$val}]\nText: {$text}");
}
return true;
case IDC_LISTBOX2018:
case IDC_COMBOBOX2010:
$val = wb_get_value($ctrl);
$text = wb_get_text($ctrl);
wb_set_text(wb_get_control($window, IDC_EDIT2064), "[{$text}] [val: {$val}]");
return true;
}
return false;
}
示例9: display_setting_dlg
/**
*
* yc_about.form.inc.php
*
* @package core
* @author John.meng <arzen1013@gmail.com>
* @author цот╤РШ
* @author QQ:3440895
* @version CVS: $Id: yc_setting.form.inc.php,v 1.4 2006/12/25 12:37:27 arzen Exp $
*/
function display_setting_dlg()
{
global $wb;
include PATH_FORM . "yc_setting.form.php";
wb_set_text(wb_get_control($winmain, IDC_DB_HOST), $wb->setting["Settings"]["db_host"]);
wb_set_text(wb_get_control($winmain, IDC_DB_USERNAME), $wb->setting["Settings"]["db_username"]);
wb_set_text(wb_get_control($winmain, IDC_DB_PASSWORD), $wb->setting["Settings"]["db_password"]);
wb_set_text(wb_get_control($winmain, IDC_DB_NAME), $wb->setting["Settings"]["db_dbname"]);
include PATH_CONFIG . "common.php";
$items = array_values($LangOption);
wb_set_text(wb_get_control($winmain, IDC_LANGUAGE), $items);
wb_set_text(wb_get_control($winmain, IDC_LANGUAGE), $LangOption[$wb->setting["Settings"]["lang_set"]]);
// wb_set_selected(wb_get_control($winmain, IDC_LANGUAGE),$LangOption[$wb->setting["Settings"]["lang_set"]]);
wb_set_visible($winmain, true);
wb_set_handler($winmain, "process_setting");
}
示例10: get_review_by_id
function get_review_by_id($parent, $id)
{
global $wb, $ReviewwayOption;
$ctrl_map = review_ctrl_mapping();
$table_name = $wb->setting["Settings"]["review_table"];
$where_is = " WHERE id='{$id}' ";
$sql = " SELECT * FROM {$table_name} {$where_is} ";
$wb->db->query($sql);
while ($wb->db->next_record()) {
while (list($ctrl_name, $field_name) = each($ctrl_map)) {
if ($field_name == 'category') {
include PATH_CONFIG . "common.php";
wb_set_text(wb_get_control($parent, $ctrl_name), $ReviewwayOption[$wb->db->f($field_name)]);
} else {
wb_set_text(wb_get_control($parent, $ctrl_name), $wb->db->f($field_name));
}
}
}
}
示例11: reset_form
function reset_form($class, $parent, $title, $width, $height, $style = 0, $value = 0)
{
global $wb;
$wb->currentform = 0;
$wb->proj_filename = null;
if (!isset($wb->form[$wb->currentform])) {
$wb->form[$wb->currentform] = new stdclass();
}
// Reset form data with fixed attributes
$wb->form[$wb->currentform]->ct = array();
$wb->form[$wb->currentform]->numcontrols = 0;
$wb->form[$wb->currentform]->ncurrindex = 0;
$wb->form[$wb->currentform]->nselcontrol = -1;
$wb->form[$wb->currentform]->treenode = 0;
foreach ($wb->project_array as $var) {
$wb->form[$wb->currentform]->{$var} = constant("DEFAULT_" . strtoupper($var));
}
// Variable attributes
$wb->form[$wb->currentform]->width = $width;
$wb->form[$wb->currentform]->height = $height;
$wb->form[$wb->currentform]->caption = $title;
$wb->form[$wb->currentform]->cclass = $class;
$wb->form[$wb->currentform]->style = (int) $style;
$wb->form[$wb->currentform]->value = (int) $value;
// Resize, reposition and show form
$pos = wb_get_position($parent);
wb_set_position($wb->formwin, $pos[0] + 180, $pos[1] + 76);
wb_set_size($wb->formwin, $width, $height);
wb_set_text($wb->formwin, $title);
wb_set_visible($wb->formwin, true);
// Create a treeview item for this form
wb_delete_items($wb->tree, $wb->form[$wb->currentform]->treenode);
$root = $wb->rootnode;
$node = wb_create_items($wb->tree, array(array($title, $wb->currentform, $root, 8, 9, 2)));
$wb->form[$wb->currentform]->treenode = $node;
// numforms is always set to 1
$wb->numforms = 1;
// Expand the root and select the new node
wb_set_state($wb->tree, $root, 1);
wb_set_selected($wb->tree, $node);
}
示例12: import_csv
function import_csv($window)
{
global $statusbar;
$filename = wb_sys_dlg_open($window, "Import CSV", "CSV files (*.csv, *.txt)*.csv;*.txtAll files (*.*)*.*" . "");
if ($filename) {
$csv = file($filename);
} else {
return false;
}
$n = 0;
foreach ($csv as $line) {
$line = trim($line);
if ($line) {
$entry = csv_explode(stripcslashes($line));
if (edit_record("item", 0, "name\ndescription\ncat\npriority\nseverity", $entry)) {
$n++;
}
}
}
wb_set_text($statusbar, basename($filename) . " imported successfully ({$n} items added).");
return true;
}
示例13: wb_create_control
function wb_create_control($parent, $class, $caption = "", $xpos = 0, $ypos = 0, $width = 0, $height = 0, $id = null, $style = 0, $lparam = null, $ntab = 0)
{
switch ($class) {
case Accel:
return wbtemp_set_accel_table($parent, $caption);
case ToolBar:
return wbtemp_create_toolbar($parent, $caption, $width, $height, $lparam);
case Menu:
return wbtemp_create_menu($parent, $caption);
case HyperLink:
return wbtemp_create_control($parent, $class, $caption, $xpos, $ypos, $width, $height, $id, $style, is_null($lparam) ? NOCOLOR : $lparam, $ntab);
case ComboBox:
case ListBox:
case ListView:
$ctrl = wbtemp_create_control($parent, $class, $caption, $xpos, $ypos, $width, $height, $id, $style, $lparam, $ntab);
if (is_array($caption)) {
wb_set_text($ctrl, $caption[0]);
}
return $ctrl;
case TreeView:
$ctrl = wbtemp_create_control($parent, $class, $caption, $xpos, $ypos, $width, $height, $id, $style, $lparam, $ntab);
if (is_array($caption)) {
wb_set_text($ctrl, $caption[0]);
}
return $ctrl;
case Gauge:
case Slider:
case ScrollBar:
$ctrl = wbtemp_create_control($parent, $class, $caption, $xpos, $ypos, $width, $height, $id, $style, $lparam, $ntab);
if ($lparam) {
wb_set_value($ctrl, $lparam);
}
return $ctrl;
default:
return wbtemp_create_control($parent, $class, $caption, $xpos, $ypos, $width, $height, $id, $style, $lparam, $ntab);
}
}
示例14: process_main
function process_main($window, $id, $ctrl)
{
global $statusbar, $fmod, $mainwin;
switch ($id) {
case ID_INFOTIMER:
$status = "´ÅÅÌ: " . $fmod->fmod_GetOutputName() . " ";
$status .= "¸èÇú³¤¶È: " . $fmod->fmod_GetLenght(true) . " ·ÖÖÓ ";
$status .= "ÒѲ¥·Å: " . $fmod->fmod_Msec2Time($fmod->fmod_GetTime(true)) . " sec ";
if ($song_name = $fmod->fmodStreamUrl) {
$status .= "Ãû³Æ: {$song_name} ";
}
wb_set_text($statusbar, $status);
// play position
if ($fmod->fmod_GetLenght(false)) {
wb_set_value(wb_get_control($mainwin, ID_PLAY_POS), round($fmod->fmod_GetTime(false) / $fmod->fmod_GetLenght(false), 2) * 100);
}
if ($fmod->fmod_GetTime(false) == $fmod->fmod_GetLenght(false)) {
$fmod->fmod_StreamOpen($fmod->fmodStreamUrl);
$fmod->fmod_StreamPlay();
}
break;
case ID_OPEN:
$filename = wb_sys_dlg_open();
if ($filename) {
if ($fmod->fmod_StreamOpen($filename)) {
$fmod->fmod_StreamPlay();
// returns true, then play
} else {
wb_message_box($window, "Error opening Audiostream!\n" . $fmod->lasterror, APPNAME, WBC_INFO);
}
}
break;
case ID_CLOSE:
$fmod->fmod_StreamStop();
break;
case ID_PLAY:
$fmod->fmod_StreamPlay();
break;
case ID_STOP:
$fmod->fmod_StreamStop();
break;
case ID_PAUSE:
if ($fmod->fmodStreamState == 1) {
switch ($fmod->fmodIsPaused) {
case 0:
$fmod->fmod_SoundPause(true);
wb_set_text($ctrl, "¼ÌÐø..");
break;
case 1:
$fmod->fmod_SoundPause(false);
wb_set_text($ctrl, "ÔÝÍ£");
break;
}
}
break;
case ID_MUTE:
if ($fmod->fmodStreamState == 1) {
switch ($fmod->fmodIsMuted) {
case 0:
$fmod->fmod_SoundMute(true);
wb_set_text($ctrl, "·ÅÒô");
break;
case 1:
$fmod->fmod_SoundMute(false);
wb_set_text($ctrl, "¾²Òô");
break;
}
}
break;
case ID_SURROUND:
switch ($fmod->fmodSurroundEnabled) {
case 0:
$fmod->fmod_SetSurround(true);
wb_set_text($ctrl, "Ñ»·");
break;
case 1:
$fmod->fmod_SetSurround(false);
wb_set_text($ctrl, "²»Ñ»·");
break;
}
break;
case ID_VOLUMEN:
$fmod->fmod_SetVolumen(wb_get_value($ctrl));
wb_set_text($statusbar, "ÒôÁ¿: " . $fmod->fmod_GetVolumen());
break;
case ID_BALANCE:
$fmod->fmod_SetPanning(wb_get_value($ctrl));
break;
case ID_BALCENTER:
$fmod->fmod_SetPanning(127);
wb_set_value(wb_get_control($window, ID_BALANCE), 127);
break;
case IDCLOSE:
$fmod->fmod_SoundClose();
wb_release_library($fmod->fmodlib);
wb_destroy_window($window);
break;
}
}
示例15: wb_create_control
$tab = wb_create_control($winmain, TabControl, 'Tab1,Tab2,Tab3', 10, 215, 195, 85, IDC_TABCONTROL1020, 0x0, 0, 0);
wb_create_control($winmain, PushButton, 'PushButton1', 10, 15, 100, 25, IDC_PUSHBUTTON1001, 0x0, 0, 0);
$ctrl = $ctrl = wb_create_control($winmain, ImageButton, 'ImageButton2', 120, 15, 90, 60, IDC_IMAGEBUTTON1002, 0x0, 0, 0);
$img = wb_load_image('resources\\symb_imagebutton.bmp');
wb_set_image($ctrl, $img, NOCOLOR, 0, 0);
wb_destroy_image($img);
wb_create_control($winmain, InvisibleArea, 'InvisibleArea3', 220, 15, 70, 60, IDC_INVISIBLEAREA1003, 0x0, 0, 0);
wb_create_control($winmain, CheckBox, 'CheckBox4', 300, 20, 120, 15, IDC_CHECKBOX1004, 0x0, 0, 0);
wb_create_control($winmain, RadioButton, 'RadioButton5', 300, 40, 120, 15, IDC_RADIOBUTTON1005, 0x0, 0, 0);
wb_create_control($winmain, HyperLink, 'HyperLink6', 405, 25, 165, 15, IDC_HYPERLINK1006, 0x880, 12582912, 0);
wb_create_control($winmain, Label, 'Label7', 10, 50, 100, 15, 0, 0x0, 0, 0);
wb_create_control($winmain, EditBox, 'EditBox8', 220, 225, 200, 20, IDC_EDITBOX1008, 0x0, 0, 0);
wb_create_control($winmain, RTFEditBox, 'RTFEditBox9', 300, 65, 120, 140, IDC_RTFEDITBOX1009, 0x0, 0, 0);
wb_create_control($winmain, Frame, 'Frame10', 10, 75, 280, 130, 0, 0x0, 0, 0);
$ctrl = wb_create_control($winmain, ListBox, 'ListBox11', 25, 95, 120, 95, IDC_LISTBOX1011, 0x0, 0, 0);
wb_set_text($ctrl, explode(',', 'ListBox11'));
$ctrl = wb_create_control($winmain, ComboBox, 'ComboBox12', 155, 95, 120, 95, IDC_COMBOBOX1013, 0x0, 0, 0);
wb_set_text($ctrl, explode(',', 'ComboBox12'));
wb_create_control($winmain, Spinner, 'Spinner13', 440, 410, 20, 20, IDC_SPINNER1014, 0x0, 0, 0);
$ctrl = wb_create_control($winmain, ScrollBar, 'ScrollBar14', 435, 305, 140, 20, IDC_SCROLLBAR1015, 0x0, 0, 0);
wb_set_value($ctrl, 0);
$ctrl = wb_create_control($winmain, Slider, 'Slider15', 430, 380, 145, 20, IDC_SLIDER1016, 0x0, 50, 0);
wb_set_value($ctrl, 50);
$ctrl = wb_create_control($winmain, Gauge, 'Gauge16', 435, 345, 140, 20, IDC_GAUGE1017, 0x0, 50, 0);
wb_set_value($ctrl, 50);
wb_create_control($winmain, Calendar, 'Calendar17', 220, 263, 200, 167, IDC_CALENDAR1018, 0x8, 0, 0);
wb_create_control($winmain, HTMLControl, 'HTMLControl18', 435, 215, 140, 80, IDC_HTMLCONTROL1019, 0x8, 0, 0);
wb_create_control($winmain, TreeView, 'TreeView20', 425, 55, 150, 150, IDC_TREEVIEW1021, 0x0, 0, 0);
$ctrl = wb_create_control($winmain, ListView, 'Field 1,Field 2,Field3', 10, 310, 195, 120, IDC_LISTVIEW1022, 0x0, 0, 0);
wb_set_text($ctrl, 'Field 1,Field 2,Field3');
// End controls