C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[15796] Re:StringGrid에서 선택된 셀만 알아내기...
김상구.패패루 [peperu] 1903 읽음    2002-02-25 22:37
아무리 찾아봐도가 아니라.. 헬프를 제대로 안 찾아보셨네요.
Selection이라는 프라퍼티가 있죠.
Selection은 TGridRect입니다. 아래 제가 헬프파일을 첨부합니다.
내용을 보시면 쉽게 이해되실겁니다. 스트링그리드는 여러 셀을 동시에 선택할 수 있기 때문에 선택한 영역의 Left, Top, Right, Bottom값으로 얻어집니다.

struct TGridCoord

{
  int X;
  int Y;
};

struct TGridRect

{
  union
  {
    struct
    {
      TGridCoord TopLeft;
      TGridCoord BottomRight;
    };
    struct
    {
      int Left;
      int Top;
      int Right;
      int Bottom;
    };
  };
};

__property TGridRect Selection = {read=GetSelection, write=SetSelection};

Description

Set Selection to select a range of cells in the grid. Selection can either represent the first column, first row, last column and last row in the grid, or the row and column coordinates of the upper left and bottom right cells in the selected region.

Selection can only indicate more than one cell when Options includes goRangeSelect.


newhuni 님이 쓰신 글 :
:
:
:  안녕하세요 ^^a;;
:  한가지 여쭤볼것이 있어서여...
:
:  StringGrid를 사용하고 있습니다.
:
:  StringGrid에서 선택된 셀들만 구분지을수 있을까요??
:  사용자가 선택한 셀들의 내용을 모두 지울려고 하는데
:  선택된 셀을 어떻게 찾아야 할지 모르겠네요 ^^a;;
:
:  고수님들 아시면 알려주세요 ^^
:  아무리 찾아봐도 모르겠네요...
:
:

+ -

관련 글 리스트
15789 StringGrid에서 선택된 셀만 알아내기... newhuni 813 2002/02/25
15796     Re:StringGrid에서 선택된 셀만 알아내기... 김상구.패패루 1903 2002/02/25
15795     Re:StringGrid에서 선택된 셀만 알아내기... 임문환 1116 2002/02/25
15819         Re:Re:감사합니다. ^^a newhuni 878 2002/02/26
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.