Page 1 of 2

Odd return value getHorizontalScrollPosition

Posted: Tue May 03, 2011 02:49
by cCj
Hi
I dont know if im doing something wrong but I put scrollctrl inside a defaultWin/ctrl, and when I scroll to max the getHorizontalScrollPosition() returns 0.35 !
anyideas whats wrong? is this a bug?

CEGUI Log:

Code: Select all


03/05/2011 05:45:24 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
03/05/2011 05:45:24 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
03/05/2011 05:45:24 (Std)    +                          (http://www.cegui.org.uk/)                         +
03/05/2011 05:45:24 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

03/05/2011 05:45:24 (Std)    CEGUI::Logger singleton created. (0085A788)
03/05/2011 05:45:24 (Std)    
03/05/2011 05:45:24 (Std)    ********************************************************************************
03/05/2011 05:45:24 (Std)    * Important:                                                                   *
03/05/2011 05:45:24 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
03/05/2011 05:45:24 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
03/05/2011 05:45:24 (Std)    *     support being given; please do not waste our time.                       *
03/05/2011 05:45:24 (Std)    ********************************************************************************
03/05/2011 05:45:24 (Std)    ********************************************************************************
03/05/2011 05:45:24 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
03/05/2011 05:45:24 (Std)    ********************************************************************************
03/05/2011 05:45:24 (Std)    ---- Version 0.7.4 (Build: Oct 11 2010 Debug Microsoft Windows MSVC++ 10.0 32 bit) ----
03/05/2011 05:45:24 (Std)    ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based 2nd generation renderer module.  TextureTarget support enabled via FBO extension. ----
03/05/2011 05:45:24 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
03/05/2011 05:45:24 (Std)    ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
03/05/2011 05:45:24 (Std)    ---- Scripting module is: None ----
03/05/2011 05:45:24 (Std)    ********************************************************************************
03/05/2011 05:45:24 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
03/05/2011 05:45:24 (Std)    ********************************************************************************
03/05/2011 05:45:24 (Std)    
03/05/2011 05:45:24 (Std)    ---- Begining CEGUI System initialisation ----
03/05/2011 05:45:24 (Std)    CEGUI::ImagesetManager singleton created (008787F8)
03/05/2011 05:45:24 (Std)    CEGUI::FontManager singleton created. (00878AD0)
03/05/2011 05:45:24 (Std)    CEGUI::WindowFactoryManager singleton created
03/05/2011 05:45:24 (Std)    CEGUI::WindowManager singleton created (00842CB8)
03/05/2011 05:45:24 (Std)    CEGUI::SchemeManager singleton created. (00855620)
03/05/2011 05:45:24 (Std)    CEGUI::MouseCursor singleton created. (00855548)
03/05/2011 05:45:24 (Std)    CEGUI::GlobalEventSet singleton created. (00855BF0)
03/05/2011 05:45:24 (Std)    CEGUI::AnimationManager singleton created (008804B0)
03/05/2011 05:45:24 (Std)    CEGUI::WidgetLookManager singleton created. (008858D0)
03/05/2011 05:45:24 (Std)    CEGUI::WindowRendererManager singleton created (008851B0)
03/05/2011 05:45:24 (Std)    CEGUI::RenderEffectManager singleton created (00885690)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'DefaultWindow' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'DefaultWindow' windows added. (0084F2E8)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'DragContainer' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'DragContainer' windows added. (0084F3C8)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'ScrolledContainer' windows added. (0084F588)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'ClippedContainer' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'ClippedContainer' windows added. (0084F790)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/Checkbox' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/Checkbox' windows added. (0084F9A0)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (00883350)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (00883510)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (008836D0)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (00883890)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (00883A50)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (0084FB60)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (00887758)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (00887E28)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (00888088)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (00887AA0)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (0085E008)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (00887D48)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (0085E1C8)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (0085E388)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (0085E548)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (00883C10)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (0085E8A0)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (0085EA60)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (00877390)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (00877550)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (00877710)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (008778D0)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (00877A90)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (00877C50)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (00877EF8)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (00839028)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (008391E8)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (008393A8)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'HorizontalLayoutContainer' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'HorizontalLayoutContainer' windows added. (00839568)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'VerticalLayoutContainer' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'VerticalLayoutContainer' windows added. (008397F8)
03/05/2011 05:45:24 (Std)    Created WindowFactory for 'GridLayoutContainer' windows.
03/05/2011 05:45:24 (Std)    WindowFactory for 'GridLayoutContainer' windows added. (008399B8)
03/05/2011 05:45:24 (Std)    Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
03/05/2011 05:45:24 (Std)    CEGUI::System singleton created. (00857DA8)
03/05/2011 05:45:24 (Std)    ---- CEGUI System initialisation completed ----
03/05/2011 05:45:24 (Std)    
03/05/2011 05:45:24 (Std)    Started creation of Scheme from XML specification:
03/05/2011 05:45:24 (Std)    ---- CEGUI GUIScheme name: TaharezLook
03/05/2011 05:45:24 (Std)    Started creation of Imageset from XML specification:
03/05/2011 05:45:24 (Std)    ---- CEGUI Imageset name: TaharezLook
03/05/2011 05:45:24 (Std)    ---- Source texture file: TaharezLook.tga in resource group: (Default)
03/05/2011 05:45:24 (Std)    Started creation of Font from XML specification:
03/05/2011 05:45:24 (Std)    ---- CEGUI font name: DejaVuSans-10
03/05/2011 05:45:24 (Std)    ----       Font type: FreeType
03/05/2011 05:45:24 (Std)    ----     Source file: DejaVuSans.ttf in resource group: (Default)
03/05/2011 05:45:24 (Std)    ---- Real point size: 10
03/05/2011 05:45:25 (Std)    ===== Falagard 'root' element: look and feel parsing begins =====
03/05/2011 05:45:25 (Std)    ===== Look and feel parsing completed =====
03/05/2011 05:45:25 (Std)    No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/Button' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/Button' added. (008542F8)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/Default' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/Default' added. (05C2EB40)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/Editbox' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/Editbox' added. (05A9AB08)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/FrameWindow' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/FrameWindow' added. (00846038)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/ItemEntry' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/ItemEntry' added. (008CC2A0)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/ListHeader' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/ListHeader' added. (00859668)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/ListHeaderSegment' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/ListHeaderSegment' added. (0089C300)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/Listbox' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/Listbox' added. (008CAA40)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/Menubar' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/Menubar' added. (05BD1E80)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/MenuItem' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/MenuItem' added. (008CFD20)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/MultiColumnList' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/MultiColumnList' added. (05C28478)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/MultiLineEditbox' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/MultiLineEditbox' added. (05C28550)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/PopupMenu' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/PopupMenu' added. (05BB1920)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/ProgressBar' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/ProgressBar' added. (0085F0B0)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/ScrollablePane' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/ScrollablePane' added. (0085F270)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/Scrollbar' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/Scrollbar' added. (05C53A18)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/Slider' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/Slider' added. (05C53BD8)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/Static' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/Static' added. (05C53D98)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/StaticImage' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/StaticImage' added. (05C5D820)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/StaticText' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/StaticText' added. (05C5D9E0)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/SystemButton' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/SystemButton' added. (05C5DBA0)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/TabButton' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/TabButton' added. (05C5DD60)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/TabControl' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/TabControl' added. (00889030)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/Titlebar' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/Titlebar' added. (008891F0)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/ToggleButton' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/ToggleButton' added. (008893B0)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/Tooltip' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/Tooltip' added. (00889570)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/ItemListbox' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/ItemListbox' added. (00889730)
03/05/2011 05:45:25 (Std)    Created WindowRendererFactory for 'Falagard/Tree' WindowRenderers.
03/05/2011 05:45:25 (Std)    WindowRendererFactory 'Falagard/Tree' added. (05C58780)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/Button' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/Checkbox' using base type 'CEGUI/Checkbox', window renderer 'Falagard/ToggleButton' Look'N'Feel 'TaharezLook/Checkbox' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/ImageButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/ImageButton' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/RadioButton' using base type 'CEGUI/RadioButton', window renderer 'Falagard/ToggleButton' Look'N'Feel 'TaharezLook/RadioButton' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' Look'N'Feel 'TaharezLook/FrameWindow' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' Look'N'Feel 'TaharezLook/Titlebar' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/SystemButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/Button' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/Editbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' Look'N'Feel 'TaharezLook/Editbox' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/MultiLineEditbox' using base type 'CEGUI/MultiLineEditbox', window renderer 'Falagard/MultiLineEditbox' Look'N'Feel 'TaharezLook/MultiLineEditbox' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/Menubar' using base type 'CEGUI/Menubar', window renderer 'Falagard/Menubar' Look'N'Feel 'TaharezLook/Menubar' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/PopupMenu' using base type 'CEGUI/PopupMenu', window renderer 'Falagard/PopupMenu' Look'N'Feel 'TaharezLook/PopupMenu' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/MenuItem' using base type 'CEGUI/MenuItem', window renderer 'Falagard/MenuItem' Look'N'Feel 'TaharezLook/MenuItem' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/AlternateProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' Look'N'Feel 'TaharezLook/AltProgressBar' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' Look'N'Feel 'TaharezLook/ProgressBar' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/VUMeter' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' Look'N'Feel 'TaharezLook/VUMeter' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'TaharezLook/VerticalScrollbar' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'TaharezLook/HorizontalScrollbar' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/VerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/VerticalScrollbarThumb' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/HorizontalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/HorizontalScrollbarThumb' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'TaharezLook/LargeVerticalScrollbar' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/LargeVerticalScrollbarThumb' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/TabButton' using base type 'CEGUI/TabButton', window renderer 'Falagard/TabButton' Look'N'Feel 'TaharezLook/TabButton' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/TabControl' using base type 'CEGUI/TabControl', window renderer 'Falagard/TabControl' Look'N'Feel 'TaharezLook/TabControl' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/TabContentPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/TabContentPane' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/TabButtonPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/TabButtonPane' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/ComboDropList' using base type 'CEGUI/ComboDropList', window renderer 'Falagard/Listbox' Look'N'Feel 'TaharezLook/ComboDropList' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/ComboEditbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' Look'N'Feel 'TaharezLook/ComboEditbox' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/Combobox' using base type 'CEGUI/Combobox', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/Combobox' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/Listbox' using base type 'CEGUI/Listbox', window renderer 'Falagard/Listbox' Look'N'Feel 'TaharezLook/Listbox' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/ListHeader' using base type 'CEGUI/ListHeader', window renderer 'Falagard/ListHeader' Look'N'Feel 'TaharezLook/ListHeader' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/ListHeaderSegment' using base type 'CEGUI/ListHeaderSegment', window renderer 'Falagard/ListHeaderSegment' Look'N'Feel 'TaharezLook/ListHeaderSegment' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/MultiColumnList' using base type 'CEGUI/MultiColumnList', window renderer 'Falagard/MultiColumnList' Look'N'Feel 'TaharezLook/MultiColumnList' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/Slider' using base type 'CEGUI/Slider', window renderer 'Falagard/Slider' Look'N'Feel 'TaharezLook/Slider' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/SliderThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/SliderThumb' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/ScrollablePane' using base type 'CEGUI/ScrollablePane', window renderer 'Falagard/ScrollablePane' Look'N'Feel 'TaharezLook/ScrollablePane' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/Spinner' using base type 'CEGUI/Spinner', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/Spinner' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/Tooltip' using base type 'CEGUI/Tooltip', window renderer 'Falagard/Tooltip' Look'N'Feel 'TaharezLook/Tooltip' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/StaticImage' using base type 'DefaultWindow', window renderer 'Falagard/StaticImage' Look'N'Feel 'TaharezLook/StaticImage' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' Look'N'Feel 'TaharezLook/StaticText' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/ItemListbox' using base type 'CEGUI/ItemListbox', window renderer 'Falagard/ItemListbox' Look'N'Feel 'TaharezLook/ItemListbox' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/ListboxItem' using base type 'CEGUI/ItemEntry', window renderer 'Falagard/ItemEntry' Look'N'Feel 'TaharezLook/ListboxItem' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/GroupBox' using base type 'CEGUI/GroupBox', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/GroupBox' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Creating falagard mapping for type 'TaharezLook/Tree' using base type 'CEGUI/Tree', window renderer 'Falagard/Tree' Look'N'Feel 'TaharezLook/Tree' and RenderEffect ''. (001286A0)
03/05/2011 05:45:25 (Std)    Started creation of Font from XML specification:
03/05/2011 05:45:25 (Std)    ---- CEGUI font name: DejaVuSans-10
03/05/2011 05:45:25 (Std)    ----       Font type: FreeType
03/05/2011 05:45:25 (Std)    ----     Source file: DejaVuSans.ttf in resource group: (Default)
03/05/2011 05:45:25 (Std)    ---- Real point size: 10
03/05/2011 05:45:25 (Std)    ---- Returning existing instance of Font named 'DejaVuSans-10'.
03/05/2011 05:45:25 (Std)    Started creation of Font from XML specification:
03/05/2011 05:45:25 (Std)    ---- CEGUI font name: DejaVuSans-s
03/05/2011 05:45:25 (Std)    ----       Font type: FreeType
03/05/2011 05:45:25 (Std)    ----     Source file: DejaVuSans.ttf in resource group: (Default)
03/05/2011 05:45:25 (Std)    ---- Real point size: 7
03/05/2011 05:45:25 (Std)    Started creation of Font from XML specification:
03/05/2011 05:45:25 (Std)    ---- CEGUI font name: ListFont
03/05/2011 05:45:25 (Std)    ----       Font type: FreeType
03/05/2011 05:45:25 (Std)    ----     Source file: bluehigh.ttf in resource group: (Default)
03/05/2011 05:45:25 (Std)    ---- Real point size: 11
03/05/2011 05:45:25 (Error)   CEGUI::UnknownObjectException in file c:\cegui-0.7.4\cegui\src\ceguiwindowmanager.cpp(256) : WindowManager::getWindow - A Window object with the name 'consolewin' does not exist within the system
03/05/2011 05:45:26 (Error)   ScrolledContainerProperties::ChildExtentsArea property does not support being set.
03/05/2011 05:45:26 (Std)    ---- Successfully completed loading of GUI layout from 'console.layout' ----
03/05/2011 05:45:26 (Std)    Started creation of Imageset from XML specification:
03/05/2011 05:45:26 (Std)    ---- CEGUI Imageset name: formationsquare
03/05/2011 05:45:26 (Std)    ---- Source texture file: formationsquare.png in resource group: (Default)
03/05/2011 05:45:26 (Std)    Started creation of Imageset from XML specification:
03/05/2011 05:45:26 (Std)    ---- CEGUI Imageset name: formationline
03/05/2011 05:45:26 (Std)    ---- Source texture file: formationline.png in resource group: (Default)
03/05/2011 05:45:26 (Std)    Started creation of Imageset from XML specification:
03/05/2011 05:45:26 (Std)    ---- CEGUI Imageset name: gatebutton
03/05/2011 05:45:26 (Std)    ---- Source texture file: gatebutton.png in resource group: (Default)
03/05/2011 05:45:26 (Std)    Started creation of Imageset from XML specification:
03/05/2011 05:45:26 (Std)    ---- CEGUI Imageset name: groupButton
03/05/2011 05:45:26 (Std)    ---- Source texture file: groupButton.png in resource group: (Default)
03/05/2011 05:45:26 (Std)    Started creation of Imageset from XML specification:
03/05/2011 05:45:26 (Std)    ---- CEGUI Imageset name: unknown
03/05/2011 05:45:26 (Std)    ---- Source texture file: unknown.png in resource group: (Default)
03/05/2011 05:45:26 (Std)    Attempting to create Imageset 'bow' using image file 'bow.png'.
03/05/2011 05:45:26 (Std)    Attempting to create Imageset 'DejaVuSans-10_auto_glyph_images_ ' with texture only.
03/05/2011 05:45:26 (Error)   Attempt to set value of '24'  to read only property 'HorzExtent' on window: Root/fps
03/05/2011 05:45:26 (Error)   Attempt to set value of '15.7876'  to read only property 'VertExtent' on window: Root/fps
03/05/2011 05:45:27 (Error)   Attempt to set value of '45'  to read only property 'HorzExtent' on window: Root/dbgWin/t1
03/05/2011 05:45:27 (Error)   Attempt to set value of '15.7876'  to read only property 'VertExtent' on window: Root/dbgWin/t1
03/05/2011 05:45:27 (Error)   Attempt to set value of '77'  to read only property 'HorzExtent' on window: Root/dbgWin/t11
03/05/2011 05:45:27 (Error)   Attempt to set value of '15.7876'  to read only property 'VertExtent' on window: Root/dbgWin/t11
03/05/2011 05:45:27 (Error)   Attempt to set value of '41'  to read only property 'HorzExtent' on window: Root/unitWin/ratxt
03/05/2011 05:45:27 (Error)   Attempt to set value of '15.7876'  to read only property 'VertExtent' on window: Root/unitWin/ratxt
03/05/2011 05:45:27 (Error)   Attempt to set value of '54'  to read only property 'HorzExtent' on window: Root/unitWin/hetxt
03/05/2011 05:45:27 (Error)   Attempt to set value of '15.7876'  to read only property 'VertExtent' on window: Root/unitWin/hetxt
03/05/2011 05:45:27 (Error)   Attempt to set value of '33'  to read only property 'HorzExtent' on window: Root/coords
03/05/2011 05:45:27 (Error)   Attempt to set value of '15.7876'  to read only property 'VertExtent' on window: Root/coords
03/05/2011 05:45:27 (Error)   Attempt to set value of '18'  to read only property 'HorzExtent' on window: Root/ItemsWindow/itmAmount
03/05/2011 05:45:27 (Error)   Attempt to set value of '15.7876'  to read only property 'VertExtent' on window: Root/ItemsWindow/itmAmount
03/05/2011 05:45:27 (Error)   Attempt to set value of '118'  to read only property 'HorzExtent' on window: Root/buildingWindow/name
03/05/2011 05:45:27 (Error)   Attempt to set value of '15.7876'  to read only property 'VertExtent' on window: Root/buildingWindow/name
03/05/2011 05:45:27 (Error)   Attempt to set value of '73'  to read only property 'HorzExtent' on window: Root/buildingWindow/contents
03/05/2011 05:45:27 (Error)   Attempt to set value of '15.7876'  to read only property 'VertExtent' on window: Root/buildingWindow/contents
03/05/2011 05:45:27 (Error)   Attempt to set value of '137'  to read only property 'HorzExtent' on window: Root/ProdBuildingWindow/name
03/05/2011 05:45:27 (Error)   Attempt to set value of '15.7876'  to read only property 'VertExtent' on window: Root/ProdBuildingWindow/name
03/05/2011 05:45:27 (Error)   Attempt to set value of '73'  to read only property 'HorzExtent' on window: Root/ProdBuildingWindow/contents
03/05/2011 05:45:27 (Error)   Attempt to set value of '15.7876'  to read only property 'VertExtent' on window: Root/ProdBuildingWindow/contents
03/05/2011 05:45:27 (Std)    ---- Successfully completed loading of GUI layout from 'game.layout' ----
03/05/2011 05:45:27 (Std)    ---- Successfully completed loading of GUI layout from 'itemInfo.layout' ----
03/05/2011 05:45:27 (Std)    Started creation of Imageset from XML specification:
03/05/2011 05:45:27 (Std)    ---- CEGUI Imageset name: corder
03/05/2011 05:45:27 (Std)    ---- Source texture file: corder.png in resource group: (Default)
03/05/2011 05:45:27 (Std)    Started creation of Imageset from XML specification:
03/05/2011 05:45:27 (Std)    ---- CEGUI Imageset name: cselect
03/05/2011 05:45:27 (Std)    ---- Source texture file: cselect.png in resource group: (Default)
03/05/2011 05:45:27 (Std)    Started creation of Imageset from XML specification:
03/05/2011 05:45:27 (Std)    ---- CEGUI Imageset name: placeSiege
03/05/2011 05:45:27 (Std)    ---- Source texture file: siege.png in resource group: (Default)
03/05/2011 05:45:27 (Std)    Attempting to create Imageset 'greenBar' using image file 'greenBar.png'.
03/05/2011 05:45:27 (Std)    Attempting to create Imageset 'redBar' using image file 'redBar.png'.
03/05/2011 05:45:27 (Std)    Attempting to create Imageset 'sel' using image file 'selimage.png'.
03/05/2011 05:45:28 (Std)    Attempting to create Imageset 'ListFont_auto_glyph_images_ ' with texture only.
03/05/2011 05:45:32 (Error)   ScrolledContainerProperties::ChildExtentsArea property does not support being set.
03/05/2011 05:45:32 (Std)    ---- Successfully completed loading of GUI layout from 'Worldmap.layout' ----
03/05/2011 05:45:32 (Std)    Started creation of Imageset from XML specification:
03/05/2011 05:45:32 (Std)    ---- CEGUI Imageset name: unitcard
03/05/2011 05:45:32 (Std)    ---- Source texture file: unitcard.png in resource group: (Default)


Re: Odd return value getHorizontalScrollPosition

Posted: Fri May 06, 2011 00:02
by cCj
Hello, anyone?
Does getHorizontalScrollPosition work for anybody?

Re: Odd return value getHorizontalScrollPosition

Posted: Fri May 06, 2011 22:01
by Kulik
This seems to work fine for me. Could you post a usecase code that will only depend on CEGUI that exhibits this so I can test it?

Re: Odd return value getHorizontalScrollPosition

Posted: Sat May 07, 2011 03:04
by cCj
Ok thx , heres the code ive been using:

Code: Select all


// INIT CODE:


      WindowManager& winMgr = WindowManager::getSingleton();

      ScrollablePane  * mapareactrl = (ScrollablePane *)winMgr.getWindow("gmRoot/maparea");
      Window  * wins = winMgr.getWindow("gmRoot/maparea/test"); // wins  is the ctrl that is suposed to be scrolled
         mapareactrl->setContentPaneAutoSized(false);

      mapareactrl->addChildWindow(wins);
      mapareactrl->setShowHorzScrollbar(true);

      mapareactrl->setContentPaneArea(Rect(CEGUI::Point(0,0),Size(size * mWidth,size * mHeight)));
      wins->setSize(UVector2( UDim(0, size * mWidth), UDim(0,  size * mHeight) ));


// CODE where "s" is always <= 0.35

      WindowManager& winMgr = WindowManager::getSingleton();

            ScrollablePane  * mapareactrl = (ScrollablePane *)winMgr.getWindow("gmRoot/maparea");
            float s = mapareactrl->getHorizontalScrollPosition();;


Re: Odd return value getHorizontalScrollPosition

Posted: Sat May 07, 2011 23:07
by cCj
Well any ideas? :D I cant figure it out, i have tried everything.

Re: Odd return value getHorizontalScrollPosition

Posted: Sat May 07, 2011 23:31
by cCj
Hmm i think theres bug in cegui because i was able to get the pixel amount scrolled like this:

Code: Select all


            Scrollbar *ssss = mapareactrl->getHorzScrollbar();

            float t = ssss->getScrollPosition();  // RETURNS: (Pixels scrolled) - (screen width) + 12   





which means amount "scrolled" does not include the screen width. only the amount scrolled...... and So if u have content pane of 1000 pixels and screen width of 800 , then getScrollPosition returns (200 + 12). when user has scrolled to the end.

Or another example: If u have content pane size of 1000 and screen size of 500 and user scrolls to max then getHorizontalScrollPosition returns 0.5

Re: Odd return value getHorizontalScrollPosition

Posted: Sat May 07, 2011 23:48
by Kulik
I was completely confused but now I think this is actually a correct behaviour.

Let me explain :-)

