Home » U++ Library support » Splitter » Bug: adding HScrollBar uses sbar as item
Bug: adding HScrollBar uses sbar as item [message #49740] |
Mon, 16 April 2018 16:16 |
luoganda
Messages: 205 Registered: November 2016
|
Experienced Member |
|
|
This is for v11658,
adding HScrollBar(orAny) uses scroll bar as if was an item,
not a separate frame, so scrollbar size is resizing with other items.
Scrollbar is also taken a little out off place, it's with the rest of items.
|
|
|
|
Re: Bug: adding HScrollBar uses sbar as item [message #49761 is a reply to message #49740] |
Tue, 24 April 2018 18:30 |
luoganda
Messages: 205 Registered: November 2016
|
Experienced Member |
|
|
ok, here it goes...
... i meant VScrollBar not HScrollBar, but it's probably the same for HScrollBar.
Adding VScrollBar to window is ok, while adding to Splitter is the similar as it
would be written for item, eg 'Splitter << vscrollbar'.
In src code, it probably uses(and displaces) sbFrameCtrl as normal item.
For now - a workaround is needed for this,
like some wrapper ctrl to which VScrollBar and Splitter are added.
[Updated on: Tue, 24 April 2018 18:57] Report message to a moderator
|
|
|
|
Re: Bug: adding HScrollBar uses sbar as item [message #49767 is a reply to message #49740] |
Wed, 25 April 2018 18:12 |
luoganda
Messages: 205 Registered: November 2016
|
Experienced Member |
|
|
it can't be so much like a regular widget(in point of view when using it as scrollBar,not item),
because normally when AddFrame is used to add scrollbar to some ctrl, no SizePos etc is needed for it to pos it correctly.
I meant exactly as it's written in original code that i posted.
<<I want to add VScrollBar to Splitter wia AddFrame, so that inner ctrls would be scrollable>>,
and they would be(for now) scrollable manually because of customization(automatically is probably not possible for now).
Similar effect is(could) be used with ColumnList(which already has scrollbars),
but i want to explicitly customize Splitter for this (possibly without workarounds).
Adding Splitter.AddFrame(VScrollBar) makes similar effect like posted screenshot, but with scrollbar a little out of place.
I thought this is a bug - but it would be a neat feature if scrollbars could be added to Splitter, like for TopWindow.
I don't know though, what effect is with other controls if scrollbars are added to it, eg Ctrl - probably works as in TopWindow.
[Updated on: Wed, 25 April 2018 18:19] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 19:16:23 CEST 2024
Total time taken to generate the page: 0.03360 seconds
|