View Single Post
  #3  
Unread 04-21-2007, 10:46 PM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

I tried putting the set_focus command into OnPress and it still does the same thing.

<Checkbox BackgroundOpacity="1.000" LocalTooltip="Mimimize" Name="Minimize" OnPress="set_focus Parent.Parent.Parent.Parent.Parent.Player.Fullpath" OnSet="OldSize=Parent.Parent.Parent.Parent.Size
Parent.Parent.Parent.Parent.MinimumSize=325,27
Parent.Parent.Parent.Parent.Size=325,27
Parent.Parent.Parent.Parent.UserResizable=false
LocalTooltip=Restore" OnUnset="Parent.Parent.Parent.Parent.MinimumSize=600,150
Parent.Parent.Parent.Parent.Size=OldSize
Parent.Parent.Parent.Parent.UserResizable=true
LocalTooltip=Minimize" ScrollExtent="13,9" Size="13,9" Style="ShowControl.Style"></Checkbox>

Stripping the scripts of everything else:

<Checkbox BackgroundOpacity="1.000" LocalTooltip="Mimimize" Name="Minimize" OnSet="set_focus Parent.Parent.Parent.Parent.Parent.Player.Fullpath" OnUnset="set_focus Parent.Parent.Parent.Parent.Parent.Player.Fullpath" ScrollExtent="13,9" Size="13,9" Style="ShowControl.Style"></Checkbox>

Using "=" style commands:

<Checkbox BackgroundOpacity="1.000" LocalTooltip="Mimimize" Name="Minimize" OnSet="set_focus=Parent.Parent.Parent.Parent.Parent.Player.Fullpath
set_focus=Parent.Parent.Parent.Parent.Parent.Player.Fullpath" OnUnset="set_focus=Parent.Parent.Parent.Parent.Parent.Player.Fullpath
set_focus=Parent.Parent.Parent.Parent.Parent.Player.Fullpath" ScrollExtent="13,9" Size="13,9" Style="ShowControl.Style"></Checkbox>

Pressing a button at the first level of the window:

<Checkbox BackgroundOpacity="1.000" LocalTooltip="Mimimize" Name="Minimize" OnSet="Parent.Parent.Parent.Parent.SetFocusToPlayerWindow.Press=true" OnUnset="Parent.Parent.Parent.Parent.SetFocusToPlayerWindow.Press=true" ScrollExtent="13,9" Size="13,9" Style="ShowControl.Style"></Checkbox>
...
<Button Name="SetFocusToPlayerWindow" OnPress="set_focus Parent.Parent.Player.Fullpath" Size="0,0" Visible="false"/>

Last edited by Othesus : 04-21-2007 at 11:39 PM.
Reply With Quote