|
From: Mattia B. <mb...@ds...> - 2002-03-28 20:49:09
|
> hi all,
>
> is it possible that the application deselects an item itself?
> i couldn't figure out how to do this.
$l->SetItemState( 3, 0, wxLIST_STATE_SELECTED );
^ ^ ^
item state mask
theidea behind state and mask is that you specify in the mask
the flags you want to change
( e.g. wxLIST_STATE_SELECTED|wxLIST_STATE_FOCUSED ) and list
in the state the states you want to set asn don't list the
states you want to clear. So for deselecting the mask contains
_SELOCTED and the state contains nothing, since you want to
clear the selection. I hope you undertand this
confuse explanation...
HTH
Mattia
|