|
저도 잘 모르는데요.
저는 AdvStringGrid이용시 셀의 정렬과 색깔을 Events에 OnGetAlignment와 OnGetCellColor를 이용합니다.
2개의 이벤트를 사용하시면 될거 같은데요.
초보 님이 쓰신 글 :
: unsigned oldalign = SetTextAlign(AdvStringGrid1->Canvas->Handle, TA_CENTER);
: AdvStringGrid1->Canvas->TextRect(Rect, (Rect.Right+Rect.Left)/2, Rect.Top+2,
: AdvStringGrid1->Cells[ACol][ARow]);
: SetTextAlign(AdvStringGrid1->Canvas->Handle, oldalign);
:
: AdvStringGrid를 이용하고 있습니다.
: 위의 코드를 이용해서 가운데 정렬을 할 때 셀 색깔이 영향을 받더군요
: 제가 지정한 색을 나둔채로 가운데 정렬을 할 수는 없을까요?
|