[Solved!] Issue with Listbox and Word Wrapping

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

Icewave
Just popping in
Just popping in
Posts: 17
Joined: Fri Mar 06, 2009 01:55

[Solved!] Issue with Listbox and Word Wrapping

Postby Icewave » Thu Apr 21, 2011 14:32

See This Thread: viewtopic.php?f=10&t=5615 for the fix
Thankyou niello & thankyou Kulik :)



Hi all

Not sure if this is a bug, or just something Ive done wrong - so posting in advanced help rather then bug reports
Im having an issue with a chat system im trying to build with a custom list box item found in this thread.
This issue only arises in Release Mode, Debug mode functions fine (im using static linking if that makes any diffrence)


This issue is, after a certain amount of entry into the list box (50 to be exact) my code starts removing the items from the list box (to ensure there is always 50 and no more),
the moment this happens any additional items added to the list box (while still present in the vector) do not show up and after sending 50 more chat messages
the chat log is completely empty and the vertical scroll bar vanishes (the list box acts like there is nothing inside of it)

Code responsible:

Code: Select all

void Channel::PlayerMessage(Player* pl, std::string Message)
{
   m_Messages.push_back(pl->Fmt_Msg(Message));
   if(m_Messages.size() >= 50)
   {
      m_Messages.erase(m_Messages.begin());
   }
   if(m_ID == sGUI->G_Chat->GetChannel())
   {
                GUI_Chat* GChat = sGUI->G_Chat;
      int Count = GChat->Chat_Out->getItemCount();
      OutDebug("ListSize: %i\n", Count);

      CEGUI::FormattedListboxTextItem* itm = new CEGUI::FormattedListboxTextItem(pl->Fmt_Msg(Message), CEGUI::HTF_WORDWRAP_LEFT_ALIGNED);
      GChat->Chat_Out->addItem(itm);
      GChat->Chat_Out->ensureItemIsVisible(itm);

      if(Count >= 50)
      {
         CEGUI::FormattedListboxTextItem* Remove = static_cast<CEGUI::FormattedListboxTextItem*>(GChat->Chat_Out->getListboxItemFromIndex(0));
         GChat->Chat_Out->removeItem(Remove);
      }
   }
}


if i change the FormattedListboxTextItem to HTF_LEFT_ALIGNED, or any setting that does not involve word wrapping, the problem vanishes
the OutDebug("ListSize: %i\n", Count); call always reports 50 messages(or below) in the list box, despite what is being rendered on screen

CEGUI Log:

Code: Select all

