HOWTO: Move a frame hiding in corner (Mac Users)

Articles on how to do things in MapTool (answers only here -- questions should stay in the main MT forum)

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice

Forum rules
Please discuss all HOWTO topics in the main forum. They will be moved here by a moderator when appropriate.
Locked
User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

HOWTO: Move a frame hiding in corner (Mac Users)

Post by aliasmask »

I recently tripped over a solution to this problem. You can use Wiki: resetFrame() function to reset and center the frame. There's no good automated way to do this other than just typing the command in to chat, IMO. If you do put resetFrame in the code after creating a frame (for the first time) you could use isFrameVisible as a test. But, if you're like me and stack frames (creating tabs) is doesn't consider those "visible". Strangely enough, you can pin them (auto-hide) and they will be considered visible.

Code: Select all

[H: frameName = "My Frame"]
[H: resetFrame = ! isFrameVisible(frameName)]
[frame(frameName): {...}]
[H, if(resetFrame): resetFrame(frameName)] 
This problem will be resolved in b89.

Locked

Return to “How To”