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


1.3
date	2009.12.01.06.08.40;	author root;	state Exp;
branches;
next	1.2;

1.2
date	2009.11.24.02.29.19;	author root;	state Exp;
branches;
next	1.1;

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


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


1.3
log
@118.219.84.10;;cyberuls easylogic ;;
@
text
@= Description = 

 * GridLayout 입니다. 
 * rows, columns 를 지정해서 전체 간격을 구성합니다. 
 * 들어가는 모든 컴포넌트들은 같은 크기를 가집니다. 

= Sample = 

{{{#!vim php 
<?php


/** 
 * GridLayout example, winbinder
 *
 * 
 * written by easylogic 
 * 
 */


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

$panel = $window->getRootPanel();
$panel->setLayout(new WBGridLayout(2, 2));

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


$tempPanel = new WBPanel(array('layout' => new WBGridLayout(2, 2)));

for ($i = 0 ; $i < 4; $i++) { 
	$tempPanel->add(new WBPushButton(array(
		'parent' => $window,
		'caption' => "버튼2($i)",
                'event' => array(
                   'click' => 'testClick',
                )
	)));	
}

$panel->add($tempPanel);

$window->setVisible(true);

WBApplication::start();

function testClick($eo) { 
	echo WBApplication::getObject($eo->getId())->getText(), PHP_EOL;
}

?>
}}}

= Structure = 
attachment:GridLayoutOutLine.jpg 

= Image = 
attachment:WBGridLayout.jpg 
@


1.2
log
@118.219.84.10;;cyberuls easylogic ;;
@
text
@d3 3
a5 3
* GridLayout 입니다. 
* rows, columns 를 지정해서 전체 간격을 구성합니다. 
* 들어가는 모든 컴포넌트들은 같은 크기를 가집니다. 
d9 1
a9 1
<php>
d66 2
a67 1
?></php>
@


1.1
log
@118.219.84.10;;cyberuls easylogic ;;
@
text
@d69 1
a69 1
[[그림:GridLayoutOutLine.jpg]]
d72 1
a72 2

[[그림:WBGridLayout.jpg]]
@
