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


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


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


1.1
log
@118.219.84.10;;cyberuls easylogic ;;
@
text
@= Description = 
 * 그룹 형태의 라인을 만들어주는 컨트롤 
 * 다른 컴포넌트를 포함할 수 있다. rootPanel 로 제어한다. 

= Sample = 

{{{#!vim php 

<?php

/** 
 * WBFrame, winbinder 
 *
 * written by easylogic 
 *
 */

$window = new WBResizableWindow(array(
	'width'		=> 400,
	'height'	=> 400,
	'title'		=> 'WBFrame Example',
	'layout'	=> new WBGridLayout()
));

$frame = $window->add(new WBFrame(array(
	'parent' => $window,
	'text' => 'Frame1',
	'layout' => new WBGridLayout(2,2),
)));

for($i = 0; $i < 3; $i++) {
	$frame->add(new WBPushButton(array(
		'parent' => $window,
		'caption' => "button($i)",
                'event' => array('click' => 'test'),
	)));
}

$frame->add(new WBFrame(array(
	'parent' => $window,
	'text' => 'Frame2'
)));

$window->setVisible(true);

WBApplication::start();

function test($eo) { 
	WBDialog::info($eo->window(), $eo->object()->getText(), "button");
}

?>

}}}
@
