I'm implementing a console window and I'm using staticText in TaharazLook.
Maybe it's by TaharazLook default that a vertical scrollbar will just be added when the StaticText contains more lines. However the scrollbar thumb size is static so it looks weird. I want to change its size based on the page size, but I can't find the Scrollbar Window (Name or ID?)
Scrollbar in StaticText.
Moderators: CEGUI MVP, CEGUI Team
-
- Just popping in
- Posts: 20
- Joined: Sat Sep 02, 2017 20:28
Scrollbar in StaticText.
Last edited by andrewfeng123 on Thu Feb 01, 2018 15:51, edited 1 time in total.
-
- Just popping in
- Posts: 20
- Joined: Sat Sep 02, 2017 20:28
Re: Scrollbar in StaticText.
Any help available?
Re: Scrollbar in StaticText.
Show us some screenshots. I dont know what you mean honestly.
CrazyEddie: "I don't like GUIs"
-
- Just popping in
- Posts: 20
- Joined: Sat Sep 02, 2017 20:28
Re: Scrollbar in StaticText.
Here we go:
Normal StaticText:
StaticText with enough lines,
How do I changed the thumb size?
Normal StaticText:
StaticText with enough lines,
How do I changed the thumb size?
Re: Scrollbar in StaticText.
Got it. Have you looked if any of the other skins have variable thumb size? E.g. windowslook, vanilla, etc.? If they dont then it looks like we lack this feature in CEGUI. I think this is something that should be added.
It would require a thumbnail that consists of three parts (fixed size one-end, stretchable center, fixed size second-end) and the calculation for the variable size you described would have to be part of the scrollbar element in C++ (either the core or the look class, not sure). Any experienced programmer should be able to integrate this feature into CEGUI. In case you are up for the task I can help you and review the PR and have it merged.
The thumbnail would need to have a new core class and new look class as well btw, so that it can dynamically scale. It should work very similar to a progressbar.
It would require a thumbnail that consists of three parts (fixed size one-end, stretchable center, fixed size second-end) and the calculation for the variable size you described would have to be part of the scrollbar element in C++ (either the core or the look class, not sure). Any experienced programmer should be able to integrate this feature into CEGUI. In case you are up for the task I can help you and review the PR and have it merged.
The thumbnail would need to have a new core class and new look class as well btw, so that it can dynamically scale. It should work very similar to a progressbar.
CrazyEddie: "I don't like GUIs"
-
- Just popping in
- Posts: 20
- Joined: Sat Sep 02, 2017 20:28
Re: Scrollbar in StaticText.
Haha I am definitely not "experienced" because I am still in high school.
But I guess there's no harm giving it a try, so I have added this to my list.
School is getting busy so it might be a while until I have time.
But I guess there's no harm giving it a try, so I have added this to my list.
School is getting busy so it might be a while until I have time.
Who is online
Users browsing this forum: Google [Bot] and 2 guests