Scrollbars on StaticText
Moderators: CEGUI MVP, CEGUI Team
- spannerman
- Home away from home
- Posts: 330
- Joined: Wed Jan 12, 2005 12:06
Scrollbars on StaticText
Oops, that was me
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Scrollbars on StaticText
Yes, only the text
The scrollbars can be accessed via their name, which I don't remember at the moment It's in the code <window name>__auto_ something or other (I'm part way through reinstalling my dev system, and don't have access to anything on the machine I'm on at the moment. I should be back in business by the weekend.
To make use of the scrollbar you need to get the scrollbar position and offset your rendering by the negative of that amount.
I might 'upgrade' the StaticText once I have the scrollable pane widget done to do all this automaticaly...
CE.
The scrollbars can be accessed via their name, which I don't remember at the moment It's in the code <window name>__auto_ something or other (I'm part way through reinstalling my dev system, and don't have access to anything on the machine I'm on at the moment. I should be back in business by the weekend.
To make use of the scrollbar you need to get the scrollbar position and offset your rendering by the negative of that amount.
I might 'upgrade' the StaticText once I have the scrollable pane widget done to do all this automaticaly...
CE.
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Scrollbars on StaticText
Hi there
The WindowEvetArgs::window field for DeactivatedEvent actually will point to the window that has become active rather than the one that has been deactivated. Thinking about it just now, this was a pretty stupid idea On top of this, there was a bug in the code that nearly always set that field to NULL, so this is probably where your crash is coming from (this problem was fixed recently). The fact that the window you get a pointer to is the "wrong" one may be changed, though I'm not sure if anyone's using it how it is (I wouldn't have thought so, it's not very useful like that). What I might do is add another field to the WindowEventArgs and give you both window pointers.
Scrollable pane is, as you guessed, probably a way off At the moment I am desperately trying to get the beta 1 release done, though am also struggling with a complete lack of enthusiasm. Don't get me wrong here though, I'm not about to abandon the project or anything, I'm just finding it very hard at the moment to get anything done at all.
A decent scrollable pane will definately be 'fun' to implement due to some of the issues you've just described There's a couple of ways I may go about it, though I have not made any decisions yet. The main thing is allowing the user to specify coordinates and sizes in a way that is logical given the visual representation, while internally, things are handled completely differently due to the dynamic nature of the scrollable area...
I am currently located in Essex.
CE.
The WindowEvetArgs::window field for DeactivatedEvent actually will point to the window that has become active rather than the one that has been deactivated. Thinking about it just now, this was a pretty stupid idea On top of this, there was a bug in the code that nearly always set that field to NULL, so this is probably where your crash is coming from (this problem was fixed recently). The fact that the window you get a pointer to is the "wrong" one may be changed, though I'm not sure if anyone's using it how it is (I wouldn't have thought so, it's not very useful like that). What I might do is add another field to the WindowEventArgs and give you both window pointers.
Scrollable pane is, as you guessed, probably a way off At the moment I am desperately trying to get the beta 1 release done, though am also struggling with a complete lack of enthusiasm. Don't get me wrong here though, I'm not about to abandon the project or anything, I'm just finding it very hard at the moment to get anything done at all.
A decent scrollable pane will definately be 'fun' to implement due to some of the issues you've just described There's a couple of ways I may go about it, though I have not made any decisions yet. The main thing is allowing the user to specify coordinates and sizes in a way that is logical given the visual representation, while internally, things are handled completely differently due to the dynamic nature of the scrollable area...
I am currently located in Essex.
CE.
- spannerman
- Home away from home
- Posts: 330
- Joined: Wed Jan 12, 2005 12:06
Scrollbars on StaticText
Hey,
Ah, that’s why it crashes. Fair enough.
"What I might do is add another field to the WindowEventArgs and give you both window pointers."
That sounds good. Or at the very least just the window that triggered the event, I would have thought, for consistency. Anyway, like I say it's not a major problem, people can just create unique event listening methods for each control to know what triggered them.
About the scrollable pane, hehe, yeah man I can imagine that one might give some grief. Then again, you know this stuff like the back of your hand, you’ll do it! I look forward to using it when it's released.
Sorry to hear that you're lacking enthusiasm at the moment...it happens to the best of us, no matter what we may be doing. Stick in there man, but don't burn yourself out! If I could help you with the coding, I would, but I just don't have the experience or skill. I have tried, trust me...I dove into the ceguimk2 code when trying to create a tab control. Waay to advanced for me I’m afraid.
[pep talk]
If it helps, just think of all the useless sods out there like me who are benefiting from your GUI. I know these users don't give back any where near what you put in, put don't forget your work is seriously appreciated.
And just think how proud you'll be when this is all done! How many people are going to use CEGUI? Tons of them...OGRE itself has many users, and your GUI's going to be part of it!
[/pep talk]
In a way, forums like these are bad for the core developers, like you. People really only ever come here to ask a question, or report a bug. So most of the feedback you get from all these users concerning all your hard work is generally depressing bug reports and a frustrating barrage of questioning.
Here's what I reckon should happen: before people are allowed to post a message, they have to say something congratulatory or just generally positive. But not too much praise, otherwise you'll get a big head and start charging people to use your GUI :p
Essex, eh? For some reason I had you down as a Northerner (thats not an insult btw, Im a Northerner originally). I live in Hampshire at the moment, but just in case Im ever over Essex way I'll buy you a pint. I should be able to recognise you, theres not many crazy blokes answering to the name of Eddy around these days ya know.
Ah, that’s why it crashes. Fair enough.
"What I might do is add another field to the WindowEventArgs and give you both window pointers."
That sounds good. Or at the very least just the window that triggered the event, I would have thought, for consistency. Anyway, like I say it's not a major problem, people can just create unique event listening methods for each control to know what triggered them.
About the scrollable pane, hehe, yeah man I can imagine that one might give some grief. Then again, you know this stuff like the back of your hand, you’ll do it! I look forward to using it when it's released.
Sorry to hear that you're lacking enthusiasm at the moment...it happens to the best of us, no matter what we may be doing. Stick in there man, but don't burn yourself out! If I could help you with the coding, I would, but I just don't have the experience or skill. I have tried, trust me...I dove into the ceguimk2 code when trying to create a tab control. Waay to advanced for me I’m afraid.
[pep talk]
If it helps, just think of all the useless sods out there like me who are benefiting from your GUI. I know these users don't give back any where near what you put in, put don't forget your work is seriously appreciated.
And just think how proud you'll be when this is all done! How many people are going to use CEGUI? Tons of them...OGRE itself has many users, and your GUI's going to be part of it!
[/pep talk]
In a way, forums like these are bad for the core developers, like you. People really only ever come here to ask a question, or report a bug. So most of the feedback you get from all these users concerning all your hard work is generally depressing bug reports and a frustrating barrage of questioning.
Here's what I reckon should happen: before people are allowed to post a message, they have to say something congratulatory or just generally positive. But not too much praise, otherwise you'll get a big head and start charging people to use your GUI :p
Essex, eh? For some reason I had you down as a Northerner (thats not an insult btw, Im a Northerner originally). I live in Hampshire at the moment, but just in case Im ever over Essex way I'll buy you a pint. I should be able to recognise you, theres not many crazy blokes answering to the name of Eddy around these days ya know.
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Scrollbars on StaticText
Sorry to hear that you're lacking enthusiasm at the moment...it happens to the best of us, no matter what we may be doing. Stick in there man, but don't burn yourself out! If I could help you with the coding, I would, but I just don't have the experience or skill. I have tried, trust me...I dove into the ceguimk2 code when trying to create a tab control. Waay to advanced for me I’m afraid.
[pep talk]
If it helps, just think of all the useless sods out there like me who are benefiting from your GUI. I know these users don't give back any where near what you put in, put don't forget your work is seriously appreciated.
And just think how proud you'll be when this is all done! How many people are going to use CEGUI? Tons of them...OGRE itself has many users, and your GUI's going to be part of it!
[/pep talk]
Yeah, the burst of enthusiasm I got from the whole Ogre thing is what has kept me going until now really. Since I reached the 'middle ground' of the project where there's not so much exciting stuff going on, added to the fact I've been doing this for over a year in one form or another so in many ways I get sick of Gui development However, it's not the first time I've been in this position, so I know that my interest will reawaken, and the project will be better for a new burst of inspiration
In a way, forums like these are bad for the core developers, like you. People really only ever come here to ask a question, or report a bug. So most of the feedback you get from all these users concerning all your hard work is generally depressing bug reports and a frustrating barrage of questioning.
Here's what I reckon should happen: before people are allowed to post a message, they have to say something congratulatory or just generally positive. But not too much praise, otherwise you'll get a big head and start charging people to use your GUI :p
This is definately true I'm not moaning about it, and I have definately had a lot of great feeback, everyone loves the system, and so on... Though it is very easy to get bogged down in all the support questions, problems, and so on. But having said this, support is in many ways the most important part of the project, so I try to keep my smiley face on when I do reply sessions here.
Essex, eh? For some reason I had you down as a Northerner (thats not an insult btw, Im a Northerner originally). I live in Hampshire at the moment, but just in case Im ever over Essex way I'll buy you a pint. I should be able to recognise you, theres not many crazy blokes answering to the name of Eddy around these days ya know.
Yeah, just ask anyone where Crazy Eddie lives, you'll get directed right here
CE.
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 1 guest