21/04/2011 01:23:02 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
21/04/2011 01:23:02 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
21/04/2011 01:23:02 (Std)    +                          (http://www.cegui.org.uk/)                         +
21/04/2011 01:23:02 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

21/04/2011 01:23:02 (Std)    CEGUI::Logger singleton created. (0267E848)
21/04/2011 01:23:02 (Std)    
21/04/2011 01:23:02 (Std)    ********************************************************************************
21/04/2011 01:23:02 (Std)    * Important:                                                                   *
21/04/2011 01:23:02 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
21/04/2011 01:23:02 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
21/04/2011 01:23:02 (Std)    *     support being given; please do not waste our time.                       *
21/04/2011 01:23:02 (Std)    ********************************************************************************
21/04/2011 01:23:02 (Std)    ********************************************************************************
21/04/2011 01:23:02 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
21/04/2011 01:23:02 (Std)    ********************************************************************************
21/04/2011 01:23:02 (Std)    ---- Version 0.7.5 (Build: Mar 18 2011 Static Microsoft Windows MSVC++ 10.0 32 bit) ----
21/04/2011 01:23:02 (Std)    ---- Renderer module is: CEGUI::Direct3D9Renderer - Official Direct3D 9 based 2nd generation renderer module. ----
21/04/2011 01:23:02 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
21/04/2011 01:23:02 (Std)    ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
21/04/2011 01:23:02 (Std)    ---- Scripting module is: None ----
21/04/2011 01:23:02 (Std)    ********************************************************************************
21/04/2011 01:23:02 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
21/04/2011 01:23:02 (Std)    ********************************************************************************
21/04/2011 01:23:02 (Std)    
21/04/2011 01:23:02 (Std)    ---- Begining CEGUI System initialisation ----
21/04/2011 01:23:02 (Std)    CEGUI::ImagesetManager singleton created (0266E540)
21/04/2011 01:23:02 (Std)    CEGUI::FontManager singleton created. (0267FC58)
21/04/2011 01:23:02 (Std)    CEGUI::WindowFactoryManager singleton created
21/04/2011 01:23:02 (Std)    CEGUI::WindowManager singleton created (02767808)
21/04/2011 01:23:02 (Std)    CEGUI::SchemeManager singleton created. (0267FEA0)
21/04/2011 01:23:02 (Std)    CEGUI::MouseCursor singleton created. (0266DA00)
21/04/2011 01:23:02 (Std)    CEGUI::GlobalEventSet singleton created. (0276DF98)
21/04/2011 01:23:02 (Std)    CEGUI::AnimationManager singleton created (02681458)
21/04/2011 01:23:02 (Std)    CEGUI::WidgetLookManager singleton created. (026693C0)
21/04/2011 01:23:02 (Std)    CEGUI::WindowRendererManager singleton created (0276F490)
21/04/2011 01:23:02 (Std)    CEGUI::RenderEffectManager singleton created (02686540)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'DefaultWindow' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'DefaultWindow' windows added. (0276D178)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'DragContainer' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'DragContainer' windows added. (0276EAD0)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'ScrolledContainer' windows added. (02686440)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'ClippedContainer' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'ClippedContainer' windows added. (0267F668)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/Checkbox' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/Checkbox' windows added. (02687128)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (026871D0)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (02687278)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (02689320)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (026893C8)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (02689470)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (02689518)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (026895C0)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (02689680)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (02689728)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (026897D0)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (02689878)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (02689920)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (026899C8)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (02689A70)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (02689B18)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (02689BC0)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (02689C68)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (02689D10)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (02689DB8)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (02689E60)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (02689F08)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (02689FB0)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (0268A058)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (0268A100)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (0268A1A8)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (0268A250)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (0268A2F8)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (0268A3A0)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'HorizontalLayoutContainer' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'HorizontalLayoutContainer' windows added. (0268A448)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'VerticalLayoutContainer' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'VerticalLayoutContainer' windows added. (0268A4F0)
21/04/2011 01:23:02 (Std)    Created WindowFactory for 'GridLayoutContainer' windows.
21/04/2011 01:23:02 (Std)    WindowFactory for 'GridLayoutContainer' windows added. (0268A598)
21/04/2011 01:23:02 (Std)    Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
21/04/2011 01:23:02 (Std)    CEGUI::System singleton created. (0267E5D8)
21/04/2011 01:23:02 (Std)    ---- CEGUI System initialisation completed ----
21/04/2011 01:23:02 (Std)    
21/04/2011 01:23:02 (Std)    Started creation of Scheme from XML specification:
21/04/2011 01:23:02 (Std)    ---- CEGUI GUIScheme name: VanillaSkin
21/04/2011 01:23:02 (Std)    Started creation of Imageset from XML specification:
21/04/2011 01:23:02 (Std)    ---- CEGUI Imageset name: Vanilla-Images
21/04/2011 01:23:02 (Std)    ---- Source texture file: vanilla.tga in resource group: (Default)
21/04/2011 01:23:02 (Std)    ===== Falagard 'root' element: look and feel parsing begins =====
21/04/2011 01:23:02 (Std)    ===== Look and feel parsing completed =====
21/04/2011 01:23:02 (Std)    No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/Button' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/Button' added. (0268AA30)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/Default' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/Default' added. (0268A838)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/Editbox' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/Editbox' added. (0268AAD8)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/FrameWindow' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/FrameWindow' added. (0268AB80)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/ItemEntry' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/ItemEntry' added. (0268AC28)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/ListHeader' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/ListHeader' added. (0268ACD0)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/ListHeaderSegment' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/ListHeaderSegment' added. (0268AD78)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/Listbox' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/Listbox' added. (0268AE20)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/Menubar' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/Menubar' added. (0268AEC8)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/MenuItem' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/MenuItem' added. (0268AF70)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/MultiColumnList' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/MultiColumnList' added. (0268B018)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/MultiLineEditbox' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/MultiLineEditbox' added. (0268B0C0)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/PopupMenu' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/PopupMenu' added. (0268B168)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/ProgressBar' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/ProgressBar' added. (0268B210)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/ScrollablePane' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/ScrollablePane' added. (0268B2B8)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/Scrollbar' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/Scrollbar' added. (0268B360)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/Slider' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/Slider' added. (0268B408)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/Static' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/Static' added. (0268B4B0)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/StaticImage' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/StaticImage' added. (0268B558)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/StaticText' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/StaticText' added. (02698DD0)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/SystemButton' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/SystemButton' added. (02698E78)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/TabButton' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/TabButton' added. (02698F20)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/TabControl' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/TabControl' added. (02698FC8)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/Titlebar' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/Titlebar' added. (02699070)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/ToggleButton' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/ToggleButton' added. (02699118)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/Tooltip' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/Tooltip' added. (026991C0)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/ItemListbox' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/ItemListbox' added. (02699268)
21/04/2011 01:23:02 (Std)    Created WindowRendererFactory for 'Falagard/Tree' WindowRenderers.
21/04/2011 01:23:02 (Std)    WindowRendererFactory 'Falagard/Tree' added. (02699310)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'Vanilla/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' Look'N'Feel 'Vanilla/Titlebar' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'Vanilla/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'Vanilla/Button' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'Vanilla/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' Look'N'Feel 'Vanilla/FrameWindow' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'Vanilla/Editbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' Look'N'Feel 'Vanilla/Editbox' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'Vanilla/VerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'Vanilla/VerticalScrollbarThumb' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'Vanilla/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'Vanilla/VerticalScrollbar' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'Vanilla/HorizontalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'Vanilla/HorizontalScrollbarThumb' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'Vanilla/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'Vanilla/HorizontalScrollbar' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'Vanilla/StaticImage' using base type 'DefaultWindow', window renderer 'Falagard/StaticImage' Look'N'Feel 'Vanilla/StaticImage' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'Vanilla/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' Look'N'Feel 'Vanilla/StaticText' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'Vanilla/Listbox' using base type 'CEGUI/Listbox', window renderer 'Falagard/Listbox' Look'N'Feel 'Vanilla/Listbox' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'Vanilla/MultiLineEditbox' using base type 'CEGUI/MultiLineEditbox', window renderer 'Falagard/MultiLineEditbox' Look'N'Feel 'Vanilla/MultiLineEditbox' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'Vanilla/ComboDropList' using base type 'CEGUI/ComboDropList', window renderer 'Falagard/Listbox' Look'N'Feel 'Vanilla/ComboDropList' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'Vanilla/Combobox' using base type 'CEGUI/Combobox', window renderer 'Falagard/Default' Look'N'Feel 'Vanilla/Combobox' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'Vanilla/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' Look'N'Feel 'Vanilla/ProgressBar' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Started creation of Scheme from XML specification:
21/04/2011 01:23:02 (Std)    ---- CEGUI GUIScheme name: WindowsLookSkin
21/04/2011 01:23:02 (Std)    Started creation of Imageset from XML specification:
21/04/2011 01:23:02 (Std)    ---- CEGUI Imageset name: WindowsLook
21/04/2011 01:23:02 (Std)    ---- Source texture file: WindowsLook.tga in resource group: (Default)
21/04/2011 01:23:02 (Std)    ===== Falagard 'root' element: look and feel parsing begins =====
21/04/2011 01:23:02 (Std)    ===== Look and feel parsing completed =====
21/04/2011 01:23:02 (Std)    No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'WindowsLook/Button' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/Checkbox' using base type 'CEGUI/Checkbox', window renderer 'Falagard/ToggleButton' Look'N'Feel 'WindowsLook/Checkbox' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/IconButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'WindowsLook/IconButton' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/RadioButton' using base type 'CEGUI/RadioButton', window renderer 'Falagard/ToggleButton' Look'N'Feel 'WindowsLook/RadioButton' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' Look'N'Feel 'WindowsLook/FrameWindow' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' Look'N'Feel 'WindowsLook/Titlebar' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/SystemButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'WindowsLook/SystemButton' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/Editbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' Look'N'Feel 'WindowsLook/Editbox' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/MultiLineEditbox' using base type 'CEGUI/MultiLineEditbox', window renderer 'Falagard/MultiLineEditbox' Look'N'Feel 'WindowsLook/MultiLineEditbox' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/Menubar' using base type 'CEGUI/Menubar', window renderer 'Falagard/Menubar' Look'N'Feel 'WindowsLook/Menubar' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/PopupMenu' using base type 'CEGUI/PopupMenu', window renderer 'Falagard/PopupMenu' Look'N'Feel 'WindowsLook/PopupMenu' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/MenuItem' using base type 'CEGUI/MenuItem', window renderer 'Falagard/MenuItem' Look'N'Feel 'WindowsLook/MenuItem' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' Look'N'Feel 'WindowsLook/ProgressBar' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'WindowsLook/VerticalScrollbar' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'WindowsLook/HorizontalScrollbar' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/VerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'WindowsLook/VerticalScrollbarThumb' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/HorizontalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'WindowsLook/HorizontalScrollbarThumb' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/TabButton' using base type 'CEGUI/TabButton', window renderer 'Falagard/TabButton' Look'N'Feel 'WindowsLook/TabButton' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/TabControl' using base type 'CEGUI/TabControl', window renderer 'Falagard/TabControl' Look'N'Feel 'WindowsLook/TabControl' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/TabContentPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' Look'N'Feel 'WindowsLook/TabContentPane' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/TabButtonPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' Look'N'Feel 'WindowsLook/TabButtonPane' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/ComboDropList' using base type 'CEGUI/ComboDropList', window renderer 'Falagard/Listbox' Look'N'Feel 'WindowsLook/ComboDropList' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/Combobox' using base type 'CEGUI/Combobox', window renderer 'Falagard/Default' Look'N'Feel 'WindowsLook/Combobox' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/Listbox' using base type 'CEGUI/Listbox', window renderer 'Falagard/Listbox' Look'N'Feel 'WindowsLook/Listbox' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/ListHeader' using base type 'CEGUI/ListHeader', window renderer 'Falagard/ListHeader' Look'N'Feel 'WindowsLook/ListHeader' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/ListHeaderSegment' using base type 'CEGUI/ListHeaderSegment', window renderer 'Falagard/ListHeaderSegment' Look'N'Feel 'WindowsLook/ListHeaderSegment' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/MultiColumnList' using base type 'CEGUI/MultiColumnList', window renderer 'Falagard/MultiColumnList' Look'N'Feel 'WindowsLook/MultiColumnList' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/Slider' using base type 'CEGUI/Slider', window renderer 'Falagard/Slider' Look'N'Feel 'WindowsLook/Slider' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/SliderThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'WindowsLook/SliderThumb' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/ScrollablePane' using base type 'CEGUI/ScrollablePane', window renderer 'Falagard/ScrollablePane' Look'N'Feel 'WindowsLook/ScrollablePane' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/Spinner' using base type 'CEGUI/Spinner', window renderer 'Falagard/Default' Look'N'Feel 'WindowsLook/Spinner' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/Tooltip' using base type 'CEGUI/Tooltip', window renderer 'Falagard/Tooltip' Look'N'Feel 'WindowsLook/Tooltip' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/Static' using base type 'DefaultWindow', window renderer 'Falagard/Static' Look'N'Feel 'WindowsLook/Static' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/StaticImage' using base type 'DefaultWindow', window renderer 'Falagard/StaticImage' Look'N'Feel 'WindowsLook/StaticImage' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' Look'N'Feel 'WindowsLook/StaticText' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/ItemListbox' using base type 'CEGUI/ItemListbox', window renderer 'Falagard/ItemListbox' Look'N'Feel 'WindowsLook/ItemListbox' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/ListboxItem' using base type 'CEGUI/ItemEntry', window renderer 'Falagard/ItemEntry' Look'N'Feel 'WindowsLook/ListboxItem' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Creating falagard mapping for type 'WindowsLook/GroupBox' using base type 'CEGUI/GroupBox', window renderer 'Falagard/Default' Look'N'Feel 'WindowsLook/GroupBox' and RenderEffect ''. (0018D40C)
21/04/2011 01:23:02 (Std)    Started creation of Font from XML specification:
21/04/2011 01:23:02 (Std)    ---- CEGUI font name: times-12
21/04/2011 01:23:02 (Std)    ----       Font type: FreeType
21/04/2011 01:23:02 (Std)    ----     Source file: times.ttf in resource group: (Default)
21/04/2011 01:23:02 (Std)    ---- Real point size: 6
21/04/2011 01:23:02 (Std)    Started creation of Font from XML specification:
21/04/2011 01:23:02 (Std)    ---- CEGUI font name: DejaVuSans-10
21/04/2011 01:23:02 (Std)    ----       Font type: FreeType
21/04/2011 01:23:02 (Std)    ----     Source file: DejaVuSans.ttf in resource group: (Default)
21/04/2011 01:23:02 (Std)    ---- Real point size: 10
21/04/2011 01:23:02 (Std)    Attempting to create Imageset 'times-12_auto_glyph_images_ ' with texture only.
21/04/2011 01:23:02 (Error)   Attempt to set value of '49'  to read only property 'HorzExtent' on window: STATIC_USERNAME
21/04/2011 01:23:02 (Error)   Attempt to set value of '11.6106'  to read only property 'VertExtent' on window: STATIC_USERNAME
21/04/2011 01:23:02 (Error)   Attempt to set value of '42'  to read only property 'HorzExtent' on window: STATIC_PASS
21/04/2011 01:23:02 (Error)   Attempt to set value of '11.6106'  to read only property 'VertExtent' on window: STATIC_PASS
21/04/2011 01:23:02 (Error)   Attempt to set value of '61'  to read only property 'HorzExtent' on window: STATIC_CONF
21/04/2011 01:23:02 (Error)   Attempt to set value of '11.6106'  to read only property 'VertExtent' on window: STATIC_CONF
21/04/2011 01:23:02 (Error)   Attempt to set value of '29'  to read only property 'HorzExtent' on window: STATIC_EMAIL
21/04/2011 01:23:02 (Error)   Attempt to set value of '11.6106'  to read only property 'VertExtent' on window: STATIC_EMAIL
21/04/2011 01:23:02 (Error)   Attempt to set value of '114'  to read only property 'HorzExtent' on window: Status_Readout
21/04/2011 01:23:02 (Error)   Attempt to set value of '11.6106'  to read only property 'VertExtent' on window: Status_Readout
21/04/2011 01:23:02 (Std)    ---- Successfully completed loading of GUI layout from 'XTLChat_Main.layout' ----
21/04/2011 01:23:11 (Std)    Attempting to create Imageset 'DejaVuSans-10_auto_glyph_images_ ' with texture only.

Ive searched the forums and failed to find anything to help solve this issue
Any help would be appreciated
Last edited by Icewave on Fri May 27, 2011 15:58, edited 1 time in total.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: [Possible Bug]Issue with Listbox and Word Wrapping

Postby Kulik » Sun May 01, 2011 17:26

Hmm, I tried some tests myself but couldn't reproduce this. Could you post a standalone source that I can compile locally against 0.7.5 so that I can test this?

Icewave
Just popping in
Just popping in
Posts: 17
Joined: Fri Mar 06, 2009 01:55

Re: [Possible Bug]Issue with Listbox and Word Wrapping

Postby Icewave » Mon May 02, 2011 08:24

Kulik wrote:Hmm, I tried some tests myself but couldn't reproduce this. Could you post a standalone source that I can compile locally against 0.7.5 so that I can test this?


Unfortunately my code is wrapped up in a DLL and injected into another game called X3: Terran Conflict,
Ive been trying for the past few days to create a standalone version but it hasn't been going well.

I have tried compiling against both 0.7.5 and 0.7.4, both versions caused the same problem.


Just as a test i tried recompiling CEGUI in release mode with all optimizations disabled - unfortunately that didn't change the outcome.
Perhaps this issue is directly related to the manner in witch the library is being used? through a hijacked direct3d9device and a DLL?

Icewave
Just popping in
Just popping in
Posts: 17
Joined: Fri Mar 06, 2009 01:55

Re: [Possible Bug]Issue with Listbox and Word Wrapping

Postby Icewave » Fri May 27, 2011 11:58

New Information:

Changing this code within FormattedListboxTextItem::draw(...)

Code: Select all

        if (area_sz != d_formattingAreaSize)
        {
            d_formattedRenderedString->format(area_sz);
            d_formattingAreaSize = area_sz;
        }

to

Code: Select all

        //if (area_sz != d_formattingAreaSize)
        //{
            d_formattedRenderedString->format(area_sz);
            d_formattingAreaSize = area_sz;
        //}


Causes the list box to render correctly under both Debug and Release mode.
Although, im not sure of the side effects this might have?... Can i safely leave the code in this state?
I have also discovered that while using the code from box 1, Resizing the window with the list box in it, or moving the sliders will allow 1 additional message to appear as well as all the messages that have previously gone invisible, before glitching again

Another thing i discovered is that it is always 18'th message after hitting the max cap (eg 50) that the glitch occurs... the significance of witch i cant figure out

Sorry Kulik, i did try to get a stand alone version running but it rely's too heavily on being inside an injected DLL and also connecting to a server.
Stripping these parts out stopped the code form working at all

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: [Possible Bug]Issue with Listbox and Word Wrapping

Postby Kulik » Fri May 27, 2011 15:21

This could potentially be a bug, you are basically reformatting each draw, which is wasteful.

However it is important to get an isolated test case for this, otherwise it will be insanely difficult to track down.

I also suggest you to create a mantis ticket for it, otherwise it might get forgotten.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: [Possible Bug]Issue with Listbox and Word Wrapping

Postby Kulik » Fri May 27, 2011 15:23

Heh I didn't realise this but this was discussed there a few days back.

Here is a thread with a fix:
viewtopic.php?f=10&t=5615

Icewave
Just popping in
Just popping in
Posts: 17
Joined: Fri Mar 06, 2009 01:55

Re: [Possible Bug]Issue with Listbox and Word Wrapping

Postby Icewave » Fri May 27, 2011 15:52

EDIT:
Kulik wrote:Heh I didn't realise this but this was discussed there a few days back.

Here is a thread with a fix:
viewtopic.php?f=10&t=5615


All Fixed, Thanks a bunch Kulik :) .. And niello :)

What a nasty little bug, so glad that nightmare is over haha


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 11 guests