Page 1 of 1

A suggestion about looknfeel

Posted: Wed May 27, 2009 06:04
by songge3604
After I have written looknfeel, it's painful to debug the looknfeel I write, the ceguilog doesn't have anything about
the error, I just know that it has a error ...

So, could you give some infomation about the error of looknfeel, to make debuging looknfeel happy : )

Thank you, by the way, below is the looknfeel I am debuging:

Code: Select all

   <!--
   ***************************************************
      LLK3Look/UIPlayer
   ***************************************************
   -->
   <WidgetLook name="LLK3Look/UIPlayer">
      <PropertyDefinition name="Nickname" initialValue="" redrawOnWrite="true" layoutOnWrite="true" />
      <PropertyDefinition name="Titlename" initialValue="" redrawOnWrite="true" layoutOnWrite="true" />
      <PropertyDefinition name="RunwayImage" initialValue="" redrawOnWrite="true" layoutOnWrite="true" />
      <PropertyDefinition name="AvatarImage" initialValue="" redrawOnWrite="true" layoutOnWrite="true" />
      <PropertyDefinition name="HonorImage" initialValue="" redrawOnWrite="true" layoutOnWrite="true" />
      <PropertyDefinition name="HonorSpr" initialValue="" redrawOnWrite="true" layoutOnWrite="true" />
      <ImagerySection name="Nickname">
         <TextComponent>
            <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>
            <TextProperty name="Nickname" />
            <VertFormat type="CentreAligned" />
            <HorzFormat type="CentreAligned" />
         </TextComponent>
      </ImagerySection>
      <ImagerySection name="Titlename">
         <TextComponent>
            <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>
            <TextProperty name="Titlename" />
            <VertFormat type="CentreAligned" />
            <HorzFormat type="CentreAligned" />
         </TextComponent>
      </ImagerySection>
      <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="RunwayImage" />
            <HorzAlignment type="LeftAligned" />
            <VertAlignment type="BottomAligned" />
            <VertFormat type="CentreAligned" />
            <HorzFormat type="CentreAligned" />
         </ImageryComponent>
         <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="AvatarImage" />
            <HorzAlignment type="LeftAligned" />
            <VertAlignment type="BottomAligned" />
            <VertFormat type="CentreAligned" />
            <HorzFormat type="CentreAligned" />
         </ImageryComponent>
         <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="HonorImage" />
            <HorzAlignment type="LeftAligned" />
            <VertAlignment type="BottomAligned" />
            <VertFormat type="CentreAligned" />
            <HorzFormat type="CentreAligned" />
         </ImageryComponent>
         <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="HonorSpr" />
            <HorzAlignment type="LeftAligned" />
            <VertAlignment type="BottomAligned" />
            <VertFormat type="CentreAligned" />
            <HorzFormat type="CentreAligned" />
         </ImageryComponent>
      </ImagerySection>
      <StateImagery name="Enabled">
         <Layer>
            <Section section="normal" />
         </Layer>
      </StateImagery>
      <StateImagery name="Disabled">
         <Layer>
            <Section section="normal">
               <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
            </Section>
         </Layer>
      </StateImagery>
   </WidgetLook>

Re: A suggestion about looknfeel

Posted: Wed May 27, 2009 10:02
by songge3604
I solved my looknfeel's bug.

However, I hope the debug of looknfeel could be easier. :D

Re: A suggestion about looknfeel

Posted: Wed May 27, 2009 11:36
by CrazyEddie
Hi,

This is why we have xerces-c++ for XML validation - you might like to try that out, though lots of exceptions in your app while you try and figure it out might not be much fun either.

We have an external command line tool for linux that can do this validation and output the errors. This is source only currently though. If I get the time I'd like to extend it to work on Win32 / Mac and also GUI-ify it to make it more friendly.

CE.