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 


Resizable window with buttons help

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


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 4:47 pm    Post subject: Resizable window with buttons help Reply with quote

i have been trying to added a Resizable window with buttons ABOUT 6 BUTTONS) HERE IS MY CODE :
Code:
 DIALOG CREATE,Textfile,-1,0,529,329,RESIZABLE
  DIALOG ADD,STYLE,sFont,Courier New,8,,,
  DIALOG ADD,LIST,lText,8,8,512,312,,sFont
  DIALOG SHOW
  %%dh = @sum(2,@dlgpos(SB,H))
  goto timer
:evloop
  wait event,%%interval
  goto @event()
:RESIZE
  PARSE "%H;%W",@dlgpos(,HW)
  DIALOG SETPOS,ED,0,1,@diff(%W,2),@diff(%H,%%dh)
   goto evloop


THIS WORKS BUT it size the outter window ( i have a text box inter window inside) i want it to size both windows ( hard to expain) and adding button i think i firgure that out Smile
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 4:50 pm    Post subject: i thought i had the bttuons figure out Reply with quote

welll i added the button BUT there are behind the text box Sad what is going on Sad here is my code:

Code:
 DIALOG CREATE,Textfile,-1,0,529,329,RESIZABLE
  DIALOG ADD,STYLE,sFont,Courier New,8,,,
  DIALOG ADD,BUTTON,BUTTON1,102,0,64,24,BUTTON1
  DIALOG ADD,BUTTON,BUTTON2,100,150,64,24,BUTTON2
  DIALOG ADD,BUTTON,BUTTON3,136,0,64,24,BUTTON3
  DIALOG ADD,BUTTON,BUTTON4,136,78,64,24,BUTTON4
  DIALOG ADD,BUTTON,BUTTON5,100,76,64,24,BUTTON5
  DIALOG ADD,BUTTON,BUTTON6,136,152,64,24,BUTTON6
  DIALOG ADD,BUTTON,BUTTON7,100,228,64,24,BUTTON7
  DIALOG ADD,BUTTON,BUTTON8,134,228,64,24,BUTTON8
  DIALOG ADD,BUTTON,BUTTON9,100,312,64,24,BUTTON9
  DIALOG ADD,BUTTON,BUTTON10,132,312,64,24,BUTTON10
  DIALOG ADD,LIST,lText,8,8,512,312,,sFont
  DIALOG SHOW
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri Aug 02, 2002 4:56 pm    Post subject: Reply with quote

If you want to resize the List you should use this:

DIALOG SETPOS,lText,8,8,@diff(%W,17),@diff(%H,17)

Try this if the buttons must be above the List:
Code:

DIALOG CREATE,Textfile,-1,0,529,329,RESIZABLE
  DIALOG ADD,STYLE,sFont,Courier New,8,,,
  DIALOG ADD,LIST,lText,8,8,512,312,,sFont
  DIALOG ADD,BUTTON,BUTTON1,102,0,64,24,BUTTON1
  DIALOG ADD,BUTTON,BUTTON2,100,150,64,24,BUTTON2
  DIALOG ADD,BUTTON,BUTTON3,136,0,64,24,BUTTON3
  DIALOG ADD,BUTTON,BUTTON4,136,78,64,24,BUTTON4
  DIALOG ADD,BUTTON,BUTTON5,100,76,64,24,BUTTON5
  DIALOG ADD,BUTTON,BUTTON6,136,152,64,24,BUTTON6
  DIALOG ADD,BUTTON,BUTTON7,100,228,64,24,BUTTON7
  DIALOG ADD,BUTTON,BUTTON8,134,228,64,24,BUTTON8
  DIALOG ADD,BUTTON,BUTTON9,100,312,64,24,BUTTON9
  DIALOG ADD,BUTTON,BUTTON10,132,312,64,24,BUTTON10
  DIALOG SHOW


Btw. What you use isn't a Edit-box, it is a List... For a multiply line editbox use this:

DIALOG ADD,EDIT,lText,8,8,512,312,,MULTI,SFONT
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 5:15 pm    Post subject: hummmmm Reply with quote

well that helped BUT now mine buttons are in the middle of of mine text box Sad BUT at least i can see then Smile
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri Aug 02, 2002 5:21 pm    Post subject: Reply with quote

At the Dialog Edittor, there is a button with a E (fifth from the left). If you press it you can change the Dialog-Items to the for-or-background and change manual some stuff.
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 5:31 pm    Post subject: hummmm Reply with quote

i'am trying to follow what you are telling me BUT i can't seen to understand what you mean Sad
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri Aug 02, 2002 5:39 pm    Post subject: Reply with quote

If you open the Dialog Editor, there are a few button on top, Open, Save, Copy Item Down, Copy Item to Right, Edit Dialog Description, Refresh Dialog, Test Dialog, About.

If you click the Edit Dialog Description Button (with a "E" on it) you can change the lines where Dialog Elements are on. The top lines are above are on top, the stuff down is unbeneath the top lines... Just try it, you will find it out...
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Aug 02, 2002 6:05 pm    Post subject: hummmm Reply with quote

i found the "e" BUT still trying to firgure out , the top and bottom and background Sad
Back to top
View user's profile Send private message
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