|
잘하고파 님이 쓰신 글 :
: 흑흑... 조 밑에 질문을 올려놨는데 리플이 없어 다시 올립니다.
: 고수님들, 제발 도와주십시오.
:
: Form에 이름이 PreBar1, PreBar2, PreBar3, ... FinalBar1, FinalBar2, FinalBar3,...등으로 되어 있는
: ProgressBar 들을 만들었습니다.
: 위 Component 들의 속성을 바꿔주기 위하여 SetProgressBar라는 함수를 만들고 TComponent의 멤버함수인 FindComponent를 이용하여 아래와 같이 코드를 작성하였습니다.
:
: 아래 코드처럼 정수 i를 받아, temp1, temp2에다가 주소를 넘기어 PreBar'i', FinalBar'i' 라는 이름을 가진 컴포넌트의 Poistion, Top 속성등을 바꿔주는 코드입니다.
:
: void __fastcall SetProgressBar(unsigned short int i)
: {
:
: temp1 = (TProgressBar*)FindComponent("PreBar" + IntToStr(i+1));
: temp2 = (TProgressBar*)FindComponent("FinalBar" + IntToStr(i+1));
:
: fRatio = m_fAlarmData[i] / m_fAlarmData[i+6];
:
: temp1->Height = (int)( 160 * fRatio );
: temp2->Height = 160 - temp1->Height;
: temp1->Top = 24 + temp2->Height;
: }
:
: 그런데...
: E2268 Call to undefined function 'FindComponent'
: ----->요런 에러가 뜨는군요. 제발 도와주세요.
:
void __fastcall SetProgressBar(unsigned short int i) <-- 요기
|