WideStudio/MWT Logo
WideStudio/MWT
Programming Guide
WideStudio/MWT Index
Table of contents


¸â¹ö °´Ã¼¿¡ Á¢±Ù(access)Çϱ⿡´Â



Ŭ·¡½º À̺¥Æ® ÇÁ·Î½ÃÀú³»¿¡¼­ÀÇ ¸â¹ö °´Ã¼¿¡ Á¢±Ù(access)

¸â¹ö °´Ã¼¿¡ Á¢±Ù(access)Çϱ⿡´Â ¸ÕÀú ±× °´Ã¼°¡ ¸â¹öÀ¸·Î¼­ Á¤ÀÇ(define)µÇ¿©ÀÖ´Â ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù( Ŭ·¡½º ÀÀ¿ëÇÁ·Î±×·¥ À©µµ¿ìÆíÀÇ [ °´Ã¼¸¦ ¸â¹ö º¯¼ö·Î Çϱ⿡´Â]ÀÇ ÀýÀ» ÂüÁ¶ÇØÁÖ¼¼¿ä).

´ÙÀ½ ¿¹´Â ¾î´À Ŭ·¡½º(sample)ÀÇ À̺¥Æ® ÇÁ·Î½ÃÀúÀÇ ¿¹ÀÔ´Ï´Ù.

sample* ÀÇ base Æ÷ÀÎÅÍ°¡ ¼öÄ¡ÀÔ·ÂŬ·¡½ºÀÇ °´Ã¼º»Ã¼ÀÔ´Ï´Ù. ¸â¹öÀÇ °´Ã¼( ¿¹ÄÁµ¥ newvlab000)´Â base->newvlab000 ´Â Çü½ÄÀ¸·Î Á¢±Ù(access)ÇÕ´Ï´Ù.

#include <sample.h>
void sample::event_procedure(WSCbase* object){
  sample* base = (sample*)object->getUserData(WS_BASE_CLASS);
  //¹«½¼ 󸮸¦ ½áÁÖ¼¼¿ä

  // ¸â¹öÀÇ °´Ã¼¿¡ Á¢±Ù(access)...
  WSCvariant val = base->newvlab000->getProperty(WSNuserValue);

   ...
}

¸â¹öÀÇ °´Ã¼ newvlab000 ¿¡ base-> ·Î Á¢±Ù(access)Çϴ°ÍÀÌ ¾Ë¼ö°¡ÀÖ½À´Ï´Ù.

¸â¹ö ÇÔ¼ö³»¿¡¼­ÀÇ ¸â¹ö °´Ã¼¿¡ Á¢±Ù(access)

Ŭ·¡½º À̺¥Æ® ÇÁ·Î½ÃÀú³»¿¡¼­ÀÇ ¸â¹ö °´Ã¼¿¡ Á¢±Ù(access)Çϱ⿡´Â base-> °¡ ÇÊ¿äÇß½º³ª ¸â¹ö ÇÔ¼ö³» ( ¼Ó¼ºÇڵ鷯µµ º¸ÇÔÇÕ´Ï´Ù)¿¡¼­´Â ±× ÇÊ¿ä°¡ ¾ø½À´Ï´Ù.

´ÙÀ½ ¿¹µµ ¾î´À Ŭ·¡½º(sample)ÀÇ ¸â¹ö ÇÔ¼öÀÎ method1() ¿¡¼­ÀÇ ¸â¹ö °´Ã¼ÀÇ Á¢±Ù(access)ÀÔ´Ï´Ù.

// »ùÇà ¸Þ¼­µå
void sample::method1(long data){
  newvlab000->setProperty(WSNuserValue,data);
  ...
}


Document Release 3.90 for WideStudio/MWT ver 3.90, Jul 2005


WideStudio/MWT documents index | Table of contents

Copyright(C) WideStudio/MWT Development Team, 1999-2005 Last modified: Jul 31, 2005