Thread: Nesting Issues
View Single Post
  #1  
Unread 05-01-2012, 02:09 PM
TalTal TalTal is offline
A Griffon
Featured
 
Join Date: Nov 2005
Server: Nagafen
Posts: 1,095
Default Nesting Issues

I had a bit of free time and wantted to try out an idea but I am having issues. Here it is:

Window in Custom:


<Page AlwaysOnTop="true" eq2usescomwndcontrols="true" Location="100,100" MinimumSize="535,518" Name="Settings" PackLocation="nfn,bottom" ScrollExtent="535,518" Size="535,518" UserMovable="true" UserResizable="false" >
<Page Location="-2,15" MinimumSize="535,498" Name="TabPages" PackLocation="nfn,bottom" ScrollExtent="535,498" Size="535,498" Visible="true">
<Page Location="0,0" MinimumSize="535,498" Name="Bar_Settings" PackLocation="left,top" ScrollExtent="535,498" Size="535,498" Visible="false">
<Button Location="235,466" MaximumSize="16384,26" Size="32,32" Name="SetButton" OnPress="
Parent.Parent.Parent.Parent.Parent.MainHUD.Clock.SetDisplay.Text='Test'
">Update</Button>
</Page>
</Page>
</Page>


Window in MainHUD (the clock):

<Page AlwaysOnBottom="true" eq2usescomwndcontrols="true" Location="0,748" MinimumSize="800,50" Name="Clock" PackLocation="nfn,bottom" ScrollExtent="800,50" Size="800,50" UserMovable="true" UserResizable="true">
<Button Name="SetDisplay" Size="32,32" OnPress="
Parent.Parent.Parent.Custom.Settings.TabPages.Bar_Settings.SetButton.Text='Press Me'
">Tester</Button>
</Page>

The onpress event of the button 'SetDisplay' will change the text of the button 'SetButton' from in-game.

The onpress event of the button 'SetButton' will NOT change the text of the button 'SetDisplay' from in-game.

I'm guessing that it is a nesting issue but I cannot track it down. Any tips?

Silat
Reply With Quote