Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Selection behavior for a container control in details view

0 views
Skip to first unread message

Jim Moe

unread,
Oct 23, 2009, 6:28:53 PM10/23/09
to
Hello,
I have a container control in the details view, say for a folder that
shows a directory listing. I can select a record, then use sh+dn (shift +
down-arrow keys) to select more records; the equivalent of ctrl+mouseclick
or mouse-drag across multiple records.
If I then delete the record(s), the next record has only the
CRA_CURSORED emphasis but because no record is actually selected
(CRA_SELECTED), sh+dn does not work to select more records.
This is the default behavior.

In PMMail when a record (a message) is selected and deleted as described
above, a further action is taken by the code to select another record for
further operations by setting the CRA_SELECTED and CRA_CURSORED emphasis
attributes (with CM_SETRECORDEMPHASIS) to the next record after the
deleted one (or previous if it was the last record in the display).
This, unfortunately, is not the same as a mouse click to select a
record, or using just the Down arrow key to move to another record.
Entering the sh+dn keys has no effect, i.e., no further records are
selected even though the current record shows as selected/cursored.
It acts the same as the default behavior even though a record has been
explicitly selected.
I have tried sending the WM_BUTTON1CLICK message (WinSendMsg()) to the
record; the returns code indicates the message was ignored. I have tried
clearing first then setting the emphasis to no effect.

Has anyone else experienced this behavior?
And found a solution that allows the sh+dn to function after removing a
record?

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

0 new messages