(warriorofmight was right) We inadverently derailed Danille's thread so I started this one to continue the discusson on creating new windows.
I have several "new" windows in my UI. You need to add code to the EQUI_TopLevelScreens.xml, and add to the window you have the button in.
Here is an example of my EQ button window. I added a new Sparxx button that when clicked will open a small "new" window that contains my UI contact and version information.
EQUI_EQMainWnd.xml
(Code I added to the window)
Code:
(Top)
<Label item="EQM_SparxxUI_Yahoo_Label">
<ScreenID>EQM_SparxxUI_Yahoo_Label</ScreenID>
<Font>3</Font>
<Text>Yahoo IM: SparxxInterface</Text>
<TextColor>
<R>0</R>
<G>255</G>
<B>255</B>
</TextColor>
<Size>
<CX>204</CX>
<CY>15</CY>
</Size>
<Location>
<X>5</X>
<Y>93</Y>
</Location>
</Label>
<Label item="EQM_SparxxUI_Google_Label">
<ScreenID>EQM_SparxxUI_Google_Label</ScreenID>
<Font>3</Font>
<Text>Google Talk:
[email protected]</Text>
<TextColor>
<R>0</R>
<G>255</G>
<B>255</B>
</TextColor>
<Size>
<CX>210</CX>
<CY>15</CY>
</Size>
<Location>
<X>5</X>
<Y>78</Y>
</Location>
</Label>
<Label item="EQM_SparxxUI_ICQ_Label">
<ScreenID>EQM_SparxxUI_ICQ_Label</ScreenID>
<Font>3</Font>
<Text>ICQ IM: 1555222</Text>
<TextColor>
<R>0</R>
<G>255</G>
<B>255</B>
</TextColor>
<Size>
<CX>206</CX>
<CY>15</CY>
</Size>
<Location>
<X>5</X>
<Y>63</Y>
</Location>
</Label>
<Label item="EQM_SparxxUI_FB_Label">
<ScreenID>EQM_SparxxUI_FB_Label</ScreenID>
<Font>3</Font>
<Text>WWW.Facebook.Com/SparxxInterface</Text>
<TextColor>
<R>0</R>
<G>255</G>
<B>255</B>
</TextColor>
<Size>
<CX>217</CX>
<CY>15</CY>
</Size>
<Location>
<X>5</X>
<Y>48</Y>
</Location>
</Label>
<Label item="EQM_SparxxUI_vLabel">
<ScreenID>EQM_SparxxUI_vLabel</ScreenID>
<Font>3</Font>
<Text>Version 14.4</Text>
<TextColor>
<R>255</R>
<G>255</G>
<B>0</B>
</TextColor>
<Size>
<CX>218</CX>
<CY>16</CY>
</Size>
<AlignCenter>true</AlignCenter>
<Location>
<X>1</X>
<Y>26</Y>
</Location>
</Label>
<Label item="EQM_SparxxUI_Label">
<ScreenID>EQM_SparxxUI_Label</ScreenID>
<Font>6</Font>
<Text>SparxxUI</Text>
<TextColor>
<R>255</R>
<G>255</G>
<B>0</B>
</TextColor>
<Size>
<CX>218</CX>
<CY>27</CY>
</Size>
<AlignCenter>true</AlignCenter>
<Location>
<X>1</X>
<Y>1</Y>
</Location>
</Label>
(Button)
<Button item="EQW_Sparxx_Button">
<EQType>openwnd EQUI_SparxxUI</EQType>
<RelativePosition>true</RelativePosition>
<Location>
<X>0</X>
<Y>38</Y>
</Location>
<Size>
<CX>38</CX>
<CY>14</CY>
</Size>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<Style_Checkbox>true</Style_Checkbox>
<Text>Sparxx</Text>
<TextColor>
<R>0</R>
<G>255</G>
<B>0</B>
</TextColor>
<ButtonDrawTemplate>
<Normal>A_BigBtnNormal</Normal>
<Pressed>A_BigBtnPressed</Pressed>
<Flyby>A_BigBtnFlyby</Flyby>
<Disabled>A_BigBtnDisabled</Disabled>
<PressedFlyby>A_BigBtnPressedFlyby</PressedFlyby>
</ButtonDrawTemplate>
<Font>2</Font>
<TooltipReference>Opens the SparxxUI Version popup window.</TooltipReference>
</Button>
(Bottom)
<Screen item="EQUI_SparxxUI">
<RelativePosition>true</RelativePosition>
<EQType>closenotclicked</EQType>
<Location>
<X>600</X>
<Y>600</Y>
</Location>
<Size>
<CX>230</CX>
<CY>120</CY>
</Size>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<Text>Sparxx Version Info Popup Window</Text>
<DrawTemplate>WDT_RoundedNoTitle</DrawTemplate>
<Style_Titlebar>false</Style_Titlebar>
<Style_Closebox>false</Style_Closebox>
<Style_Minimizebox>false</Style_Minimizebox>
<Style_Border>true</Style_Border>
<Style_Sizable>false</Style_Sizable>
<Font>2</Font>
<Pieces>EQM_SparxxUI_Label</Pieces>
<Pieces>EQM_SparxxUI_vLabel</Pieces>
<Pieces>EQM_SparxxUI_FB_Label</Pieces>
<Pieces>EQM_SparxxUI_ICQ_Label</Pieces>
<Pieces>EQM_SparxxUI_Google_Label</Pieces>
<Pieces>EQM_SparxxUI_Yahoo_Label</Pieces>
</Screen>
EQUI_TopLevelScreens.xml
(Code I added to the window)
Code:
<Screens>
<ScreenName>EQUI_SparxxUI</ScreenName>
<InitialSettings>allbutvis_and_firstvis</InitialSettings>
</Screens>