forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


resize PuTTY window

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
bbelcher
Contributor
Contributor


Joined: 30 Jul 2002
Posts: 172

PostPosted: Thu Apr 07, 2005 6:28 pm    Post subject: resize PuTTY window Reply with quote

Hello,

I'm trying to reposition a PuTTY session window and having a difficult time at it. It's a telnet/ssh client

http://www.chiark.greenend.org.uk/~sgtatham/putty/

The window will allow me to position the top, left but the width and height will not resize.

Code:
Window position,#PuTTY,0,0,1200,400

I know this is right and the window receives the message but as I said it will not resize.

When I resize it manually it does it by rows and columns i.e. 12rows X 112columns. But if I look at the window via window spy it show the 923 X 228


Any ideas?
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Apr 07, 2005 10:14 pm    Post subject: Reply with quote

Perhaps the window needs to be sent a refresh message. There is an
API message you can send to do this; try searching for it. I hope this
was helpful. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
bbelcher
Contributor
Contributor


Joined: 30 Jul 2002
Posts: 172

PostPosted: Fri Apr 08, 2005 12:19 pm    Post subject: Reply with quote

I dont think it's a refresh problem. what I ment about the following statement

"12rows X 112columns. But if I look at the window via window spy it show the 923 X 228"

was 12 rows x 112 columns = 923 x 228 pixels. Also when I send a message to the window I can see it blink as if it were being redrawn. Window iconize, Maximize, normal all work but for some reason it wont resize.

Does anyone know what the API is to resize windows?
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Fri Apr 08, 2005 1:13 pm    Post subject: Reply with quote

SetWindowPos() in user32.dll.

I had to make a util to resize some apps with this (using VDSug.dll) in VDS 3. Wink

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group