On Sunday 15 May 2016 01:33:07 Krzysztof wrote:
> I'm still confused on which "is row selected" property I can count :(
> . There is regression between TDrawGrid.row(),
> TDrawGrid.datacol.hasselection and
> Length(TDrawGrid.datacol.selectedrows). Attached demo. Run it and:
> 1. Select "Test 1" row
> 2. Hold CTRL and select "Test 2" too
> 3. You have now 2 rows selected, keep CTRL pressed and try do backward
> unselect - click on "Test 2" and then on "Test 1". Should get my
> message "invalid selection". Visually you don't have anything selected
> but grid.row return last selected row, hasselection is also TRUE but
> array selectedrows is empty
> 4. Repeat this without multiselection. Select any row without CTRL.
> Then press CTRL and click on selected row for unselect it. In this
> case it is almost as I exptected to behave - grid.hasselection is
> FALSE and selectedrows is 0 but grid.row() still return last selected
> row
>
Please try again with git master d18c870ee3b6a10bcd5fc90bf3130461f7d0877d.

> Is it something which I don't understand (difference between selected
> and focused) or bug consequent from last changes in selection behavior
> also reported by me?
>
No, I fear that the sometimes wrong result of HasSelection() exists since 
ever, thanks for reporting.

Martin

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to