Home » U++ Library support » U++ Widgets - General questions or Mixed problems » DropList bug when removing last item
DropList bug when removing last item [message #14788] |
Fri, 14 March 2008 18:47  |
kodos
Messages: 111 Registered: March 2008
|
Experienced Member |
|
|
Hi,
when you remove an item from a DropList it normally selects the first item in the DropList, but if that Item was the last one it won't update the screen, you have to click on the DropList and that it will update itself.
I have attached a test case.
BTW: If I use the Assist++ to view the available methods from the DropList class it doesn't show me the Remove(int i) method.
|
|
|
|
|
|
|
Re: DropList bug when removing last item [message #14810 is a reply to message #14804] |
Sat, 15 March 2008 15:25   |
bytefield
Messages: 210 Registered: December 2007
|
Experienced Member |
|
|
I guess it could be solved also by adding:
in DropList.cpp(line 88) in Remove function
void DropList::Remove(int i)
{
key.Remove(i);
list.Remove(i);
Adjust();
Sync();
}
Sync-inc seems the right behavior since almost all functions from DropList do that.
PS:Mirek, could you explain if I'm wrong?
cdabbd745f1234c2751ee1f932d1dd75
[Updated on: Sat, 15 March 2008 15:28] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 14:29:39 CEST 2025
Total time taken to generate the page: 0.01025 seconds
|