Page 1 of 1

CEGUI::UnknownObjectException when tree is used

Posted: Wed Jan 21, 2009 21:21
by Metabug
The following exception messages are displayed in VS2005 output and logged in CEGUI.log whenever trees are used (e.g. just run the tree sample project). I am running 0.6.2 with directx 9 renderer. No code were modified off the zip files downloaded. The tree in sample project is using Taharez scheme, the properties mentioned are indeed specified in the looknfeel, so I'm not sure what went wrong.


]
21/01/2009 13:10:23 (Error) CEGUI::UnknownObjectException in file d:\projects\cegui\cegui_admin\cegui_mk2\sdk_helpers\cegui-0.6.2-vc8\src\ceguipropertyset.cpp(124) : There is no Property named 'SelectionBrushImage' available in the set.
21/01/2009 13:10:23 (Error) CEGUI::UnknownObjectException in file d:\projects\cegui\cegui_admin\cegui_mk2\sdk_helpers\cegui-0.6.2-vc8\src\ceguipropertyset.cpp(124) : There is no Property named 'NormalTextColour' available in the set.
21/01/2009 13:10:23 (Error) CEGUI::UnknownObjectException in file d:\projects\cegui\cegui_admin\cegui_mk2\sdk_helpers\cegui-0.6.2-vc8\src\ceguipropertyset.cpp(124) : There is no Property named 'SelectedTextColour' available in the set.
21/01/2009 13:10:23 (Error) CEGUI::UnknownObjectException in file d:\projects\cegui\cegui_admin\cegui_mk2\sdk_helpers\cegui-0.6.2-vc8\src\ceguipropertyset.cpp(124) : There is no Property named 'ActiveSelectionColour' available in the set.
21/01/2009 13:10:23 (Error) CEGUI::UnknownObjectException in file d:\projects\cegui\cegui_admin\cegui_mk2\sdk_helpers\cegui-0.6.2-vc8\src\ceguipropertyset.cpp(124) : There is no Property named 'InactiveSelectionColour' available in the set.


This have been mentioned in here and here. But I can't find where it has ever been addressed.

Posted: Thu Jan 22, 2009 07:27
by scriptkid
Hi,

i should have a look at this when i'm back home tonight. I'm (almost) sure that i ran the tree samples before releasing the SDKs.

There's probably some legacy stuff in the looknfeel files, because these exceptions aren't fatal. I mean, you can use the tree, can't you?

HTH.

Posted: Fri Jan 23, 2009 00:58
by Metabug
Right, tree works just fine. It's not affecting the functionality as far as I can see. So definitely not some urgent issue. It would just be nice to have no exceptions, that's all.

Posted: Fri Jan 23, 2009 15:17
by scriptkid
Okay, thanks for posting. You are right about not wanting to get any exceptions. We will see to update the errorneous file before the next release.

Posted: Thu Feb 26, 2009 17:42
by Bannta
This is what fixed our errors
http://www.cegui.org.uk/phpBB2/viewtopi ... 7865#17865

changing the legacy prams with the new prams

Legacy:
Value="FF000000"

New:
initialValue="FF000000" redrawOnWrite="true"


Our issue was in our layout for our Tree widget.

Code: Select all

<WidgetLook name="<whatever your layout is call name>/Tree">
      <PropertyDefinition name="NormalTextColour" initialValue="FFFFFFFF" redrawOnWrite="true" />
        <PropertyDefinition name="SelectedTextColour" initialValue="FF000000" redrawOnWrite="true" />
        <PropertyDefinition name="ActiveSelectionColour" initialValue="FF607FFF" redrawOnWrite="true" />
        <PropertyDefinition name="InactiveSelectionColour" initialValue="FF808080" redrawOnWrite="true" />
        <PropertyDefinition name="FrameColours" initialValue="tl:FFFFFFFF tr:FFFFFFFF bl:FFFFFFFF br:FFFFFFFF" redrawOnWrite="true" />
        <NamedArea name="ItemRenderingArea">


hope that helps.