Thanks for your answer, Texus.
Sorry, i was not clear enough and used "container" to be more generic, but parent of my scrollbar is actually the child window, there is no other container. The code i submit is not the exact paste of what is in my project.
Not sure i'm happy or not that this is a bug, but at least, i now know that i was trying to do the right thing. What i want to do is Having the scrollbar on the inner right of the child window, fitting the whole height of it.
i used bindHeight in order to make the scrollbar fit the height of the window, wich worked great:
channels is the name of my childwindow
and bindRight to set the scrollbar inner right of the window, using an offset that is the whidth of the scrollbar (getsize did not work and would not compile, i had to use the numerical value).
this is the part with strange behaviour, as the scrollbar is int the good position when creating the childwindow but doing weird stuff when moving the window, like it was not using the same coords than the window itself.
this is working great and fixed my issue.
Also, Bindright seems to want to bind the left side of the scrollbar on the right side of the window, wich position it out the window , i think that's what you're talking about with bindInnerWidth, would'nt bindRight just want to stick right side of the widget on left side of the childwindow ?
Many thanks for your fast answer, i can continue building my interface now.
regards,
RLF
Sorry, i was not clear enough and used "container" to be more generic, but parent of my scrollbar is actually the child window, there is no other container. The code i submit is not the exact paste of what is in my project.
Not sure i'm happy or not that this is a bug, but at least, i now know that i was trying to do the right thing. What i want to do is Having the scrollbar on the inner right of the child window, fitting the whole height of it.
i used bindHeight in order to make the scrollbar fit the height of the window, wich worked great:
Code (cpp) Select
scrollbar->setSize({10, bindHeight(channels)});
channels is the name of my childwindow
and bindRight to set the scrollbar inner right of the window, using an offset that is the whidth of the scrollbar (getsize did not work and would not compile, i had to use the numerical value).
Code (cpp) Select
scrollbar->setPosition({bindRight(channels) - 10,0});
this is the part with strange behaviour, as the scrollbar is int the good position when creating the childwindow but doing weird stuff when moving the window, like it was not using the same coords than the window itself.
Code (cpp) Select
scrollbar->setPosition({"100% - width", 0})
this is working great and fixed my issue.
Also, Bindright seems to want to bind the left side of the scrollbar on the right side of the window, wich position it out the window , i think that's what you're talking about with bindInnerWidth, would'nt bindRight just want to stick right side of the widget on left side of the childwindow ?
Many thanks for your fast answer, i can continue building my interface now.
regards,
RLF