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 


How can I resiz
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Mon Apr 12, 2004 7:42 am    Post subject: Reply with quote

I changed the top part back to the way it was Garrett and it still works perfectly, cool Very Happy

Code:
 DIALOG CREATE,test,-1,0,400,175,resizable

  DIALOG ADD,LINE,LINE1,5,5,390,135
DIALOG ADD, GRADIENT,cool,-70,0,589,410,red,blue,,topTObottom
DIALOG ADD, GRADIENT,cool2,342,0,589,350,blue,red,,topTObottom
  DIALOG ADD,LIST,box1,15,11,,,,,
  DIALOG ADD,BUTTON,cancel,148,285,43,19,Exit,,
  DIALOG SHOW

:EVLOOP
  WAIT EVENT
  GOTO @EVENT()

:RESIZE
DIALOG SETPOS,cool,-70,0,@dlgpos(,w),@sum(@dlgpos(,h),20)
DIALOG SETPOS,cool2,@fsub(@dlgpos(,h),52),0,@dlgpos(,w),350
dialog setpos,cancel,@diff(@dlgpos(,h),27),@diff(@dlgpos(,w),115)
dialog setpos,line1,5,5,@diff(@dlgpos(,w),10),@diff(@dlgpos(,h),40)
dialog setpos,box1,15,11,@diff(@dlgpos(,w),22),@diff(@dlgpos(,h),60)
goto evloop

:cancelBUTTON
:close
  exit

Thanks for your math help on the over sized Gradients Garrett Smile
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Mon Apr 12, 2004 8:05 am    Post subject: Reply with quote

But for some reason that math on this one I re-edited the math adds up for me in a more understandible way, but it works fine also:

Code:
 DIALOG CREATE,test,-1,0,400,175,resizable

  DIALOG ADD,LINE,LINE1,5,5,390,135
DIALOG ADD, GRADIENT,cool,-70,0,589,410,red,blue,,topTObottom
DIALOG ADD, GRADIENT,cool2,342,0,589,350,blue,red,,topTObottom
  DIALOG ADD,LIST,box1,15,11,,,,,
  DIALOG ADD,BUTTON,cancel,148,285,43,19,Exit,,
  DIALOG SHOW

:EVLOOP
  WAIT EVENT
  GOTO @EVENT()

:RESIZE
DIALOG SETPOS,cool,-70,0,@dlgpos(,w),@sum(@dlgpos(,h),40)
DIALOG SETPOS,cool2,@fsub(@dlgpos(,h),50),0,@dlgpos(,w),189
dialog setpos,cancel,@diff(@dlgpos(,h),27),@diff(@dlgpos(,w),115)
dialog setpos,line1,5,5,@diff(@dlgpos(,w),10),@diff(@dlgpos(,h),40)
dialog setpos,box1,15,11,@diff(@dlgpos(,w),22),@diff(@dlgpos(,h),60)
goto evloop

:cancelBUTTON
:close
  exit


I know the Gradients on this example are very flexable, so its even harder to understand Laughing
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
Goto page Previous  1, 2
Page 2 of 2

 
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