|
|
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl force show scrollbars
ArrayCtrl force show scrollbars [message #30475] |
Mon, 03 January 2011 22:05  |
cbpporter
Messages: 1427 Registered: September 2007
|
Ultimate Contributor |
|
|
I am trying to use ArrayCtrl in a very Excel like style. I call HeaderObject().Absolute() before adding columns and then I set the preferred width in one step. The user is free to change the width. The problem that I am having is that the ArrayCtrl won't display the horizontal scroll bar until I manually adjust the width of a column.
Another smaller problem that I am having is that the array is slow to draw, scroll and resize columns. Any tips on speeding it up? Most cell have embedded controls and some have displays attached.
In the past I used the array inside a layout, which then was inserted into a TabCtrl. I had to write manual Layout code to place my controls, because once in the tab, all logical positions seemed to be ignored. Is there a way to use tabs and logical coordinates so that they scale based on the current size of the tab's panel?
|
|
|
|
|
|
|
Re: ArrayCtrl force show scrollbars [message #30687 is a reply to message #30672] |
Mon, 17 January 2011 10:50   |
cbpporter
Messages: 1427 Registered: September 2007
|
Ultimate Contributor |
|
|
Fantastic! Great job! In release mode it is now instant and in debug mode population of control is very fast, while scrolling seems to have not increased in speed.
Anyway, now ArrayCtrl is better than ever.
Here is a test case for the scrolling issue. Also, I find that scroll bar auto-hiding option is ignored and bars are hidden even if I don't want them to be (which is not the case).
PS: Not that this would be a personal issue or that this request makes any sense, but the NoWantFocus trick that works for Option does not work for DocEdit. Probably the same for LineEdit.
[Updated on: Mon, 17 January 2011 10:52] Report message to a moderator
|
|
|
|
|
|
|
Goto Forum:
Current Time: Tue May 13 14:04:00 CEST 2025
Total time taken to generate the page: 0.00816 seconds
|
|
|