| View previous topic :: View next topic |
| Author |
Message |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Mon Apr 12, 2004 7:42 am Post subject: |
|
|
I changed the top part back to the way it was Garrett and it still works perfectly, cool
| 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  |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Mon Apr 12, 2004 8:05 am Post subject: |
|
|
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  |
|
| Back to top |
|
 |
|
|
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
|
|