Developer forums (C::B DEVELOPMENT STRICTLY!) > Compiler Framework Redesign

rev 7569 add wxLB_MULTIPLE feature, but some one is complaining

<< < (2/3) > >>

ollydbg:

--- Quote from: MortenMacFly on July 05, 2012, 12:09:28 pm ---...on the other hand: What if you simply replace wxLB_MULTIPLE with wxLB_EXTENDED in compiler_options.xrc? If the functionality remains, that would be an option.

--- End quote ---
I just test it, and it works OK!

http://docs.wxwidgets.org/2.8/wx_wxlistbox.html

It looks like:

--- Quote ---Window styles

wxLB_SINGLE    Single-selection list.
wxLB_MULTIPLE    Multiple-selection list: the user can toggle multiple items on and off.
wxLB_EXTENDED    Extended-selection list: the user can select multiple items using the SHIFT key and the mouse or special key combinations.
wxLB_HSCROLL    Create horizontal scrollbar if contents are too wide (Windows only).
wxLB_ALWAYS_SB    Always show a vertical scrollbar.
wxLB_NEEDED_SB    Only create a vertical scrollbar if needed.
wxLB_SORT    The listbox contents are sorted in alphabetical order.

Note that wxLB_SINGLE, wxLB_MULTIPLE and wxLB_EXTENDED styles are mutually exclusive and you can specify at most one of them (single selection is the default).
--- End quote ---

EDIT:
http://docs.wxwidgets.org/trunk/classwx_list_box.html

--- Quote ---wxLB_MULTIPLE:
Multiple-selection list: the user can toggle multiple items on and off. This is the same as wxLB_EXTENDED in wxGTK2 port.
wxLB_EXTENDED:
Extended-selection list: the user can extend the selection by using SHIFT or CTRL keys together with the cursor movement keys or the mouse.

--- End quote ---
So, under linux, they are the same, but under windows, we should use wxLB_EXTENDED.

MortenMacFly:

--- Quote from: ollydbg on July 05, 2012, 04:31:40 pm ---
--- Quote from: MortenMacFly on July 05, 2012, 12:09:28 pm ---...on the other hand: What if you simply replace wxLB_MULTIPLE with wxLB_EXTENDED in compiler_options.xrc? If the functionality remains, that would be an option.

--- End quote ---
I just test it, and it works OK!

--- End quote ---
Then, go ahead and commit.

BTW: You might want to to check the other UI resources for the same issue, too.

ollydbg:
Done in rev 8084, I searched all the C::B source/xrc, so I think I have fixed all such issue.

Kalith:
Great ! Then I think you can close this bug report of mine :
https://developer.berlios.de/bugs/?func=detailbug&bug_id=18613&group_id=5358

ollydbg:

--- Quote from: Kalith on July 08, 2012, 01:39:11 am ---Great ! Then I think you can close this bug report of mine :
https://developer.berlios.de/bugs/?func=detailbug&bug_id=18613&group_id=5358

--- End quote ---
Done, thanks.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version