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 help

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


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Tue Feb 10, 2004 1:23 pm    Post subject: RESIZE help Reply with quote

Ok this one i really stumping me now...

I have a dialog with eliments on it and I want to make it so if the dialog is sized less then 640w it should go to 640w and if its sized less then 480h it should return to 480h.

Plus the elimients will need sizing but that not a problem.

Can some one please help here all i can get it to do is always resize to 640X480 no matter how big or small it is...
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Feb 10, 2004 4:48 pm    Post subject: Reply with quote

This should work:

Code:

  :resize
  if @not(@greater(@dlgpos(,W),640))
    dialog setpos,,,,640
  end
  if @not(@greater(@dlgpos(,H),480))
    dialog setpos,,,,,480
  end
  goto evloop

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Tue Feb 10, 2004 4:52 pm    Post subject: Reply with quote

You might take a look at Mac's excellent reply on resizing topic it may help you:
http://forum.vdsworld.com/viewtopic.php?t=2423&highlight=resizable

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
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