titlebar prob[SOLVED]

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

maori
Just can't stay away
Just can't stay away
Posts: 161
Joined: Tue Sep 23, 2008 13:05
Location: Plumstead , UK

titlebar prob[SOLVED]

Postby maori » Thu Feb 18, 2010 13:51

Hi Guys

could someone tell me how to fix this issue

Image

as you see the close button is only slightly dispalyed i check the x,y,w,h parts in the imageset and it shows it all coverd correctly not sure what else i need to check in the lookNfeel i have this in the framewindow section

Code: Select all

<WidgetLook name="MyTheme/FrameWindow">
    <PropertyLinkDefinition name="CaptionColour" widget="__auto_titlebar__" targetProperty="CaptionColour" initialValue="FF000000" />
    <PropertyLinkDefinition name="TitlebarFont" widget="__auto_titlebar__" targetProperty="Font" />
    <Property name="NSSizingCursorImage" value="set:MyTheme image:MouseNoSoCursor" />
    <Property name="EWSizingCursorImage" value="set:MyTheme image:MouseEsWeCursor" />
    <Property name="NWSESizingCursorImage" value="set:MyTheme image:MouseNwSeCursor" />
    <Property name="NESWSizingCursorImage" value="set:MyTheme image:MouseNeSwCursor" />
    <NamedArea name="ClientWithTitleWithFrame">
      <Area>
        <Dim type="LeftEdge" >
          <ImageDim imageset="MyTheme" image="WindowTopLeft" dimension="Width" />
        </Dim>
        <Dim type="TopEdge" >
          <WidgetDim widget="__auto_titlebar__" dimension="BottomEdge" />
        </Dim>
        <Dim type="RightEdge" >
          <UnifiedDim scale="1" type="RightEdge">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowTopRight" dimension="Width" />
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="BottomEdge" >
          <UnifiedDim scale="1" type="BottomEdge">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowBottomEdge" dimension="Height" />
            </DimOperator>
          </UnifiedDim>
        </Dim>
      </Area>
    </NamedArea>
    <NamedArea name="ClientWithTitleNoFrame">
      <Area>
        <Dim type="LeftEdge" >
          <AbsoluteDim value="0" />
        </Dim>
        <Dim type="TopEdge" >
          <WidgetDim widget="__auto_titlebar__" dimension="BottomEdge" />
        </Dim>
        <Dim type="Width" >
          <UnifiedDim scale="1" type="Width" />
        </Dim>
        <Dim type="BottomEdge" >
          <WidgetDim dimension="BottomEdge" />
        </Dim>
      </Area>
    </NamedArea>
    <NamedArea name="ClientNoTitleWithFrame">
      <Area>
        <Dim type="LeftEdge" >
          <ImageDim imageset="MyTheme" image="WindowTopLeft" dimension="Width" />
        </Dim>
        <Dim type="TopEdge" >
          <ImageDim imageset="MyTheme" image="WindowTopEdge" dimension="Height" />
        </Dim>
        <Dim type="RightEdge" >
          <UnifiedDim scale="1" type="RightEdge">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowTopRight" dimension="Width" />
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="BottomEdge" >
          <UnifiedDim scale="1" type="BottomEdge">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowBottomEdge" dimension="Height" />
            </DimOperator>
          </UnifiedDim>
        </Dim>
      </Area>
    </NamedArea>
    <NamedArea name="ClientNoTitleNoFrame">
      <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>
    </NamedArea>
    <Child type="MyTheme/Titlebar" nameSuffix="__auto_titlebar__">
      <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" >
        <FontDim type="LineSpacing" padding="8" />
      </Dim>-->
      <Dim type="Height" >
        <ImageDim imageset="MyTheme" image="NewTitlebarMiddle" dimension="Height">
          <DimOperator op="Add">
            <ImageDim imageset="MyTheme" image="NewTitlebarDivider" dimension="Height" />
          </DimOperator>
        </ImageDim>
      </Dim>
    </Area>
    <Property name="AlwaysOnTop" value="False" />
  </Child>
  <Child type="MyTheme/SystemButton" nameSuffix="__auto_closebutton__">
    <Area>
      <Dim type="LeftEdge" >
        <UnifiedDim scale="1" type="RightEdge">
          <DimOperator op="Subtract">
            <ImageDim imageset="MyTheme" image="CloseNormal" dimension="Width">
              <DimOperator op="Add">
                <ImageDim imageset="MyTheme" image="NewTitlebarRight" dimension="Width">
                  <DimOperator op="Subtract">
                    <AbsoluteDim value="2" />
                  </DimOperator>
                </ImageDim>
              </DimOperator>
            </ImageDim>
          </DimOperator>
        </UnifiedDim>
      </Dim>
      <Dim type="TopEdge" >
        <AbsoluteDim value="0.5">
          <DimOperator op="Multiply">
            <WidgetDim widget="__auto_titlebar__" dimension="Height">
              <DimOperator op="Subtract">
                <ImageDim imageset="MyTheme" image="CloseNormal" dimension="Height" />
              </DimOperator>
            </WidgetDim>
          </DimOperator>
        </AbsoluteDim>
      </Dim>
      <Dim type="Width" >
        <ImageDim imageset="MyTheme" image="CloseNormal" dimension="Width" />
      </Dim>
      <Dim type="Height" >
        <ImageDim imageset="MyTheme" image="CloseNormal" dimension="Height" />
      </Dim>
    </Area>
    <Property name="DrawStandardImagery" value="False" />
    <Property name="AlwaysOnTop" value="True" />
    <Property name="NormalImage" value="set:MyTheme image:CloseNormal" />
    <Property name="HoverImage" value="set:MyTheme image:CloseHover" />
    <Property name="PushedImage" value="set:MyTheme image:ClosePressed" />
    <Property name="VertImageFormatting" value="Tiled" redrawOnWrite="true" />
    <Property name="HorzImageFormatting" value="Tiled" redrawOnWrite="true" />
  </Child>
  <ImagerySection name="withtitle_frame">
    <ImageryComponent>
      <Area>
        <Dim type="LeftEdge" >
          <AbsoluteDim value="0" />
        </Dim>
        <Dim type="TopEdge" >
          <WidgetDim widget="__auto_titlebar__" dimension="BottomEdge" />
        </Dim>
        <Dim type="Width" >
          <ImageDim imageset="MyTheme" image="WindowLeftEdge" dimension="Width" />
        </Dim>
        <Dim type="Height" >
          <UnifiedDim scale="1" type="BottomEdge">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowBottomLeft" dimension="Height">
                <DimOperator op="Add">
                  <WidgetDim widget="__auto_titlebar__" dimension="BottomEdge" />
                </DimOperator>
              </ImageDim>
            </DimOperator>
          </UnifiedDim>
        </Dim>
      </Area>
      <Image imageset="MyTheme" image="WindowLeftEdge" />
      <VertFormat type="Tiled" />
      <HorzFormat type="Stretched" />
    </ImageryComponent>
    <ImageryComponent>
      <Area>
        <Dim type="LeftEdge" >
          <AbsoluteDim value="0" />
        </Dim>
        <Dim type="TopEdge" >
          <UnifiedDim scale="1" type="Height">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowBottomLeft" dimension="Height" />
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="Width" >
          <ImageDim imageset="MyTheme" image="WindowBottomLeft" dimension="Width" />
        </Dim>
        <Dim type="Height" >
          <ImageDim imageset="MyTheme" image="WindowBottomLeft" dimension="Height" />
        </Dim>
      </Area>
      <Image imageset="MyTheme" image="WindowBottomLeft" />
      <VertFormat type="Stretched" />
      <HorzFormat type="Stretched" />
    </ImageryComponent>
    <ImageryComponent>
      <Area>
        <Dim type="LeftEdge" >
          <ImageDim imageset="MyTheme" image="WindowLeftEdge" dimension="Width" />
        </Dim>
        <Dim type="TopEdge" >
          <WidgetDim widget="__auto_titlebar__" dimension="BottomEdge" />
        </Dim>
        <Dim type="Width" >
          <UnifiedDim scale="1" type="Width">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowRightEdge" dimension="Width">
                <DimOperator op="Add">
                  <ImageDim imageset="MyTheme" image="WindowLeftEdge" dimension="Width" />
                </DimOperator>
              </ImageDim>
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="Height" >
          <UnifiedDim scale="1" type="BottomEdge">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowBottomEdge" dimension="Height">
                <DimOperator op="Add">
                  <WidgetDim widget="__auto_titlebar__" dimension="BottomEdge" />
                </DimOperator>
              </ImageDim>
            </DimOperator>
          </UnifiedDim>
        </Dim>
      </Area>
      <Image imageset="MyTheme" image="ClientBrush" />
      <VertFormat type="Tiled" />
      <HorzFormat type="Stretched" />
    </ImageryComponent>
    <ImageryComponent>
      <Area>
        <Dim type="LeftEdge" >
          <ImageDim imageset="MyTheme" image="WindowBottomLeft" dimension="Width" />
        </Dim>
        <Dim type="TopEdge" >
          <UnifiedDim scale="1" type="Height">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowBottomEdge" dimension="Height" />
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="Width" >
          <UnifiedDim scale="1" type="Width">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowRightEdge" dimension="Width">
                <DimOperator op="Add">
                  <ImageDim imageset="MyTheme" image="WindowLeftEdge" dimension="Width" />
                </DimOperator>
              </ImageDim>
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="Height" >
          <ImageDim imageset="MyTheme" image="WindowBottomEdge" dimension="Height" />
        </Dim>
      </Area>
      <Image imageset="MyTheme" image="WindowBottomEdge" />
      <VertFormat type="Stretched" />
      <HorzFormat type="Stretched" />
    </ImageryComponent>
    <ImageryComponent>
      <Area>
        <Dim type="LeftEdge" >
          <UnifiedDim scale="1" type="Width">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowRightEdge" dimension="Width" />
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="TopEdge" >
          <WidgetDim widget="__auto_titlebar__" dimension="BottomEdge" />
        </Dim>
        <Dim type="Width" >
          <ImageDim imageset="MyTheme" image="WindowRightEdge" dimension="Width" />
        </Dim>
        <Dim type="Height" >
          <UnifiedDim scale="1" type="BottomEdge">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowBottomRight" dimension="Height">
                <DimOperator op="Add">
                  <WidgetDim widget="__auto_titlebar__" dimension="BottomEdge" />
                </DimOperator>
              </ImageDim>
            </DimOperator>
          </UnifiedDim>
        </Dim>
      </Area>
      <Image imageset="MyTheme" image="WindowRightEdge" />
      <VertFormat type="Tiled" />
      <HorzFormat type="Stretched" />
    </ImageryComponent>
    <ImageryComponent>
      <Area>
        <Dim type="LeftEdge" >
          <UnifiedDim scale="1" type="Width">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowBottomRight" dimension="Width" />
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="TopEdge" >
          <UnifiedDim scale="1" type="Height">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowBottomRight" dimension="Height" />
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="Width" >
          <ImageDim imageset="MyTheme" image="WindowBottomRight" dimension="Width" />
        </Dim>
        <Dim type="Height" >
          <ImageDim imageset="MyTheme" image="WindowBottomRight" dimension="Height" />
        </Dim>
      </Area>
      <Image imageset="MyTheme" image="WindowBottomRight" />
      <VertFormat type="Stretched" />
      <HorzFormat type="Stretched" />
    </ImageryComponent>
  </ImagerySection>
  <ImagerySection name="notitle_frame">
    <ImageryComponent>
      <Area>
        <Dim type="LeftEdge" >
          <AbsoluteDim value="0" />
        </Dim>
        <Dim type="TopEdge" >
          <AbsoluteDim value="0" />
        </Dim>
        <Dim type="Width" >
          <ImageDim imageset="MyTheme" image="WindowTopLeft" dimension="Width" />
        </Dim>
        <Dim type="Height" >
          <ImageDim imageset="MyTheme" image="WindowTopLeft" dimension="Height" />
        </Dim>
      </Area>
      <Image imageset="MyTheme" image="WindowTopLeft" />
      <VertFormat type="Stretched" />
      <HorzFormat type="Stretched" />
    </ImageryComponent>
    <ImageryComponent>
      <Area>
        <Dim type="LeftEdge" >
          <ImageDim imageset="MyTheme" image="WindowTopLeft" dimension="Width" />
        </Dim>
        <Dim type="TopEdge" >
          <AbsoluteDim value="0" />
        </Dim>
        <Dim type="RightEdge" >
          <UnifiedDim scale="1" type="RightEdge">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowTopRight" dimension="Width" />
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="Height" >
          <ImageDim imageset="MyTheme" image="WindowTopEdge" dimension="Height" />
        </Dim>
      </Area>
      <Image imageset="MyTheme" image="WindowTopEdge" />
      <VertFormat type="Stretched" />
      <HorzFormat type="Stretched" />
    </ImageryComponent>
    <ImageryComponent>
      <Area>
        <Dim type="LeftEdge" >
          <UnifiedDim scale="1" type="RightEdge">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowTopRight" dimension="Width" />
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="TopEdge" >
          <AbsoluteDim value="0" />
        </Dim>
        <Dim type="RightEdge" >
          <UnifiedDim scale="1" type="RightEdge" />
        </Dim>
        <Dim type="Height" >
          <ImageDim imageset="MyTheme" image="WindowTopRight" dimension="Height" />
        </Dim>
      </Area>
      <Image imageset="MyTheme" image="WindowTopRight" />
      <VertFormat type="Stretched" />
      <HorzFormat type="Stretched" />
    </ImageryComponent>
    <ImageryComponent>
      <Area>
        <Dim type="LeftEdge" >
          <AbsoluteDim value="0" />
        </Dim>
        <Dim type="TopEdge" >
          <ImageDim imageset="MyTheme" image="WindowTopLeft" dimension="Height" />
        </Dim>
        <Dim type="Width" >
          <ImageDim imageset="MyTheme" image="WindowLeftEdge" dimension="Width" />
        </Dim>
        <Dim type="Height" >
          <UnifiedDim scale="1" type="BottomEdge">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowBottomLeft" dimension="Height">
                <DimOperator op="Add">
                  <ImageDim imageset="MyTheme" image="WindowTopLeft" dimension="Height" />
                </DimOperator>
              </ImageDim>
            </DimOperator>
          </UnifiedDim>
        </Dim>
      </Area>
      <Image imageset="MyTheme" image="WindowLeftEdge" />
      <VertFormat type="Tiled" />
      <HorzFormat type="Stretched" />
    </ImageryComponent>
    <ImageryComponent>
      <Area>
        <Dim type="LeftEdge" >
          <AbsoluteDim value="0" />
        </Dim>
        <Dim type="TopEdge" >
          <UnifiedDim scale="1" type="Height">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowBottomLeft" dimension="Height" />
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="Width" >
          <ImageDim imageset="MyTheme" image="WindowBottomLeft" dimension="Width" />
        </Dim>
        <Dim type="Height" >
          <ImageDim imageset="MyTheme" image="WindowBottomLeft" dimension="Height" />
        </Dim>
      </Area>
      <Image imageset="MyTheme" image="WindowBottomLeft" />
      <VertFormat type="Stretched" />
      <HorzFormat type="Stretched" />
    </ImageryComponent>
    <ImageryComponent>
      <Area>
        <Dim type="LeftEdge" >
          <ImageDim imageset="MyTheme" image="WindowLeftEdge" dimension="Width" />
        </Dim>
        <Dim type="TopEdge" >
          <ImageDim imageset="MyTheme" image="WindowTopLeft" dimension="Height" />
        </Dim>
        <Dim type="Width" >
          <UnifiedDim scale="1" type="Width">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowRightEdge" dimension="Width">
                <DimOperator op="Add">
                  <ImageDim imageset="MyTheme" image="WindowLeftEdge" dimension="Width" />
                </DimOperator>
              </ImageDim>
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="Height" >
          <UnifiedDim scale="1" type="BottomEdge">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowBottomEdge" dimension="Height">
                <DimOperator op="Add">
                  <ImageDim imageset="MyTheme" image="WindowTopLeft" dimension="Height" />
                </DimOperator>
              </ImageDim>
            </DimOperator>
          </UnifiedDim>
        </Dim>
      </Area>
      <Image imageset="MyTheme" image="ClientBrush" />
      <VertFormat type="Tiled" />
      <HorzFormat type="Stretched" />
    </ImageryComponent>
    <ImageryComponent>
      <Area>
        <Dim type="LeftEdge" >
          <ImageDim imageset="MyTheme" image="WindowBottomLeft" dimension="Width" />
        </Dim>
        <Dim type="TopEdge" >
          <UnifiedDim scale="1" type="Height">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowBottomEdge" dimension="Height" />
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="Width" >
          <UnifiedDim scale="1" type="Width">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowRightEdge" dimension="Width">
                <DimOperator op="Add">
                  <ImageDim imageset="MyTheme" image="WindowLeftEdge" dimension="Width" />
                </DimOperator>
              </ImageDim>
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="Height" >
          <ImageDim imageset="MyTheme" image="WindowBottomEdge" dimension="Height" />
        </Dim>
      </Area>
      <Image imageset="MyTheme" image="WindowBottomEdge" />
      <VertFormat type="Stretched" />
      <HorzFormat type="Stretched" />
    </ImageryComponent>
    <ImageryComponent>
      <Area>
        <Dim type="LeftEdge" >
          <UnifiedDim scale="1" type="Width">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowRightEdge" dimension="Width" />
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="TopEdge" >
          <ImageDim imageset="MyTheme" image="WindowTopLeft" dimension="Height" />
        </Dim>
        <Dim type="Width" >
          <ImageDim imageset="MyTheme" image="WindowRightEdge" dimension="Width" />
        </Dim>
        <Dim type="Height" >
          <UnifiedDim scale="1" type="BottomEdge">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowBottomRight" dimension="Height">
                <DimOperator op="Add">
                  <ImageDim imageset="MyTheme" image="WindowTopLeft" dimension="Height" />
                </DimOperator>
              </ImageDim>
            </DimOperator>
          </UnifiedDim>
        </Dim>
      </Area>
      <Image imageset="MyTheme" image="WindowRightEdge" />
      <VertFormat type="Tiled" />
      <HorzFormat type="Stretched" />
    </ImageryComponent>
    <ImageryComponent>
      <Area>
        <Dim type="LeftEdge" >
          <UnifiedDim scale="1" type="Width">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowBottomRight" dimension="Width" />
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="TopEdge" >
          <UnifiedDim scale="1" type="Height">
            <DimOperator op="Subtract">
              <ImageDim imageset="MyTheme" image="WindowBottomRight" dimension="Height" />
            </DimOperator>
          </UnifiedDim>
        </Dim>
        <Dim type="Width" >
          <ImageDim imageset="MyTheme" image="WindowBottomRight" dimension="Width" />
        </Dim>
        <Dim type="Height" >
          <ImageDim imageset="MyTheme" image="WindowBottomRight" dimension="Height" />
        </Dim>
      </Area>
      <Image imageset="MyTheme" image="WindowBottomRight" />
      <VertFormat type="Stretched" />
      <HorzFormat type="Stretched" />
    </ImageryComponent>
  </ImagerySection>
  <ImagerySection name="withtitle_noframe_client_area">
    <ImageryComponent>
      <Area>
        <Dim type="LeftEdge" >
          <AbsoluteDim value="0" />
        </Dim>
        <Dim type="TopEdge" >
          <WidgetDim widget="__auto_titlebar__" dimension="Height" />
        </Dim>
        <Dim type="Width" >
          <UnifiedDim scale="1" type="Width" />
        </Dim>
        <Dim type="BottomEdge" >
          <UnifiedDim scale="1" type="BottomEdge" />
        </Dim>
      </Area>
      <Image imageset="MyTheme" image="ClientBrush" />
      <VertFormat type="Tiled" />
      <HorzFormat type="Stretched" />
    </ImageryComponent>
  </ImagerySection>
  <ImagerySection name="notitle_noframe_client_area">
    <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>
      <Image imageset="MyTheme" image="ClientBrush" />
      <VertFormat type="Tiled" />
      <HorzFormat type="Stretched" />
    </ImageryComponent>
  </ImagerySection>
  <StateImagery name="ActiveWithTitleWithFrame">
    <Layer>
      <Section section="withtitle_frame" />
    </Layer>
  </StateImagery>
  <StateImagery name="InactiveWithTitleWithFrame">
    <Layer>
      <Section section="withtitle_frame" />
    </Layer>
  </StateImagery>
  <StateImagery name="DisabledWithTitleWithFrame">
    <Layer>
      <Section section="withtitle_frame">
        <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
      </Section>
    </Layer>
  </StateImagery>
  <StateImagery name="ActiveWithTitleNoFrame">
    <Layer>
      <Section section="withtitle_noframe_client_area" />
    </Layer>
  </StateImagery>
  <StateImagery name="InactiveWithTitleNoFrame">
    <Layer>
      <Section section="withtitle_noframe_client_area" />
    </Layer>
  </StateImagery>
  <StateImagery name="DisabledWithTitleNoFrame">
    <Layer>
      <Section section="withtitle_noframe_client_area">
        <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
      </Section>
    </Layer>
  </StateImagery>
  <StateImagery name="ActiveNoTitleWithFrame">
    <Layer>
      <Section section="notitle_frame" />
    </Layer>
  </StateImagery>
  <StateImagery name="InactiveNoTitleWithFrame">
    <Layer>
      <Section section="notitle_frame" />
    </Layer>
  </StateImagery>
  <StateImagery name="DisabledNoTitleWithFrame">
    <Layer>
      <Section section="notitle_frame">
        <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
      </Section>
    </Layer>
  </StateImagery>
  <StateImagery name="ActiveNoTitleNoFrame">
    <Layer>
      <Section section="notitle_noframe_client_area" />
    </Layer>
  </StateImagery>
  <StateImagery name="InactiveNoTitleNoFrame">
    <Layer>
      <Section section="notitle_noframe_client_area" />
    </Layer>
  </StateImagery>
  <StateImagery name="DisabledNoTitleNoFrame">
    <Layer>
      <Section section="notitle_noframe_client_area">
        <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
      </Section>
    </Layer>
  </StateImagery>
