![]() ![]() ![]() It seems I only have two options: 1) Use the mouse up event and calculate whether the click landed in the right area (clumsy) -or- 2) Get rid of the default fixed row handling and implement my own column headers. We define two integer variables for remembering from which cell we started dragging: SourceCol and SourceRow. It does generate an event for a double click, but does not indicate the fixed cell as being selected. In Reply to: Drag and drop in Delphi stringgrid I want to drag text from one cell to another, but not drag from or to fixed row and column. The grid does notseem to generate an event for a single click on the fixed row. I know this is a common feature but can't seem to find an event which let's me do this easily. I would like to detect a user click on any of these column headers inorder to sort the data in the table. Sempre que um evento do mouse ocorre, as informações sobre tal evento são fornecidas ao método de tratamento de evento por meio de um objeto da classe MouseEventArgs (alguns eventos usam EventArgs) e o delegate usado para criar os gerenciadores de eventos do mouse é MouseEventHandler. Quote I have a TStringGrid on my form with a fixed row containing columnheaders. It seems I only have two options:There is a 3rd: search the archives for OnCaptionClick and my name and youwill find a TStringgrid descendent which should fit your needs.-Peter Below (TeamB)Use the newsgroup archives. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |