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


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


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


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

 * Modal 형태의 Dialog 입니다. 이것도 하나의 윈도우 입니다. 하지만 상위 윈도우가 있어야 합니다.

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

import("php.ui.winbinder.WBAppWindow");
import("php.ui.winbinder.WBModalDialog");
import("php.ui.winbinder.WBPushButton");

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

$modal = new WBModalDialog(array(
        'parent' => $window,
	'title' => '여기는 윈도우',
	'xpos' => WBC_CENTER,          // $window 기준 pos 의 WBC_CENTER 
	'ypos' => WBC_CENTER,          // $window 기준 pos 의 WBC_CENTER 
	'width' => 300,
	'height' => 300,    
));


$button = new WBPushButton(
        'parent' => $window,
	'caption' => '이건버튼',
	'xpos' => WBC_CENTER,           
	'ypos' => WBC_CENTER,           
	'width' => 300,
	'height' => 300,    
        'event' => array(
          'click' => 'testFunc'
        )
);

$window->setVisible(true);

WBApplication::start();


function testFunc($eo) { 
    global $modal;

    $modal->setVisible(true);
}

?>
}}}
@
