head	1.1;
access;
symbols;
locks
	root:1.1; strict;
comment	@# @;


1.1
date	2009.12.07.04.53.34;	author root;	state Exp;
branches;
next	;


desc
@/opt/nforge/var/wiki/easylogiclib/data/text/WBPushButton
@


1.1
log
@118.219.84.10;;cyberuls easylogic ;;
@
text
@= Description = 
 * 가장 기본적인 버튼입니다.

= Sample = 
{{{#!vim php 
<?php 

$button = new WBPushButton(array(
	'parent' => $window,
	'xpos' => 10,
	'ypos' => 10,
	'width' => 200,
	'height' => 100,
	'caption' => '버튼이에요',
        'accel' => 'F1',           
         'event' => array(          
          'click' => 'eventFunc',
        ),
));

?>
}}}

{{{#!vim php 
<?php 
include_once "../uselib/import.php";

$window = new WBAppWindow(array(
	'title' => '여기는 윈도우',
	'xpos' => WBC_CENTER,
	'ypos' => WBC_CENTER,
	'width' => 500,
	'height' => 500,
));

$button = new WBPushButton(array(
	'parent' => $window,
	'xpos' => 10,
	'ypos' => 10,
	'width' => 200,
	'height' => 100,
	'caption' => '버튼이에요',
        'accel' => 'F1',
        'event' => array(
            'click' => 'testFunc'
        )
));

$window->setVisible(true);
$window->runAccel();

WBApplication::start();

function testFunc($eo) { 
	echo WBApplication::getObject($eo->getId())->getText()."메롱".PHP_EOL;
}
?>
}}}

= Code = 
 * 버튼 클릭 
{{{#!vim php 
<?php $button->click(); ?>
}}}
@
