Bug #17075 2010-04-13 01:38
riban
Can not select tools if more than visible
If I add tools to a dialog (e.g. wxTimer) until there are too many to display in the pane at the top, scroll bars appear. These obscure part of the tools (undesirable) but also, I can not select the last tools. It seems the application is counting the visible controls, not all controls.
Example:
Add 20 wxTimer controls
Can only see 18 controls
Scroll to show last control
Attempt to select last control
wxTimer 18 is selected.
- Category
- Plugin::wxSmith
- Group
- Status
- Open
- Close date
- Assigned to
History
This can be fixed by changing wxstoolspace.cpp in function FindEntry by replacing:
int ToolNumber = ScrolledX / (ExtraBorderSize + IconSize);
int InToolPos = ScrolledX % ((ExtraBorderSize + IconSize);
with:
int ScrolledX, ScrolledY
CalcUnscrolledPosition(PosX, PosY, ScrolledX, ScrolledY);
int ToolNumber = ScrolledX / (ExtraBorderSize + IconSize);
int InToolPos = ScrolledX % ((ExtraBorderSize + IconSize);