TSpeedButton *MOutputBtn[16];
// ---------------------------------------------------------------------------
__fastcall TManualFrame::TManualFrame(TComponent* Owner) : TFrame(Owner) {
MOutputBtn[0] = SpeedButton1;
MOutputBtn[1] = SpeedButton2;
MOutputBtn[2] = SpeedButton3;
MOutputBtn[3] = SpeedButton4;
}
대충 이렇게 초기화를 했는대 이 방법 말고 배열을 한번 선언한 뒤에
MOutputBtn[] = {speedButton9, SpeedButton10,
SpeedButton11, SpeedButton12, SpeedButton13, SpeedButton14,
SpeedButton15, SpeedButton16}
과 비슷한 방법으로 하고 싶은대 이개 안되내요
그래서 유사한 방법을 알고 싶습니다.
그리고 TSpeedButton은 벡터로 선언이 안되는 모양인것 같은대 맞나요?
|