FormNew
Description
ID ÆûÀ» ¸®¼Ò½º µ¥ÀÌÅͺ£À̽º·ÎºÎÅÍ Àоî¿À°í ±× Æû¿¡ ¿¬°áµÇ¾î ÀÖ´Â ÄÄÆ÷³ÍÆ®µµ Àоî¿Â´Ù. ¸¸¾à ÇØ´ç ÆûÀÌ ¸®¼Ò½º µ¥ÀÌÅͺ£À̽º¿¡ ¾ø°Å³ª Æû ½ºÅÃÀÌ ²Ë Âù °æ¿ì, ÄÄÆ÷³ÍÆ®¸¦ ¸®¼Ò½º µ¥ÀÌÅͺ£À̽º·ÎºÎÅÍ ÀÐÀ» ¼ö ¾ø´Â °æ¿ì¿¡´Â FALSE¸¦ ¸®ÅÏÇÏ°í ¼º°øÀûÀ¸·Î ÆûÀ» ÀÐÀº °æ¿ì¿¡´Â TRUE¸¦ ¸®ÅÏÇÑ´Ù.
Syntax
Boolean FormNew( U16 ID )
Parameters
ID Æû ¾ÆÀ̵ð
Returns
value
¼³¸í
TRUE
¸®¼Ò½º µ¥ÀÌÅͺ£À̽º¿¡ ¼º°øÀûÀ¸·Î ÆûÀ» ÀÐÀº °æ¿ì
FALSE
¸®¼Ò½º µ¥ÀÌÅͺ£À̽º¿¡ ÆûÀÌ ¾ø°Å³ª Æû ½ºÅÃÀÌ Âù °æ¿ì
Comments
Á¤»óÀûÀ¸·Î ÆûÀ» »ý¼ºÇÒ ¼ö ¾ø´Â °æ¿ì ( ¸®¼Ò½º µ¥ÀÌÅÍ¿¡ ¹®Á¦°¡ Àְųª ¸Þ¸ð¸®°¡ ºÎÁ·ÇÑ °æ¿ì µî ) ¿¡´Â FALSE°¡ ¸®ÅϵǴµ¥ ÀÌ·± °æ¿ì¿¡´Â ±× ÀÌÇÏÀÇ Æû °ü·Ã ÇÔ¼ö ( ƯÈ÷, FormDraw, FormFree ) ¸¦ È£ÃâÇÏ¿©¼´Â ¾ÈµÈ´Ù.
Example
´ÙÀ½Àº °¡Àå ÀϹÝÀûÀÎ ApplicationHandleEvent ÇÔ¼ö¸¦ º¸¿©ÁØ´Ù.
Boolean ApplicationHandleEvent( EventStruct * e )
{
Boolean handled = FALSE;
if( e->EventType == FORMLOADEVENT )
{
FormNew( id = e->ObjectID );
switch( id )
{
case Form_fmMemoList_1000 :
FormSetEventHandler( MemoMainHandleEvent );
...
/* ÆûÀ» ȸ鿡 ±×¸®±â Àü¿¡ ÇÊ¿äÇÑ ÃʱâÈ°¡ ÀÖÀ¸¸é ¿©±â¿¡ Äڵ带 Ãß°¡ÇÑ´Ù */
}
FormDraw();
handled = TRUE;
}
else if( e->EventType == FORMUNLOADEVENT )
{
FormFree();
handled = TRUE;
}
return handled;