Scroll position always marks the position of the left edge of the scroll pane. If your screen is 100 pixels wide the max scroll position is the max document size - 100 pixels because you can't scroll past the document size. If you get max scroll position of 0.35f it just means that the remaining 0.65f are visible when you scroll to 0.35f left edge.

Re: Odd return value getHorizontalScrollPosition

Posted: Sun May 08, 2011 00:24
by cCj
Yes I was saying the same thing :)

But i think it should return 1.0 as max from getHorizontalScrollPosition , it would be more convenient.

Re: Odd return value getHorizontalScrollPosition

Posted: Sun May 08, 2011 00:51
by Kulik
What would it return when the scroll position is at the beginning? Something other than zero?

Re: Odd return value getHorizontalScrollPosition

Posted: Sun May 08, 2011 01:07
by cCj
No, it would return zero.
its just convenient in my opinion to have range of 0-1

Re: Odd return value getHorizontalScrollPosition

Posted: Sun May 08, 2011 17:00
by Mikademus
My €0.02 is that (1) the current behaviour of the getScrollPosition() method isn't very self-explanatory from its name, and (2) that [0..1] seems a pretty good and standard measurement scheme. Perhaps with 0.8 either the method could be renamed to something like "getScrollPositionInPixels" and a supporting "getScrollPositionPercent" might be provided, or the return type could be updated to provide a UVector with both pixels and percent from the relevant edge?

