for some reason I see issues attaching the screenshots here. But yes may be you are right where you say that bounds are modified during implementation because I had to set Autosize property for the AttrText to true. Because if i don't set it to true, the text does not scroll anymore. I am sure I am missing something. I have a code snippet for scrolling part at the end and i am somehow able to attach the links for screenshots. I hope it helps.
The first link shows how it should look and i want center Attrtext box to scroll through a knob. Here Autosize property= false and it does not scroll if this property is false.
https://ask.embedded-wizard.de/?qa=blob&qa_blobid=2503830370693003423
The second link shows how it looks when i try to implement scrolling and for scrolling i had to set the Autosize property=true. Scrolling works fine but it overlaps everything under it.
https://ask.embedded-wizard.de/?qa=blob&qa_blobid=1080660307408782353
// Code for scrolling down
//scroll_offset is set to zero initially
// MainStatusInfoCenter is the AttrText that needs to be scrolled
if (scroll_offset<-MainStatusInfoCenter.Bounds.h+(200-MainStatusInfoCenter.Bounds.y1))
return;
scroll_offset=scroll_offset-20;
MainStatusInfoCenter.ScrollOffset=point(0,scroll_offset);
InvalidateViewState();
//Code for Scrolling up
if (scroll_offset==0)
return;
scroll_offset=scroll_offset+20;
MainStatusInfoCenter.ScrollOffset=point(0,scroll_offset);
InvalidateViewState();
Please Let me know if i am still unclear i will try providing more details.
Best Regards
Mariam Sohail