프로그램/C++Builder
[ C++Builder ] TAdvStringGrid example web Site
구서기
2012. 5. 17. 11:53
그유명한 컴포넌트 툴 TMS 싸이트!
http://www.tmssoftware.com/site/advgrid.asp
TAdvStringGrid 컴포넌트의 example 이 장장 86개씩이나 화면과 소스코드를 상세히 설명!
요컴포넌트 하나에 이렇게 많은 기능이 있을줄이야 ㅡ.,ㅡ
[1] 셀병합
agrdResult->MergeCells(int c, int r, int spanx, int spany);
int c 시작열
int r 시작행
int spanx 병합열 갯수
int spany 병합행 갯수
[2] 원하는셀에 에디터추가
[3] 원하는 셀에 볼드체 디스플레이
//------------------------------------------------------------------------------ // 해당셀 값 등록,수정 가능케 //------------------------------------------------------------------------------ void __fastcall TfrmAsms2_up_AutoScan::agrdResultCanEditCell(TObject *Sender, int ARow, int ACol, bool &CanEdit) { if(ACol >= 12) CanEdit = true; else CanEdit = false; } //------------------------------------------------------------------------------ // 해당셀의 텍스트를 굵게표시 //------------------------------------------------------------------------------ void __fastcall TfrmAsms2_up_AutoScan::agrdResultGetDisplText(TObject *Sender, int ACol, int ARow, UnicodeString &Value) { if(ACol < 12) Value = "" + Value + ""; }
2012년도에 작성된 195페이지나 되는 TMS Gird Pack 개발자 가이드 PDF