![]() ![]() ![]() With a newer Delphi version you can make use of a class assistant to achieve this. The cleanest method would be to derive from TStringGrid, but in nearly all cases this is usually not achievable. One workaround would be to contact InvalidateRow for both impacted rows, but this will be a guarded technique and you possess to find a method to achieve this technique from an OnSelectCell occasion handler.ĭepending on your Delphi version there are usually different ways to achieve that. Therefore the remaining tissue of the previous and fresh row are not redrawn, providing the effect you describe. Misha Misha When a brand-new cell is certainly selected in a stringgrid only the prior and the new selected mobile are usually invalidated. RRUZ RRUZ Do you have got run-time styles enabled Run-time designs override any colour plan you try to enforce for Home windows Vista and up. Mawg Mawg 4 Answers if you are trying of paint the decided on line or mobile with a different colour you must check out for the gdSelected value in the state var. ![]() Notice that I evaluate the cells line with the strnggrids row I cant verify the cell state for chosen since only cell of the selected row is selected. Muliple rows have some tissue of the Selected colour and not all cells of the cselected row possess the selected colour. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |