Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ Miniwindows ➜ TextRectangle

TextRectangle

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Seritay   (1 post)  Bio
Date Tue 13 Nov 2012 12:53 PM (UTC)
Message
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?
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #1 on Tue 13 Nov 2012 04:57 PM (UTC)
Message
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.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #2 on Tue 13 Nov 2012 09:07 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Fiendish   USA  (2,533 posts)  Bio   Global Moderator
Date Reply #3 on Fri 16 Nov 2012 11:54 AM (UTC)
Message
Quote:
I suspect an invisible miniwindow at the top which accepts the mouse click
This is correct. Likewise with resizing.

https://github.com/fiendish/aardwolfclientpackage
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


16,712 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.