TextRectangle

Posted by Seritay on Tue 13 Nov 2012 12:53 PM — 4 posts, 22,408 views.

#0
Hello,


I am using mini-windows to develop a client (more or less), and I've ran into a small issue I can't quite figure out how to solve.

I've managed to create a miniwindow, and use the "movewindow" library to allow it to be movable. This is awesome. However, I'm using the TextRectangle to resize the output window. Whenever I try to initialize the movewindow pack for that as well, I keep getting errors such as "no window with the name X exists".

I can verify the window doesn't exist using the code found on http://www.mushclient.com/mushclient/mw_creation.htm to print out the available window names. So my question is this.. how can I make the output window resizable/draggable like a miniwindow implementing the movewindow library?
USA #1
The output window, sadly, isn't a miniwindow, so the API for manipulating it is somewhat limited. Your best bet would be to create a miniwindow that either covers the whole output window, or always remains under the user's mouse, and handles those miniwindow events via functions like TextRectangle. That has a pretty high probability of conflicting with all the other miniwindows, so you'd need to name it something (miniwindows are sorted in lexicographical order) that puts it behind everything else.
Australia Forum Administrator #2
Fiendish has made the output window in the Aardwolf client (which is MUSHclient with some rather fancy plugins) to be drag-able.

You could look at how he did that (I suspect an invisible miniwindow at the top which accepts the mouse click). As Twisol said, the output area isn't actually a miniwindow so you can't use the miniwindow functions on it directly. You could overlay miniwindows on top of it if you wanted to add extra graphics etc.
USA Global Moderator #3
Quote:
I suspect an invisible miniwindow at the top which accepts the mouse click
This is correct. Likewise with resizing.