What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Automatically Resize PlusWnds

[?] Automatically Resize PlusWnds
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
O.P. [?] Automatically Resize PlusWnds
Is there any way to do it? I want to load text from a website of various lengths and have the window resize if nessacerry to accomodate it...
<Eljay> "Problems encountered: shit blew up" :zippy:
11-12-2007 04:53 PM
Profile PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: [?] Automatically Resize PlusWnds
A quick search found me this thread=78300
[Image: 1-0.png]
             
11-12-2007 07:21 PM
Profile PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
O.P. RE: [?] Automatically Resize PlusWnds
But is there any way to determine the size of the text box contents (and easily)? Else when I change the size it won't be accurate. I think I might be able to resize the StaticControl to fit the contents and then find the height and add about 50 for the titlebar and bottom bar... Any idea how to do it?
<Eljay> "Problems encountered: shit blew up" :zippy:
11-12-2007 09:21 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: [?] Automatically Resize PlusWnds
I found this on MSDN: How To Calculate a Bounding Rectangle For a of String Text. However, I guess it'll be very hard to re-create that piece of code in a MP!L script... :-/
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
11-13-2007 04:58 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
O.P. RE: [?] Automatically Resize PlusWnds
You're right... I think it might be easier if I work out the maximum characters per line, work out the number of lines and the height of each line and then resize the window to that :-| lol
<Eljay> "Problems encountered: shit blew up" :zippy:
11-13-2007 05:04 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: [?] Automatically Resize PlusWnds
Yeh, that would be the easiest way. However, you might want to look what is the widest character, because if I would type 5 underscores _____ it's lots wider than 5 dots .....

Good luck! (y)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
11-13-2007 07:56 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On