Page 1 of 1
GrabContainer
Posted: Mon Jul 31, 2006 18:12
by bitten
They can help me in the following error:
31/07/2006 12:46:13 (Error) Exception: WindowFactoryManager::getFactory - A WindowFactory object, an alias, or mapping for 'GrabContainer' Window objects is not registered with the system.
I am trying to create to grabcontainer to use drag/drop
Bitten
Posted: Mon Jul 31, 2006 18:26
by scriptkid
Hi bitten,
welcome to the forum
There is no such thing as a "GrabContainer". Did you mean "DragContainer"?
HTH.
Posted: Mon Jul 31, 2006 18:51
by bitten
It forgives. I typed wrong!
31/07/2006 15:48:32 (InfL1) Creating falagard mapping for type 'Neutral/ScrollButtonRight' using base type 'Falagard/Button' and LookN'Feel 'Neutral/ScrollButtonRight'.
31/07/2006 15:48:32 (InfL1) Creating falagard mapping for type 'Taikodom/DragContainer' using base type 'DragContainer' and LookN'Feel 'DragContainer'.
31/07/2006 15:48:32 (InfL1) Creating falagard mapping for type 'Login/DragContainer' using base type 'DragContainer' and LookN'Feel 'DragContainer'.
31/07/2006 15:48:32 (InfL1) Creating falagard mapping for type 'Neutral/DragContainer' using base type 'DragContainer' and LookN'Feel 'DragContainer'.
31/07/2006 15:48:32 (Error) Exception: WidgetLookManager::getWidgetLook - Widget look and feel 'DragContainer' does not exist.
file scheme:
<FalagardMapping WindowType="Taikodom/DragContainer" TargetType="DragContainer" LookNFeel="DragContainer" />
<FalagardMapping WindowType="Login/DragContainer" TargetType="DragContainer" LookNFeel="DragContainer" />
<FalagardMapping WindowType="Neutral/DragContainer" TargetType="DragContainer" LookNFeel="DragContainer" />
Posted: Mon Jul 31, 2006 19:23
by CrazyEddie
Hi,
It's saying that the 'WidgetLook', that is the skin imagery, named "DragContainer" does not exist. Unless you have created this yourself, it will not exist either, since none of our looknfeel files contain an entry for DragContainer either (i.e. you just create a DragContainer directly, by default there is no imagery associated with it, and so no mapping in the scheme is required).
HTH
CE.
Posted: Mon Jul 31, 2006 19:44
by bitten
It works. Thanks for the help.
Posted: Wed Aug 02, 2006 21:51
by bitten
another problem now!
created following scheme
Code: Select all
<FalagardMapping WindowType="Taikodom/DragIconButton" TargetType="DragContainer" LookNFeel="Taikodom/DragIconButton" />
e following looknfeel.
Code: Select all
<WidgetLook name="Taikodom/DragIconButton">
<PropertyDefinition name="ImageIcon" redrawOnWrite="true" initialValue="set:Taikodom image:ButtonNormal" />
<PropertyDefinition name="ImageStateMouse" redrawOnWrite="true" initialValue="set:Taikodom image:ButtonNormal" />
<PropertyDefinition name="ImageStateComponent" redrawOnWrite="true" initialValue="set:Taikodom image:ButtonNormal" />
<ImagerySection name="normal">
<ImageryComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<ImageProperty name="ImageIcon" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
</ImagerySection>
<StateImagery name="Enabled" >
<Layer>
<Section section="normal" />
</Layer>
</StateImagery>
<StateImagery name="Disabled" >
<Layer>
<Section section="normal" />
</Layer>
</StateImagery>
</WidgetLook>
But nao eh drawn nothing. The DragContainer can receive image?
no exists errors in cegui.log
Thanks
Bitten[/code]