Page 1 of 1

MultiLineEditbox and scrollbar(s)

Posted: Wed Apr 21, 2010 15:27
by JanBenes
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

Re: MultiLineEditbox and scrollbar(s)

Posted: Thu Apr 22, 2010 00:46
by Jamarr
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

Re: MultiLineEditbox and scrollbar(s)

Posted: Thu Apr 22, 2010 08:43
by CrazyEddie
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.

Re: MultiLineEditbox and scrollbar(s)

Posted: Fri Apr 23, 2010 16:24
by JanBenes
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)

Re: MultiLineEditbox and scrollbar(s)

Posted: Mon Apr 26, 2010 09:05
by CrazyEddie
Just to conclude; I have fixed this issue in both the v0-6 and v0-7 branches of SVN.

CE.