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 


need tips on getting buttons in-line!!!!

 
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: Thu Aug 08, 2002 6:07 am    Post subject: need tips on getting buttons in-line!!!! Reply with quote

hello all

for the life of me i can't get my buttons to look nice and even...I even tried the f2 that help some but not much.. wife thinks i'am crazy for spending so much time on trying to get them in-line Sad


any tips please

thanks
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Thu Aug 08, 2002 6:21 am    Post subject: Reply with quote

Refine them by using the values of the buttons>

DIALOG ADD,BUTTON,BUTTON1,10,10,200,23

change the first two numbers, they are the TOP and LEFT position. Make sure all the buttons you want to line up have either the same TOP number or LEFT number depending on if you want to line up your buttons from up-down or left-right.
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Thu Aug 08, 2002 7:04 am    Post subject: ok but Reply with quote

ok but:


what about buttons that are underthe other set of buttons?


like this


_ _ _ _ _ _ _ _ _ _ _ _

_ _ _ _ _ _ _ _ _ _ _ _

_ _ _


the _ are buttons sorry for the poor pictures


thanks
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: Thu Aug 08, 2002 7:49 am    Post subject: Reply with quote

I'd recommend losing the Dialog Designer and
get your hands in the actual code to figure out
how/where this stuff works... Wink
Code:

rem -- X is pixels horizontally from the left,
rem -- Y is pixels vertically from the top.

rem -- These are are all 30 x 20 pixels in size.
rem -- Each row start at (X) 5 and each button is
rem -- located 35 pixels farther to the right than
rem -- the last one, to allow 5 pixels space between...

rem -- The four numbers for each button are:
rem -- upper left (Y), upper left (X), width, height

DIALOG CREATE,Test,-1,0,145,80

  rem -- Row 1, all start at (Y) 5 --
  DIALOG ADD,BUTTON,B01,5,5,30,20
  DIALOG ADD,BUTTON,B02,5,40,30,20
  DIALOG ADD,BUTTON,B03,5,75,30,20
  DIALOG ADD,BUTTON,B04,5,110,30,20

  rem -- Row 2, all start at (Y) 30 --
  DIALOG ADD,BUTTON,B05,30,5,30,20
  DIALOG ADD,BUTTON,B06,30,40,30,20
  DIALOG ADD,BUTTON,B07,30,75,30,20
  DIALOG ADD,BUTTON,B08,30,110,30,20

  rem -- Row 3, all start at (Y) 55 --
  DIALOG ADD,BUTTON,B09,55,5,30,20
  DIALOG ADD,BUTTON,B10,55,40,30,20
  DIALOG ADD,BUTTON,B11,55,75,30,20
  DIALOG ADD,BUTTON,B12,55,110,30,20

DIALOG SHOW

WAIT EVENT
EXIT

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
VDSuser
Contributor
Contributor


Joined: 21 Mar 2002
Posts: 58
Location: Somewhere in time

PostPosted: Thu Aug 08, 2002 5:04 pm    Post subject: Reply with quote

Have you tried to use the "Snap to grid" feature of Dialog Designer?
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