Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
LeiMing is currently offline  LeiMing
Messages: 16
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 #39020 is a reply to message #39018] Thu, 07 February 2013 10:10 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 2991
Registered: August 2008
Veteran
Hello LeiMing

It seems strange. Could you include a code snippet?


Best regards
Iñaki
Re: [maybe bug?] Removing last item in arrayctrl [message #39021 is a reply to message #39020] Thu, 07 February 2013 10:36 Go to previous messageGo to next message
LeiMing is currently offline  LeiMing
Messages: 16
Registered: September 2009
Location: China
Promising Member

Ultimate++ 5485,
Windows 7 simpified chinese with sp1,
vc 2010 free

this is the project:
http://ftp.sora.info.tm/NsisVPatcherCreator.7z

I'm trying to make a gui for nsis vpatch.
in the "Source files" section, there is an arrayctrl in the right-down corner.
when removing the last row, all rows are removed.
Re: [maybe bug?] Removing last item in arrayctrl [message #39022 is a reply to message #39021] Thu, 07 February 2013 11:15 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 2991
Registered: August 2008
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

Re: [maybe bug?] Removing last item in arrayctrl [message #39206 is a reply to message #39022] Wed, 27 February 2013 20:59 Go to previous message
mirek is currently offline  mirek
Messages: 12022
Registered: November 2005
Ultimate Member
Confirmed & fixed. Thanks for reporting.

Mirek
Previous Topic: Autosizing GridCtrl columns
Next Topic: [Solved albeit ugly] Scrolling messes up GridCtrl in certain condition
Goto Forum:
  


Current Time: Sun Sep 22 07:42:40 CEST 2019

Total time taken to generate the page: 0.00789 seconds