10. Edit Box

 

1. ±â´É

    Edit Box ŸÀÏÀº ¹®ÀÚ¿­À̳ª ¼ýÀÚ¸¦ ÀÔ·ÂÇϴµ¥ »ç¿ëµË´Ï´Ù.

    ¸¸¾à ÀÔ·ÂÇÑ ¹®ÀÚ¿­À̳ª, ¼ýÀÚ°¡ Edit Box º¸´Ù ±æ¸é ¼öÆòÀ¸·Î ½ºÅ©·Ñ µË´Ï´Ù.

    Text Box, Text Field, Edit Field¶ó°íµµ ÇÕ´Ï´Ù.

 

¡Ø Edit Box¸¦ ÅëÇØ ÀԷµǴ ¸ðµç °ÍÀº ¹®ÀÚ¿­·Î Ãë±ÞµÈ´Ù.

 

2. Edit Box °ü·Ã ŸÀÏ ¼Ó¼º

    (1) edit_box

      ÇϳªÀÇ Edit Box »ç¿ëÀ» Á¤ÀÇÇÕ´Ï´Ù.

      : edit_box { Expression }

     

    (2) label

      ±âº»°ªÀÌ ¾ø´Â ¹®ÀÚ¿­·Î Edit Box ¿ÞÂÊ¿¡ Ç¥½ÃµÇ´Â ¼±ÅÃÀûÀÎ Á¦¸ñÀÌ´Ù.

      label="Expression";

     

    (3) key

      ÇÁ·Î±×·¥ÀÌ Å¸ÀÏÀ» ÀνÄÇÒ ¼ö ÀÖ´Â À̸§ÀÌ´Ù.

      Edit Box¿¡ ÀԷµǴ °ªÀ» Àӽ÷Π°¡Áö°í ÀÖ´Â º¯¼ö¸¦ ÁöÁ¤ÇÑ´Ù.

      key="Variable";

    ** Âü°í

    labe°ú key´Â Ç×»ó °°ÀÌ »ç¿ëµÈ´Ù.

     

    (4) edit_width

      Edit BoxÀÇ ÆøÀ» Á¤¼ö ¶Ç´Â ½Ç¼ö·Î Á¤ÀÇÇÑ´Ù.

      edit_width°¡ ÁöÁ¤µÇÁö ¾ÊÀ¸¸é ´ëÈ­ »óÀÚ ¾È¿¡¼­ »ç¿ë°¡´ÉÇÑ ¸ðµç °ø°£ÀÇ Å©±â¸¦ Â÷ÁöÇÑ´Ù.

      µû¶ó¼­, Ưº°ÇÑ °æ¿ì°¡ ¾Æ´Ï¸é »ç¿ëÇÏÁö ¾Ê¾Æµµ µÈ´Ù.

      edit_width=number;

     

    (5) edit_limit

      ±âº»°ªÀÌ 132·Î µÇ¾î ÀÖ´Â ÀÔ·Â °¡´ÉÇÑ ¹®ÀÚ¿­ÀÇ ±æÀÌÀÌ´Ù.

      ÁöÁ¤ °¡´ÉÇÑ ÃÖ´ë°ªÀº 256ÀÌ´Ù.

      edit_limit=number;

     

    (6) value

      ±âº»°ªÀÌ ¾ø´Â ¹®ÀÚ¿­ÀÌ´Ù.

      »ç¿ëÀÚ°¡ ÁöÁ¤ÇÑ °ªÀ» Edit Box ¾È¿¡ Ç¥½ÃÇÑ´Ù.

      value="Expression";

     

    (7) allow_accept

      ±âº»°ªÀº falseÀ̸ç, trueÀÎ °æ¿ì »ç¿ëÀÚ°¡ Enter key¸¦ ´©¸£¸é ±âº» ¹öÆ°ÀÌ ¼±ÅõȴÙ.

      allow_accept=true  or  false;

     

    ** Âü°í

    ±âº» ¹öÆ°Àº is_default ¼Ó¼ºÀÌ true·Î µÇ¾î ÀÖ´Â ¹öÆ°ÀÌ´Ù.

 

 

3. ¿¹Á¦ ÇÁ·Î±×·¥

// sedit01.dcl

sample01:dialog

{

  label = " Edit Box Sample";

  : edit_box { label = "Edit Box"; key = "db"; }

  ok_cancel;

}

 

// sedit02.dcl

sample02:dialog

{

  label = " Edit Box Sample Dialog";

  spacer;

  : edit_box {

              label = "Edit Box Sample";

              key = "db";

              value = "Edit Box";

              edit_width = 20;

              edit_limit = 26;

             }

  spacer;

  ok_cancel;

}

 

 

// sedit03.dcl

sample03:dialog

{

  label = " Edit Box Sample Dialog";

  spacer;

  : edit_box {

              label = "Edit Box Smaple-1";

              key = "db1";

              value = "Edit Box-1";

             }

  : edit_box {

              label = "Edit Box Smaple-2";

              key = "db2";

              value = "Edit Box-2";

             }

  spacer;

  ok_cancel;

}

 

    ** Âü°í

    ´ëÈ­ »óÀÚ¿¡ ¿©·¯°³ÀÇ Å¸ÀÏÀ» Á¤ÀÇÇÒ ¶§ °¢ ŸÀÏÀÇ "Key-Name"Àº °°¾Æ¼­´Â ¾ÈµË´Ï´Ù.

    ¸¸¾à °°Àº "Key-Name"ÀÌ Á¸ÀçÇÏ¸é ¿¡·¯°¡ ¹ß»ýÇÕ´Ï´Ù.

 

 

   

Spacer & Alignment

ÃÖÃÊ ÀÛ¼ºÀÏ 2000.01.06

Edit Box Á¦¾î

ÃÖÁ¾ ¼öÁ¤ÀÏ 2006.06.28