Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » [maybe bug?] Removing last item in arrayctrl
| [maybe bug?] Removing last item in arrayctrl [message #39018] |
Thu, 07 February 2013 10:09  |
LeiMing
Messages: 21 Registered: September 2009 Location: China
|
Promising Member |
|
|
Hello,
I'm debugging my program.
it's an arrayctrl in the GUI,
I could append row or delete row in the arrayctrl.
But I met a problem. when I remove the last row in the arrayctrl,
all items disappear.
I don't think it's a "feature".
regards,
LeiMing
|
|
|
|
|
|
|
|
| Re: [maybe bug?] Removing last item in arrayctrl [message #39022 is a reply to message #39021] |
Thu, 07 February 2013 11:15   |
 |
koldo
Messages: 3460 Registered: August 2008
|
Senior Veteran |
|
|
Hello LeiMing
I think you are right.
When deleting rows in a multiselect ArrayCtrl checks the row list in opposite order.
As it is the last one, it moves the cursor to the previous row. But because the removing order, this row is also deleted, and so on until deleting all rows.
Mirek please check:
- bool ArrayCtrl::DoRemove()
- void ArrayCtrl::Remove(int i)
Best regards
Iñaki
[Updated on: Thu, 07 February 2013 11:16] Report message to a moderator
|
|
|
|
|
|
Goto Forum:
Current Time: Sun Jun 21 06:36:20 GMT+2 2026
Total time taken to generate the page: 0.00663 seconds
|