View Single Post
Old 08-19-2017, 03:19 PM   #1
finchy
A Gray Wolf
 
Join Date: Apr 2015
Posts: 5
Default removing titlebar from containers and still being able to move container around

I've been searching around trying to find an answer, but seems everything i can find related is so outdated the data isn't available anymore.

So i'm trying to edit the container.xml to allow me to move containers around the screen, while having the titlebar removed.

The chatwindow.xml already has this change made where the titlebar is missing and there is an addition made that allows for the window to be picked up and dragged around the screen.


From the chatwindow.xml:

<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_RoundedNoTitle</DrawTemplate>
<Style_Titlebar>false</Style_Titlebar>
<Style_Closebox>false</Style_Closebox>
<Style_Minimizebox>false</Style_Minimizebox>
<Style_Border>true</Style_Border>
<Style_Sizable>true</Style_Sizable>
<Style_ClientMovable>true</Style_ClientMovable>
<Escapable>false</Escapable>
<Pieces>CW_ChatOutput</Pieces>
<Pieces>CW_ChatInput</Pieces>
</Screen>


you can see here the titlebar is false and the new line for clientmovable was added to allow you to move the window. I tried to add this to the container.xml, but it is not working. Is there something additional i need to do to get this piece to work on container as well?


Here is a section of the container for reference:

<Screen item="ContainerWindow">
<Layout>Container_LayoutV</Layout>
<RelativePosition>false</RelativePosition>
<Location>
<X>350</X>
<Y>100</Y>
</Location>
<Size>
<CX>60</CX>
<CY>300</CY>
</Size>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<TooltipReference>Container</TooltipReference>
<DrawTemplate>WDT_RoundedNoTitle</DrawTemplate>
<Style_Titlebar>false</Style_Titlebar>
<Style_Closebox>true</Style_Closebox>
<Style_Minimizebox>false</Style_Minimizebox>
<Style_Border>true</Style_Border>
<Style_Sizable>true</Style_Sizable>
<Style_ClientMovable>true</Style_ClientMovable>
<Pieces>ContainerCombine_Icon</Pieces>
<Pieces>Container_Slot</Pieces>
<Pieces>TileLayoutBox:ContainerStandard_Items</Pieces>
<Pieces>TileLayoutBox:ContainerStandardWithDone_Items</Pieces>
<Pieces>TileLayoutBox:ContainerCombine_Items</Pieces>
<Pieces>Container_Combine</Pieces>
<Pieces>StandardDoneButton</Pieces>
<Pieces>CombineDoneButton</Pieces>
<Pieces>Container_StandardSize</Pieces>
<Pieces>Container_CombineSize</Pieces>
</Screen>



Thank you for your help and time!
finchy is offline   Reply With Quote