MultiLineEditbox and scrollbar(s)

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

JanBenes
Just popping in
Just popping in
Posts: 4
Joined: Sun Oct 18, 2009 19:36

MultiLineEditbox and scrollbar(s)

Postby JanBenes » Wed Apr 21, 2010 15:27

Hi,
I'm trying to use a MultiLineEditBox to display some read-only text. Now the problem I have is the following

Image

in other words, once the text is long enough to make the vertical scrollbar appear, it takes away some place from the width of the widget and the horizontal scrollbar appears :shock: . Now, that obviously is not the kind of behaviour I'd expect. The widget's xml is:

Code: Select all

<Window Type="TaharezLook/MultiLineEditbox" Name="SquadronInfo/PilotInfo" >
          <Property Name="VertFormatting" Value="TopAligned" />
          <Property Name="HorzFormatting" Value="WordWrapJustified" />
          <Property Name="ReadOnly" Value="true" />
          <Property Name="UnifiedAreaRect" Value="{{0.330664,0},{0.471615,0},{0.978125,0},{0.665626,0}}" />
</Window>


I've been able to workaround this by forcing the vertical scrollbar to be displayed, but wonder if there's a solution that wouldn't force me to do this. Thanks! :D

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: MultiLineEditbox and scrollbar(s)

Postby Jamarr » Thu Apr 22, 2010 00:46

It is important that new users read and understand the Forum Guidelines. In particular, it is important that you post the your CEGUI.log file so that others can determine the CEGUI version, environment, modules, etc. so that we can better assist you.

Now, unless I am mistaken, this sounds like a bug from CEGUI v0.6.x. Doing a quick search for "multilineeditbox" and "scrollbar" would have turned up this thread. So it seems this is a known issue, although I cannot say if CE ever got around to fixing this; I want to say that he did, but I am not certain. So you will have to wait until he responds to this thread.

Like you discovered, it seems that manually showing the scrollbar prior to updating the text is somewhat of a workaround for this.

*edit: fixed the thread link
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: MultiLineEditbox and scrollbar(s)

Postby CrazyEddie » Thu Apr 22, 2010 08:43

I cannot say if CE ever got around to fixing this

I'm not sure if I did either :) I have some recollection as to such an issue, though I think maybe I fixed a similar thing in relation to the StaticText rather than the editbox. I'll have to test it and see :roll:

CE.

JanBenes
Just popping in
Just popping in
Posts: 4
Joined: Sun Oct 18, 2009 19:36

Re: MultiLineEditbox and scrollbar(s)

Postby JanBenes » Fri Apr 23, 2010 16:24

It is important that new users read and understand the Forum Guidelines. In particular, it is important that you post the your CEGUI.log file so that others can determine the CEGUI version, environment, modules, etc. so that we can better assist you.

Ah, sorry, my bad.. and even without reading, the idea of informing you about the version really should have occured to me :oops:

Code: Select all

23/04/2010 18:00:18 (Std)    ********************************************************************************
23/04/2010 18:00:18 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
23/04/2010 18:00:18 (Std)    ********************************************************************************
23/04/2010 18:00:18 (Std)    ---- Version 0.7.1 (Build: Mar 31 2010 Debug Microsoft Windows MSVC++ 9.0 32 bit) ----
23/04/2010 18:00:18 (Std)    ---- Renderer module is: CEGUI::OgreRenderer - Official OGRE based 2nd generation renderer module. ----
23/04/2010 18:00:18 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
23/04/2010 18:00:18 (Std)    ---- Image Codec module is: OgreImageCodec - Integrated ImageCodec using the Ogre engine. ----
23/04/2010 18:00:18 (Std)    ---- Scripting module is: None ----
23/04/2010 18:00:18 (Std)    ********************************************************************************
23/04/2010 18:00:18 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
23/04/2010 18:00:18 (Std)    ********************************************************************************


Doing a quick search for "multilineeditbox" and "scrollbar" would have turned up this thread.

I admit I didn't search for it before; the link you gave is to the rules though, and I can't say I could find anything relevant using the keywords you suggested - not that it matters anymore

I'm not sure if I did either :) I have some recollection as to such an issue, though I think maybe I fixed a similar thing in relation to the StaticText rather than the editbox. I'll have to test it and see :roll:

Sincei t's 0.7.1, I'd guess it hasn't been fixed :)

thank you both for the effort and time! (For me, this is closed, as we probably won't be updating to a new version of CEGUI before the project I work on finishes)

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: MultiLineEditbox and scrollbar(s)

Postby CrazyEddie » Mon Apr 26, 2010 09:05

Just to conclude; I have fixed this issue in both the v0-6 and v0-7 branches of SVN.

CE.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 8 guests