Re: Odd return value getHorizontalScrollPosition

Posted: Sun May 08, 2011 17:41
by Kulik
I agree and I think the 0..1 range would be better. If someone rolls a patch for 0.8 it will be considered.

Re: Odd return value getHorizontalScrollPosition

Posted: Wed May 18, 2011 17:28
by cCj
Mikademus wrote:My €0.02 is that (1) the current behaviour of the getScrollPosition() method isn't very self-explanatory from its name, and (2) that [0..1] seems a pretty good and standard measurement scheme. Perhaps with 0.8 either the method could be renamed to something like "getScrollPositionInPixels" and a supporting "getScrollPositionPercent" might be provided, or the return type could be updated to provide a UVector with both pixels and percent from the relevant edge?


I second this, both values should be returned I need them both :)

Maybe something like this? (Naming could be better...)

GetHorizontalScollPosition - would return from range 0-1

GetHorizontalScrollAmount or just GetHorizontalScroll - would return the current value of getHorizontalScrollPosition

That's just my suggestion :D

Re: Odd return value getHorizontalScrollPosition

Posted: Sun May 22, 2011 09:09
by CrazyEddie
Someone should add this suggestion to mantis (http://mantis.cegui.org.uk), with a link back here.

CE

Re: Odd return value getHorizontalScrollPosition

Posted: Sun May 22, 2011 17:53
by Mikademus
CrazyEddie wrote:Someone should add this suggestion to mantis (http://mantis.cegui.org.uk), with a link back here.


Actually tried to do that now, but could not log in, then couldn't find any place to register, and finally couldn't see any way to add an issue, at least not anonymously.