View Single Post
Old 08-02-2002, 07:17 PM   #12
UniDyne
A Tundra Mammoth
 
Join Date: Jul 2002
Server: Veeshan
Posts: 64
Post

Okay - here is code for a two tab chat window. Unfortunately, the filter appears to work on the *entire* window rather than one pane at a time. I think this is a limitation of EQ - after all, one pane per window is the norm, right?

Anyway, this contains two chat panes in different tabs. There is only one edit field for chat input at the bottom. Hopefully, this will give everyone an idea on how tabbed views should work. This only took about 2 minutes to put together and test.

If VI gets on the ball and fixes the UI, we could have a lot of flexibility here!

Code:
<?xml version = "1.0"?> <XML ID = "EQInterfaceDefinitionLanguage"> <Schema xmlns = "EverQuestData" xmlns:dt = "EverQuestDataTypes"/> <Editbox item = "CW_ChatInput"> <ScreenID>CWChatInput</ScreenID> <DrawTemplate>WDT_Inner</DrawTemplate> <RelativePosition>true</RelativePosition> <AutoStretch>true</AutoStretch> <LeftAnchorOffset>2</LeftAnchorOffset> <TopAnchorOffset>21</TopAnchorOffset> <RightAnchorOffset>2</RightAnchorOffset> <BottomAnchorOffset>0</BottomAnchorOffset> <TopAnchorToTop>false</TopAnchorToTop> <RightAnchorToLeft>false</RightAnchorToLeft> <BottomAnchorToTop>false</BottomAnchorToTop> <Style_Transparent>true</Style_Transparent> </Editbox> <STMLbox item = "CW_ChatOutput"> <ScreenID>CWChatOutput</ScreenID> <DrawTemplate>WDT_Inner</DrawTemplate> <RelativePosition>true</RelativePosition> <Style_VScroll>true</Style_VScroll> <AutoStretch>true</AutoStretch> <LeftAnchorOffset>2</LeftAnchorOffset> <TopAnchorOffset>0</TopAnchorOffset> <RightAnchorOffset>2</RightAnchorOffset> <BottomAnchorOffset>22</BottomAnchorOffset> <RightAnchorToLeft>false</RightAnchorToLeft> <BottomAnchorToTop>false</BottomAnchorToTop> <Style_Border>true</Style_Border> <Style_Transparent>true</Style_Transparent> </STMLbox> <Page item="Chat1"> <ScreenID>Chat1</ScreenID> <!--<Font>3</Font>--> <RelativePosition>true</RelativePosition> <Style_VScroll>false</Style_VScroll> <Style_HScroll>false</Style_HScroll> <Style_Transparent>false</Style_Transparent> <TooltipReference>Bars Page</TooltipReference> <DrawTemplate>WDT_Def</DrawTemplate> <TabIcon>A_SocialsTabIcon</TabIcon> <TabIconActive>A_SocialsTabActiveIcon</TabIconActive> <Pieces>CW_ChatOutput</Pieces> </Page> <STMLbox item = "CW_ChatOutput2"> <ScreenID>CWChatOutput2</ScreenID> <DrawTemplate>WDT_Inner</DrawTemplate> <RelativePosition>true</RelativePosition> <Style_VScroll>true</Style_VScroll> <AutoStretch>true</AutoStretch> <LeftAnchorOffset>2</LeftAnchorOffset> <TopAnchorOffset>0</TopAnchorOffset> <RightAnchorOffset>2</RightAnchorOffset> <BottomAnchorOffset>22</BottomAnchorOffset> <RightAnchorToLeft>false</RightAnchorToLeft> <BottomAnchorToTop>false</BottomAnchorToTop> <Style_Border>true</Style_Border> <Style_Transparent>true</Style_Transparent> </STMLbox> <Page item="Chat2"> <ScreenID>Chat2</ScreenID> <!--<Font>3</Font>--> <RelativePosition>true</RelativePosition> <Style_VScroll>false</Style_VScroll> <Style_HScroll>false</Style_HScroll> <Style_Transparent>false</Style_Transparent> <TooltipReference>Bars Page</TooltipReference> <DrawTemplate>WDT_Def</DrawTemplate> <TabIcon>A_SocialsTabIcon</TabIcon> <TabIconActive>A_SocialsTabActiveIcon</TabIconActive> <Pieces>CW_ChatOutput2</Pieces> </Page> <TabBox item = "ChatTabs"> <ScreenID>ChatTabs</ScreenID> <!--<Font>3</Font>--> <RelativePosition>true</RelativePosition> <AutoStretch>true</AutoStretch> <TopAnchorToTop>true</TopAnchorToTop> <BottomAnchorToTop>false</BottomAnchorToTop> <LeftAnchorToLeft>true</LeftAnchorToLeft> <RightAnchorToLeft>false</RightAnchorToLeft> <TabBorderTemplate>FT_DefTabBorder</TabBorderTemplate> <PageBorderTemplate>FT_DefPageBorder</PageBorderTemplate> <Pages>Chat1</Pages> <Pages>Chat2</Pages> </TabBox> <Screen item = "ChatWindow"> <RelativePosition>false</RelativePosition> <Location> <X>95</X> <Y>280</Y> </Location> <Size> <CX>421</CX> <CY>200</CY> </Size> <Style_VScroll>false</Style_VScroll> <Style_HScroll>false</Style_HScroll> <Style_Transparent>false</Style_Transparent> <DrawTemplate>WDT_Def2</DrawTemplate> <Style_Titlebar>true</Style_Titlebar> <Style_Closebox>true</Style_Closebox> <Style_Minimizebox>true</Style_Minimizebox> <Style_Border>true</Style_Border> <Style_Sizable>true</Style_Sizable> <Pieces>ChatTabs</Pieces> <Pieces>CW_ChatInput</Pieces> </Screen> </XML>


As far as the tabbed player window goes, I've been working on other stuff and haven't had the time to finish, but the above code should help others do similar stuff.

Later!

[EDIT] The second panel shouldn't work at all. In fact, when the second panel is active, no text will go to the first panel at all. Apparently EQ treats the chat window as a single entity and does not recognize it as a collection of components. I would not advise messing with the chat window text boxes for now.
UniDyne is offline   Reply With Quote