Thread: Two Problems
View Single Post
  #3  
Unread 01-16-2006, 11:12 AM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

You close and settings button do not work because they are child nodes of the page frame.

Your code
Code:
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Location="0,5" Name="Frame" PackLocation="left,top" PackLocationProp="0000/0001,0005/0001" PackSize="absolute,absolute" PackSizeProp="0000/0001,0006/0001" RStyleDefault="/FrameStyles.single_pixel" ScrollExtent="244,290" Size="244,290">
<Button LocalTooltip="Window Settings" Location="210,-1" Name="Settings" PackLocation="right,top" PackLocationProp="-034/0001,-001/0001" ScrollExtent="18,18" Size="18,18" Style="/WindowElements.WindowFrame.data.settings.style" Tooltip="Window Settings" UserMovable="true"></Button>
<Button LocalTooltip="Close" Location="226,-1" Name="Close" PackLocation="right,top" PackLocationProp="-018/0001,-001/0001" ScrollExtent="18,18" Size="18,18" Style="/WindowElements.WindowFrame.data.close.style" Tooltip="Close" UserMovable="true"></Button>
<Text AbsorbsInput="false" Font="/TextStyles.Normal.NormalStyle" LocalText="Inventory &amp; Status" Location="4,0" MaxLines="1" Name="Title" PackSize="absolute,fixed" PackSizeProp="0138/0001,0002/0003" ScrollExtent="106,15" ShadowStyle="/ShadowStylesNew.Outline.style" Size="106,15" TextAlignmentVertical="Center" TextColor="#F0D080">Inventory &amp; Status</Text>
</Page>
From the structure of your winow, it's the old way SOE structured it. Doing it this way IF it still works, your window control buttons can't be children of any node except the root.

changing your code to;
Code:
<Button LocalTooltip="Window Settings" Location="210,-1" Name="Settings" PackLocation="right,top" PackLocationProp="-034/0001,-001/0001" ScrollExtent="18,18" Size="18,18" Style="/WindowElements.WindowFrame.data.settings.style" Tooltip="Window Settings" UserMovable="true"></Button>
<Button LocalTooltip="Close" Location="226,-1" Name="Close" PackLocation="right,top" PackLocationProp="-018/0001,-001/0001" ScrollExtent="18,18" Size="18,18" Style="/WindowElements.WindowFrame.data.close.style" Tooltip="Close" UserMovable="true"></Button>
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Location="0,5" Name="Frame" PackLocation="left,top" PackLocationProp="0000/0001,0005/0001" PackSize="absolute,absolute" PackSizeProp="0000/0001,0006/0001" RStyleDefault="/FrameStyles.single_pixel" ScrollExtent="244,290" Size="244,290"/>
should get you going.

The current way to structure you window frame is;
Code:
<Page Name="WindowFrame">
  <Button Name="Close"></Button>
  <Button Name="Help"></Button>
  <Button Name="Settings"></Button>
  <Page Name="LeftGrouper">
    <Text Name="Title"></Text>
  </Page>
  <Page Name="RightGrouper/>
  <Page Name="Frame"/>
  <Page Name="Bkg"/>
</Page>
Hope this helps you out.
__________________
Landiin's EQ2MAP Updater Discussion Download

Last edited by Landiin : 01-16-2006 at 09:12 PM.
Reply With Quote