ComponentSetVisible
Description
ÇØ´ç ÄÄÆ÷³ÍÆ®¸¦ ȸ鿡 º¸ÀÌ°Ô ¸¸µç´Ù.
Syntax
void ComponentSetVisible( ComponentStruct * c, Boolean draw )
Parameters
c | ȸ鿡 º¸¿©ÁÙ ÄÄÆ÷³ÍÆ® |
draw | ȸ鿡 º¸¿©ÁÖ´Â ½ÃÁ¡ |
Returns
¾øÀ½
Comments
¸¸¾à draw ÀÎÀÚ°¡ TRUE À̸é ȸ鿡 °ð¹Ù·Î ±×·ÁÁÖ°í FALSE ÀÌ¸é ´ÙÀ½ ¹ø ComponentDraw ¿¡¼ ±×·ÁÁöµµ·Ï ÇØ´ç Ç÷¡±×¸¦ ¼¼Æ®ÇÑ´Ù.
Example
»óȲ¿¡ µû¶ó ¾î¶² ÄÄÆ÷³ÍÆ®¸¦ º¸¿©Áֱ⵵ ÇÏ°í º¸ÀÌÁö ¾Ê°Ôµµ ÇÏ´Â ¿¹Á¦ÀÌ´Ù.
void ProcessScroll(Boolean Draw)
{
ComponentStruct *Component;
Component = FormGetComponentPtr( Table_tblMemoList_1002 );
Component->ComponentData.TableData.Start = mmInit.NextOffset;
Component->ComponentData.TableData.End = mmInit.NextOffset + 9;
Component->ComponentData.TableData.NumberOfRows = mmNumRecords - 1;
if (mmNumRecords > 10) /* Ç¥½ÃÇÒ ¾ÆÀÌÅÛÀÇ ¼ö°¡ ȸé Å©±â¸¦ ³ÑÀ¸¸é */
{
/* ½ºÅ©·Ñ ¹ÙÀÇ ¼Ó¼º °ªÀ» ÀûÁ¤ÇÑ °ªÀ¸·Î ¸¸µç´Ù */
Component = FormGetComponentPtr( ScrollBar_scrList_1001 );
Component->ComponentData.ScrollBarData.Start = mmInit.NextOffset;
Component->ComponentData.ScrollBarData.End = mmInit.NextOffset + 9;
Component->ComponentData.ScrollBarData.TotalRows = mmNumRecords;
Component->ComponentData.ScrollBarData.PageScrollSize = 10;
/* ±×¸®°í ½ºÅ©·Ñ ¹Ù¸¦ ȸ鿡 ±×·ÁÁØ´Ù */
if (!Component->Visible) ComponentSetVisible( Component, Draw );
else ScrollBarDraw( Component );
}
else
{
/* Ç¥½ÃÇÒ ¾ÆÀÌÅÛÀÇ ¼ö°¡ ȸé Å©±âº¸´Ù ÀÛÀºµ¥ ½ºÅ©·Ñ ¹Ù°¡ ÀÖÀ¸¸é Áö¿öÁØ´Ù */
Component = FormGetComponentPtr( ScrollBar_scrList_1001 );
if (Component->Visible) ComponentSetInvisible( Component, Draw );
}
}