</WidgetLook>
Last edited by maori on Thu Feb 18, 2010 19:38, edited 1 time in total.
trying to upgrade to 0.8.2 from 0.7.9 :D

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: titlebar prob

Postby CrazyEddie » Thu Feb 18, 2010 19:29

Hi,

This is due to the client-area fix that was made for 0.7.0 and requires skins to be updated so that components that need to appear outside what would be considered the 'client area' of the owning window have the property "NonClient" set to "True".

Obviously we've made these fixes for the standard CEGUI skins, but for those skins made by third parties, like the Aqua skin, it's obviously up to the skin authors to do the updates ;)

What this basically means is going through the looknfeel and adding that property setting to the various <Child> components. In this specific case - for the titlebar - you could set the property in the WidgetLook for the titlebar itself, since all titlebars will want to be non-client (probably, anyway).

So, you just add:

Code: Select all

<Property name="NonClient" value="True" />

at the bottom of any <Child> definition that's giving you issues.

HTH

CE
Last edited by CrazyEddie on Thu Feb 18, 2010 20:07, edited 1 time in total.
Reason: Fix small typo in the example property (had a '>' instead of the closing '"').

maori
Just can't stay away
Just can't stay away
Posts: 161
Joined: Tue Sep 23, 2008 13:05
Location: Plumstead , UK

Re: titlebar prob

Postby maori » Thu Feb 18, 2010 19:38

heya CE


wow easy when you know how :hammer:

Thanks bud
trying to upgrade to 0.8.2 from 0.7.9 :D


Return to “Help”

Who is online

Users browsing this forum: No registered users and 7 guests